Skip to content

Commit 80ecc68

Browse files
author
Cesar Romero Silva
committed
* TODO updated
1 parent 401e256 commit 80ecc68

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

BulkOperations.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<ItemGroup>
4747
<Compile Include="BulkOperation.cs" />
4848
<Compile Include="BulkUpdate.cs" />
49-
<Compile Include="Log.cs" />
49+
<Compile Include="ConsoleLog.cs" />
5050
<Compile Include="Customer.cs" />
5151
<Compile Include="DataTableExtension.cs" />
5252
<Compile Include="ObjectDataReader.cs" />

Todo.cs

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,22 @@
2121
*/
2222

2323
/*
24-
use [Database]
25-
go
2624
27-
merge into {Employee} as Target
28-
using {#EmployeeTemp} as Source
29-
on Target.id = Source.id
25+
use [Database];
26+
go;
3027
31-
when matched then
32-
update set
33-
Target.name = Source.name,
34-
Target.Salary = Source.Salary
28+
merge into {Employee} as Target
29+
using {#EmployeeTemp} as Source
30+
on Target.id = Source.id
3531
36-
when not matched then
37-
insert (id, name, salary)
38-
values (Source.id, Source.name, Source.Salary);
32+
when matched then
33+
update set
34+
Target.name = Source.name,
35+
Target.Salary = Source.Salary
36+
37+
when not matched then
38+
insert (id, name, salary)
39+
values (Source.id, Source.name, Source.Salary)
40+
;
3941
4042
*/

0 commit comments

Comments
 (0)