mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 13:34:32 +08:00
Add user case test
This commit is contained in:
parent
f98f932533
commit
54dc72dfe8
@ -45,6 +45,15 @@ namespace OrmTest
|
|||||||
Db.CodeFirst.InitTables(type);
|
Db.CodeFirst.InitTables(type);
|
||||||
Db1.CodeFirst.InitTables(type);
|
Db1.CodeFirst.InitTables(type);
|
||||||
Console.WriteLine("Hello, World!");
|
Console.WriteLine("Hello, World!");
|
||||||
|
var list2 = NewUnitTest.Db.Reportable(new List<Unitguidsda>() {
|
||||||
|
new Unitguidsda()
|
||||||
|
}).ToQueryable().ToList();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public class Unitguidsda
|
||||||
|
{
|
||||||
|
public Guid Id { get; set; } = Guid.NewGuid();
|
||||||
}
|
}
|
||||||
[SugarTable("Test_Table_{year}{month}{day}")]
|
[SugarTable("Test_Table_{year}{month}{day}")]
|
||||||
[SplitTable(SplitType.Month)]
|
[SplitTable(SplitType.Month)]
|
||||||
|
@ -79,8 +79,17 @@ namespace OrmTest
|
|||||||
{
|
{
|
||||||
throw new Exception("unit error");
|
throw new Exception("unit error");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
var list2 = db.Reportable(new List<Unitguidsda>() {
|
||||||
|
new Unitguidsda()
|
||||||
|
}).ToQueryable().ToList();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public class Unitguidsda
|
||||||
|
{
|
||||||
|
public Guid Id { get; set; } = Guid.NewGuid();
|
||||||
|
}
|
||||||
public class Unitadadfafa
|
public class Unitadadfafa
|
||||||
{
|
{
|
||||||
[SqlSugar.SugarColumn(IsPrimaryKey =true,SqlParameterDbType =typeof(CommonPropertyConvert))]
|
[SqlSugar.SugarColumn(IsPrimaryKey =true,SqlParameterDbType =typeof(CommonPropertyConvert))]
|
||||||
|
@ -15,9 +15,17 @@ namespace OrmTest
|
|||||||
db.CodeFirst.InitTables<School>();
|
db.CodeFirst.InitTables<School>();
|
||||||
db.CodeFirst.InitTables<School2>();
|
db.CodeFirst.InitTables<School2>();
|
||||||
db.Queryable<School2>().ToList();
|
db.Queryable<School2>().ToList();
|
||||||
|
var list2 = db.Reportable(new List<Unitguidsda>() {
|
||||||
|
new Unitguidsda()
|
||||||
|
}).ToQueryable().ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public class Unitguidsda
|
||||||
|
{
|
||||||
|
public Guid Id { get; set; } = Guid.NewGuid();
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 多主键表
|
/// 多主键表
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user