|
|
@ -198,7 +198,7 @@ namespace BWP.B3ClientService.Tasks |
|
|
entity.Name = o.Get<string>("Name"); |
|
|
entity.Name = o.Get<string>("Name"); |
|
|
entity.Stopped = o.Get<bool>("Stopped"); |
|
|
entity.Stopped = o.Get<bool>("Stopped"); |
|
|
entity.Password = o.Get<byte[]>("Password"); |
|
|
entity.Password = o.Get<byte[]>("Password"); |
|
|
entity.RoleSchema = o.Get<string>("RoleSchema"); |
|
|
|
|
|
|
|
|
entity.RoleSchema = "default";//o.Get<string>("RoleSchema");
|
|
|
context.Session.Insert(entity); |
|
|
context.Session.Insert(entity); |
|
|
} |
|
|
} |
|
|
var sql2 = @"SET IDENTITY_INSERT [WPF_User] OFF;"; |
|
|
var sql2 = @"SET IDENTITY_INSERT [WPF_User] OFF;"; |
|
|
@ -271,7 +271,7 @@ namespace BWP.B3ClientService.Tasks |
|
|
entity.Department_Name = o.Get<string>("Department_Name"); |
|
|
entity.Department_Name = o.Get<string>("Department_Name"); |
|
|
entity.AccountingUnit_ID = o.Get<long?>("AccountingUnit_ID"); |
|
|
entity.AccountingUnit_ID = o.Get<long?>("AccountingUnit_ID"); |
|
|
entity.AccountingUnit_Name = o.Get<string>("AccountingUnit_Name"); |
|
|
entity.AccountingUnit_Name = o.Get<string>("AccountingUnit_Name"); |
|
|
entity.Role = o.Get<string>("Role"); |
|
|
|
|
|
|
|
|
//entity.Role = o.Get<string>("Role");
|
|
|
context.Session.Insert(entity); |
|
|
context.Session.Insert(entity); |
|
|
} |
|
|
} |
|
|
context.Commit(); |
|
|
context.Commit(); |
|
|
|