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