mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 13:34:32 +08:00
Add Demo
This commit is contained in:
parent
46d8f7579c
commit
ec0e5cad34
@ -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)]
|
||||
|
Loading…
Reference in New Issue
Block a user