|
|
@ -35,33 +35,33 @@ public class ContainerManagementTest
|
|
|
|
saasService = _serviceProvider.GetRequiredService<ISaasDbService>();
|
|
|
|
saasService = _serviceProvider.GetRequiredService<ISaasDbService>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Fact]
|
|
|
|
//[Fact]
|
|
|
|
public void ContainerManagementTest1()
|
|
|
|
//public void ContainerManagementTest1()
|
|
|
|
{
|
|
|
|
//{
|
|
|
|
Type[] types = Assembly
|
|
|
|
// Type[] types = Assembly
|
|
|
|
.LoadFrom("DS.WMS.Core.dll")//如果 .dll报错,可以换成 xxx.exe 有些生成的是exe
|
|
|
|
|
|
|
|
.GetTypes().Where(it => it.FullName.Contains("DS.WMS.Core.Op.Entity."))
|
|
|
|
|
|
|
|
//.GetTypes().Where(it => it.FullName.Contains("DS.WMS.Core.Code.Entity.") || it.FullName.Contains("DS.WMS.Core.Info.Entity.") || it.FullName.Contains("DS.WMS.Core.Flow.Entity.")
|
|
|
|
|
|
|
|
//|| it.FullName.Contains("DS.WMS.Core.Check.Entity.") || it.FullName.Contains("DS.WMS.Core.Map.Entity."))//命名空间过滤,当然你也可以写其他条件过滤
|
|
|
|
|
|
|
|
.ToArray();
|
|
|
|
|
|
|
|
//Type[] types = Assembly
|
|
|
|
|
|
|
|
// .LoadFrom("DS.WMS.Core.dll")//如果 .dll报错,可以换成 xxx.exe 有些生成的是exe
|
|
|
|
// .LoadFrom("DS.WMS.Core.dll")//如果 .dll报错,可以换成 xxx.exe 有些生成的是exe
|
|
|
|
// .GetTypes().Where(it => it.FullName.Contains("DS.WMS.Core.Code.Entity."))//命名空间过滤,当然你也可以写其他条件过滤
|
|
|
|
// .GetTypes().Where(it => it.FullName.Contains("DS.WMS.Core.Op.Entity."))
|
|
|
|
|
|
|
|
// //.GetTypes().Where(it => it.FullName.Contains("DS.WMS.Core.Code.Entity.") || it.FullName.Contains("DS.WMS.Core.Info.Entity.") || it.FullName.Contains("DS.WMS.Core.Flow.Entity.")
|
|
|
|
|
|
|
|
// //|| it.FullName.Contains("DS.WMS.Core.Check.Entity.") || it.FullName.Contains("DS.WMS.Core.Map.Entity."))//命名空间过滤,当然你也可以写其他条件过滤
|
|
|
|
// .ToArray();
|
|
|
|
// .ToArray();
|
|
|
|
var tenantDb = saasService.GetBizDbScopeById("1750335377144680448");
|
|
|
|
// //Type[] types = Assembly
|
|
|
|
// var temp = tenantDb.CodeFirst.GetDifferenceTables(types); || it.FullName.Contains("DS.WMS.Core.Op.Entity.")
|
|
|
|
// // .LoadFrom("DS.WMS.Core.dll")//如果 .dll报错,可以换成 xxx.exe 有些生成的是exe
|
|
|
|
// var diffString= tenantDb.CodeFirst.GetDifferenceTables(types).ToDiffString();
|
|
|
|
// // .GetTypes().Where(it => it.FullName.Contains("DS.WMS.Core.Code.Entity."))//命名空间过滤,当然你也可以写其他条件过滤
|
|
|
|
StaticConfig.CodeFirst_MySqlCollate = "utf8mb4_0900_ai_ci";//较高版本支持
|
|
|
|
// // .ToArray();
|
|
|
|
//types = types.Where(it => it.Name != "BusinessFeeStatus").ToArray();
|
|
|
|
// var tenantDb = saasService.GetBizDbScopeById("1750335377144680448");
|
|
|
|
//types = types.Where(it => it.Name != "BusinessOrderContact").ToArray();
|
|
|
|
// // var temp = tenantDb.CodeFirst.GetDifferenceTables(types); || it.FullName.Contains("DS.WMS.Core.Op.Entity.")
|
|
|
|
|
|
|
|
// // var diffString= tenantDb.CodeFirst.GetDifferenceTables(types).ToDiffString();
|
|
|
|
tenantDb.CodeFirst.InitTables(types);
|
|
|
|
// StaticConfig.CodeFirst_MySqlCollate = "utf8mb4_0900_ai_ci";//较高版本支持
|
|
|
|
// //初始化数库
|
|
|
|
// //types = types.Where(it => it.Name != "BusinessFeeStatus").ToArray();
|
|
|
|
// tenantDb.DbMaintenance.CreateDatabase();
|
|
|
|
// //types = types.Where(it => it.Name != "BusinessOrderContact").ToArray();
|
|
|
|
//
|
|
|
|
|
|
|
|
// tenantDb.CodeFirst.InitTables(typeof(CodeCountry));
|
|
|
|
// tenantDb.CodeFirst.InitTables(types);
|
|
|
|
Assert.True(true);
|
|
|
|
// // //初始化数库
|
|
|
|
}
|
|
|
|
// // tenantDb.DbMaintenance.CreateDatabase();
|
|
|
|
|
|
|
|
// //
|
|
|
|
|
|
|
|
// // tenantDb.CodeFirst.InitTables(typeof(CodeCountry));
|
|
|
|
|
|
|
|
// Assert.True(true);
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -79,29 +79,29 @@ public class ContainerManagementTest
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// 初始化单表
|
|
|
|
/// 初始化单表
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
[Fact]
|
|
|
|
//[Fact]
|
|
|
|
public void InitTableTest()
|
|
|
|
//public void InitTableTest()
|
|
|
|
{
|
|
|
|
//{
|
|
|
|
var tenantDb = saasService.GetBizDbScopeById("1750335377144680448");
|
|
|
|
// var tenantDb = saasService.GetBizDbScopeById("1750335377144680448");
|
|
|
|
StaticConfig.CodeFirst_MySqlCollate = "utf8mb4_0900_ai_ci";//较高版本支持
|
|
|
|
// StaticConfig.CodeFirst_MySqlCollate = "utf8mb4_0900_ai_ci";//较高版本支持
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tenantDb.CodeFirst.InitTables(typeof(CM_CurrentState));
|
|
|
|
// tenantDb.CodeFirst.InitTables(typeof(CM_CurrentState));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(CM_BaseInfo));
|
|
|
|
// //tenantDb.CodeFirst.InitTables(typeof(CM_BaseInfo));
|
|
|
|
tenantDb.CodeFirst.InitTables(typeof(CM_State_Change));
|
|
|
|
// tenantDb.CodeFirst.InitTables(typeof(CM_State_Change));
|
|
|
|
|
|
|
|
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(CM_RentIn));
|
|
|
|
// //tenantDb.CodeFirst.InitTables(typeof(CM_RentIn));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(CM_RentIn_Detail));
|
|
|
|
// //tenantDb.CodeFirst.InitTables(typeof(CM_RentIn_Detail));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(CM_RentOut));
|
|
|
|
// //tenantDb.CodeFirst.InitTables(typeof(CM_RentOut));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(CM_RentOut_Detail));
|
|
|
|
// //tenantDb.CodeFirst.InitTables(typeof(CM_RentOut_Detail));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(CM_RentOneWay));
|
|
|
|
// //tenantDb.CodeFirst.InitTables(typeof(CM_RentOneWay));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(CM_RentOneWay_Detail));
|
|
|
|
// //tenantDb.CodeFirst.InitTables(typeof(CM_RentOneWay_Detail));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//db.CodeFirst.InitTables(typeof(OpBusinessTruckCtn));
|
|
|
|
// //db.CodeFirst.InitTables(typeof(OpBusinessTruckCtn));
|
|
|
|
Assert.True(true);
|
|
|
|
// Assert.True(true);
|
|
|
|
}
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// 初始化单表 多表
|
|
|
|
/// 初始化单表 多表
|
|
|
@ -120,9 +120,9 @@ public class ContainerManagementTest
|
|
|
|
//tenantDb.CodeFirst.InitTables(types); //指定表空间下的实体
|
|
|
|
//tenantDb.CodeFirst.InitTables(types); //指定表空间下的实体
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(OpLetterYard));//指定更新特定实体
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(OpLetterYard));//指定更新特定实体
|
|
|
|
|
|
|
|
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(CM_CurrentState));
|
|
|
|
tenantDb.CodeFirst.InitTables(typeof(CM_CurrentState));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(CM_BaseInfo));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(CM_BaseInfo));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(CM_State_Change));
|
|
|
|
tenantDb.CodeFirst.InitTables(typeof(CM_State_Change));
|
|
|
|
|
|
|
|
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(CM_RentIn));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(CM_RentIn));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(CM_RentIn_Detail));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(CM_RentIn_Detail));
|
|
|
@ -132,9 +132,9 @@ public class ContainerManagementTest
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(CM_RentOneWay_Detail));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(CM_RentOneWay_Detail));
|
|
|
|
|
|
|
|
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(CM_BuyCtn));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(CM_BuyCtn));
|
|
|
|
tenantDb.CodeFirst.InitTables(typeof(CM_BuyCtn_Detail));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(CM_BuyCtn_Detail));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(CM_SellCtn));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(CM_SellCtn));
|
|
|
|
tenantDb.CodeFirst.InitTables(typeof(CM_SellCtn_Detail));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(CM_SellCtn_Detail));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(CM_CtnScrap));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(CM_CtnScrap));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(CM_CtnScrap_Detail));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(CM_CtnScrap_Detail));
|
|
|
|
|
|
|
|
|
|
|
@ -181,138 +181,138 @@ public class ContainerManagementTest
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Fact]
|
|
|
|
//[Fact]
|
|
|
|
public void SaasCheckTest()
|
|
|
|
//public void SaasCheckTest()
|
|
|
|
{
|
|
|
|
//{
|
|
|
|
Type[] types = Assembly
|
|
|
|
// Type[] types = Assembly
|
|
|
|
.LoadFrom("DS.WMS.Core.dll")//如果 .dll报错,可以换成 xxx.exe 有些生成的是exe
|
|
|
|
// .LoadFrom("DS.WMS.Core.dll")//如果 .dll报错,可以换成 xxx.exe 有些生成的是exe
|
|
|
|
.GetTypes().Where(it => it.FullName.Contains("DS.WMS.Core.Code.Entity"))//命名空间过滤,当然你也可以写其他条件过滤
|
|
|
|
// .GetTypes().Where(it => it.FullName.Contains("DS.WMS.Core.Code.Entity"))//命名空间过滤,当然你也可以写其他条件过滤
|
|
|
|
.ToArray();
|
|
|
|
// .ToArray();
|
|
|
|
var tenantDb = saasService.GetBizDbScopeById("1750335377144680448");
|
|
|
|
// var tenantDb = saasService.GetBizDbScopeById("1750335377144680448");
|
|
|
|
StaticConfig.CodeFirst_MySqlCollate = "utf8mb4_0900_ai_ci";//较高版本支持
|
|
|
|
// StaticConfig.CodeFirst_MySqlCollate = "utf8mb4_0900_ai_ci";//较高版本支持
|
|
|
|
//tenantDb.CodeFirst.InitTables(types);
|
|
|
|
// //tenantDb.CodeFirst.InitTables(types);
|
|
|
|
Assert.True(true);
|
|
|
|
// Assert.True(true);
|
|
|
|
}
|
|
|
|
//}
|
|
|
|
[Fact]
|
|
|
|
//[Fact]
|
|
|
|
public void SaasFeeTest()
|
|
|
|
//public void SaasFeeTest()
|
|
|
|
{
|
|
|
|
//{
|
|
|
|
Type[] types = Assembly
|
|
|
|
// Type[] types = Assembly
|
|
|
|
.LoadFrom("DS.WMS.Core.dll")//如果 .dll报错,可以换成 xxx.exe 有些生成的是exe
|
|
|
|
// .LoadFrom("DS.WMS.Core.dll")//如果 .dll报错,可以换成 xxx.exe 有些生成的是exe
|
|
|
|
.GetTypes().Where(it => it.FullName.Contains("DS.WMS.Core.Fee.Entity"))//命名空间过滤,当然你也可以写其他条件过滤
|
|
|
|
// .GetTypes().Where(it => it.FullName.Contains("DS.WMS.Core.Fee.Entity"))//命名空间过滤,当然你也可以写其他条件过滤
|
|
|
|
.ToArray();
|
|
|
|
// .ToArray();
|
|
|
|
var tenantDb = saasService.GetBizDbScopeById("1750335377144680448");
|
|
|
|
// var tenantDb = saasService.GetBizDbScopeById("1750335377144680448");
|
|
|
|
StaticConfig.CodeFirst_MySqlCollate = "utf8mb4_0900_ai_ci";//较高版本支持
|
|
|
|
// StaticConfig.CodeFirst_MySqlCollate = "utf8mb4_0900_ai_ci";//较高版本支持
|
|
|
|
//tenantDb.CodeFirst.InitTables(types);
|
|
|
|
// //tenantDb.CodeFirst.InitTables(types);
|
|
|
|
Assert.True(true);
|
|
|
|
// Assert.True(true);
|
|
|
|
}
|
|
|
|
//}
|
|
|
|
[Fact]
|
|
|
|
//[Fact]
|
|
|
|
|
|
|
|
|
|
|
|
public void ClientBatchEdit()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var tenantDb = saasService.GetBizDbScopeById("1750335377144680448");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var info = tenantDb.Queryable<InfoClient>().Filter(null, true).Where(x => x.Id == 1772138307266940928).First();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var temp = new ClientTemp
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Address = "4",
|
|
|
|
|
|
|
|
Name = "4",
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
var dic = temp.GetPropertiesArray();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
info = temp.Adapt(info);
|
|
|
|
//public void ClientBatchEdit()
|
|
|
|
tenantDb.Updateable(info).UpdateColumns(dic).ExecuteCommand();
|
|
|
|
//{
|
|
|
|
|
|
|
|
// var tenantDb = saasService.GetBizDbScopeById("1750335377144680448");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// var info = tenantDb.Queryable<InfoClient>().Filter(null, true).Where(x => x.Id == 1772138307266940928).First();
|
|
|
|
|
|
|
|
|
|
|
|
Assert.True(true);
|
|
|
|
// var temp = new ClientTemp
|
|
|
|
}
|
|
|
|
// {
|
|
|
|
[Fact]
|
|
|
|
// Address = "4",
|
|
|
|
|
|
|
|
// Name = "4",
|
|
|
|
|
|
|
|
// };
|
|
|
|
|
|
|
|
// var dic = temp.GetPropertiesArray();
|
|
|
|
|
|
|
|
|
|
|
|
public void CopyColumnTest()
|
|
|
|
// info = temp.Adapt(info);
|
|
|
|
{
|
|
|
|
// tenantDb.Updateable(info).UpdateColumns(dic).ExecuteCommand();
|
|
|
|
var tenantDb = saasService.GetBizDbScopeById("1750335377144680448");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var columns = "noBill,enName,copyNoBill";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Assert.True(true);
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
//[Fact]
|
|
|
|
|
|
|
|
|
|
|
|
var list = columns.Split(",");
|
|
|
|
//public void CopyColumnTest()
|
|
|
|
var list1 = new List<string>();
|
|
|
|
//{
|
|
|
|
foreach (var item in list)
|
|
|
|
// var tenantDb = saasService.GetBizDbScopeById("1750335377144680448");
|
|
|
|
{
|
|
|
|
|
|
|
|
list1.Add(item.ToUpperCamelCase());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
Console.WriteLine(list1[0]);
|
|
|
|
|
|
|
|
Assert.True(true);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// var columns = "noBill,enName,copyNoBill";
|
|
|
|
|
|
|
|
|
|
|
|
public class ClientTemp
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// Desc:客户中文名称或描述信息
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public string Description { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
// var list = columns.Split(",");
|
|
|
|
/// Desc:客户英文简称
|
|
|
|
// var list1 = new List<string>();
|
|
|
|
/// </summary>
|
|
|
|
// foreach (var item in list)
|
|
|
|
public string Name { get; set; }
|
|
|
|
// {
|
|
|
|
|
|
|
|
// list1.Add(item.ToUpperCamelCase());
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// Console.WriteLine(list1[0]);
|
|
|
|
|
|
|
|
// Assert.True(true);
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// Desc:客户英文全称
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public string EnFullName { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
//public class ClientTemp
|
|
|
|
/// Desc:通讯地址
|
|
|
|
//{
|
|
|
|
/// </summary>
|
|
|
|
// /// <summary>
|
|
|
|
public string Address { get; set; }
|
|
|
|
// /// Desc:客户中文名称或描述信息
|
|
|
|
}
|
|
|
|
// /// </summary>
|
|
|
|
|
|
|
|
// public string Description { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// /// <summary>
|
|
|
|
|
|
|
|
// /// Desc:客户英文简称
|
|
|
|
|
|
|
|
// /// </summary>
|
|
|
|
|
|
|
|
// public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// /// <summary>
|
|
|
|
|
|
|
|
// /// Desc:客户英文全称
|
|
|
|
|
|
|
|
// /// </summary>
|
|
|
|
|
|
|
|
// public string EnFullName { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// /// <summary>
|
|
|
|
|
|
|
|
// /// Desc:通讯地址
|
|
|
|
|
|
|
|
// /// </summary>
|
|
|
|
|
|
|
|
// public string Address { get; set; }
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// 初始化单表
|
|
|
|
/// 初始化单表
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
[Fact]
|
|
|
|
//[Fact]
|
|
|
|
public void InitTableTestJHQ()
|
|
|
|
//public void InitTableTestJHQ()
|
|
|
|
{
|
|
|
|
//{
|
|
|
|
var tenantDb = saasService.GetBizDbScopeById("1750335377144680448");
|
|
|
|
// var tenantDb = saasService.GetBizDbScopeById("1750335377144680448");
|
|
|
|
StaticConfig.CodeFirst_MySqlCollate = "utf8mb4_0900_ai_ci";//较高版本支持
|
|
|
|
// StaticConfig.CodeFirst_MySqlCollate = "utf8mb4_0900_ai_ci";//较高版本支持
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(SpaceBookingOrder));
|
|
|
|
// //tenantDb.CodeFirst.InitTables(typeof(SpaceBookingOrder));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(SpaceBookingOrderCtn));
|
|
|
|
// //tenantDb.CodeFirst.InitTables(typeof(SpaceBookingOrderCtn));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(SpaceBookingOrderShipSchedule));
|
|
|
|
// //tenantDb.CodeFirst.InitTables(typeof(SpaceBookingOrderShipSchedule));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(BookingSlotBase));
|
|
|
|
// //tenantDb.CodeFirst.InitTables(typeof(BookingSlotBase));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(BookingSlotCtn));
|
|
|
|
// //tenantDb.CodeFirst.InitTables(typeof(BookingSlotCtn));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(BookingSlotStock));
|
|
|
|
// //tenantDb.CodeFirst.InitTables(typeof(BookingSlotStock));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(BookingSlotAllocation));
|
|
|
|
// //tenantDb.CodeFirst.InitTables(typeof(BookingSlotAllocation));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(BookingSlotAllocationCtn));
|
|
|
|
// //tenantDb.CodeFirst.InitTables(typeof(BookingSlotAllocationCtn));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(BookingSlotDemand));
|
|
|
|
// //tenantDb.CodeFirst.InitTables(typeof(BookingSlotDemand));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(BookingSlotDemandCtn));
|
|
|
|
// //tenantDb.CodeFirst.InitTables(typeof(BookingSlotDemandCtn));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(BookingSlotCompare));
|
|
|
|
// //tenantDb.CodeFirst.InitTables(typeof(BookingSlotCompare));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(BookingContractNoManage));
|
|
|
|
// //tenantDb.CodeFirst.InitTables(typeof(BookingContractNoManage));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(BookingLabel));
|
|
|
|
// //tenantDb.CodeFirst.InitTables(typeof(BookingLabel));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(BookingLabelAllocation));
|
|
|
|
// //tenantDb.CodeFirst.InitTables(typeof(BookingLabelAllocation));
|
|
|
|
|
|
|
|
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(InfoClient));
|
|
|
|
// //tenantDb.CodeFirst.InitTables(typeof(InfoClient));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(CodeThirdParty));
|
|
|
|
// //tenantDb.CodeFirst.InitTables(typeof(CodeThirdParty));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(CheckBillAutoDetail));
|
|
|
|
// //tenantDb.CodeFirst.InitTables(typeof(CheckBillAutoDetail));
|
|
|
|
//db.CodeFirst.InitTables(typeof(OpBusinessTruckCtn));
|
|
|
|
// //db.CodeFirst.InitTables(typeof(OpBusinessTruckCtn));
|
|
|
|
Assert.True(true);
|
|
|
|
// Assert.True(true);
|
|
|
|
}
|
|
|
|
//}
|
|
|
|
/// <summary>
|
|
|
|
///// <summary>
|
|
|
|
/// 初始化单表
|
|
|
|
///// 初始化单表
|
|
|
|
/// </summary>
|
|
|
|
///// </summary>
|
|
|
|
[Fact]
|
|
|
|
//[Fact]
|
|
|
|
public void InitTableTestZXF()
|
|
|
|
//public void InitTableTestZXF()
|
|
|
|
{
|
|
|
|
//{
|
|
|
|
var tenantDb = saasService.GetBizDbScopeById("1750335377144680448");
|
|
|
|
// var tenantDb = saasService.GetBizDbScopeById("1750335377144680448");
|
|
|
|
StaticConfig.CodeFirst_MySqlCollate = "utf8mb4_0900_ai_ci";//较高版本支持
|
|
|
|
// StaticConfig.CodeFirst_MySqlCollate = "utf8mb4_0900_ai_ci";//较高版本支持
|
|
|
|
|
|
|
|
|
|
|
|
var ass = Assembly.Load("DS.WMS.Core");
|
|
|
|
// var ass = Assembly.Load("DS.WMS.Core");
|
|
|
|
var types = ass.GetTypes().Where(it => it.FullName?.Contains("DS.WMS.Core.TaskPlat.Entity") == true).ToArray();
|
|
|
|
// var types = ass.GetTypes().Where(it => it.FullName?.Contains("DS.WMS.Core.TaskPlat.Entity") == true).ToArray();
|
|
|
|
//tenantDb.CodeFirst.InitTables(types);
|
|
|
|
// //tenantDb.CodeFirst.InitTables(types);
|
|
|
|
|
|
|
|
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(TaskFlowLog));
|
|
|
|
// //tenantDb.CodeFirst.InitTables(typeof(TaskFlowLog));
|
|
|
|
//tenantDb.CodeFirst.InitTables(typeof(TaskFlowLogDetail));
|
|
|
|
// //tenantDb.CodeFirst.InitTables(typeof(TaskFlowLogDetail));
|
|
|
|
Assert.True(true);
|
|
|
|
// Assert.True(true);
|
|
|
|
}
|
|
|
|
//}
|
|
|
|
}
|
|
|
|
}
|