This commit is contained in:
sunkaixuan
2023-10-07 15:47:52 +08:00
parent 1a0f827274
commit f811496ab9

View File

@@ -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)]