This commit is contained in:
sunkaixuan 2022-09-22 22:17:21 +08:00
parent 46d8f7579c
commit ec0e5cad34

View File

@ -49,8 +49,18 @@ namespace OrmTest
Console.Write(db.Queryable<BoolTest>().First().A);
db.Updateable<BoolTest>(new BoolTest() { A = false, Id = Id }).ExecuteCommand();
Console.Write(db.Queryable<BoolTest>().First().A);
db.CodeFirst.InitTables<CKTest>();
}
}
[SqlSugar.ClickHouse.CKTable(@"engine = MergeTree PARTITION BY toYYYYMM(dt)
ORDER BY(toYYYYMM(dt))
SETTINGS index_granularity = 8192;")]
public class CKTest
{
public string Id { get; set; }
public DateTime dt { get; set; }
}
public class GuidTest22
{
[SugarColumn(IsPrimaryKey = true)]