mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 18:22:23 +08:00
Add demo
This commit is contained in:
@@ -33,6 +33,8 @@ namespace OrmTest
|
|||||||
TestGuid(db);
|
TestGuid(db);
|
||||||
var list2=db.Queryable<SplitTableEntity>()
|
var list2=db.Queryable<SplitTableEntity>()
|
||||||
.PartitionBy(it => new { it.Ts, it.Id }).ToList();
|
.PartitionBy(it => new { it.Ts, it.Id }).ToList();
|
||||||
|
db.CodeFirst.InitTables<GuidTest22>();
|
||||||
|
db.DbFirst.CreateClassFile("c:\\demo\\11");
|
||||||
Console.WriteLine("#### CodeFirst end ####");
|
Console.WriteLine("#### CodeFirst end ####");
|
||||||
}
|
}
|
||||||
private static void TestGuid(SqlSugarClient db)
|
private static void TestGuid(SqlSugarClient db)
|
||||||
@@ -63,6 +65,13 @@ namespace OrmTest
|
|||||||
public long Id { get; set; }
|
public long Id { get; set; }
|
||||||
public Guid A { get; set; }
|
public Guid A { get; set; }
|
||||||
}
|
}
|
||||||
|
public class GuidTest22
|
||||||
|
{
|
||||||
|
[SugarColumn(IsPrimaryKey = true)]
|
||||||
|
public long Id { get; set; }
|
||||||
|
[SugarColumn(ColumnDataType ="uuid")]
|
||||||
|
public Guid A { get; set; }
|
||||||
|
}
|
||||||
public class BoolTest5
|
public class BoolTest5
|
||||||
{
|
{
|
||||||
[SugarColumn(IsPrimaryKey = true)]
|
[SugarColumn(IsPrimaryKey = true)]
|
||||||
|
Reference in New Issue
Block a user