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
e4d13265c0
commit
dfa7e780c9
@ -68,9 +68,16 @@ namespace OrmTest
|
|||||||
{
|
{
|
||||||
Name = "a"
|
Name = "a"
|
||||||
}).Where(it => it.Id != null).ExecuteCommand();
|
}).Where(it => it.Id != null).ExecuteCommand();
|
||||||
|
db.CodeFirst.InitTables<CodeFirstChartest>();
|
||||||
|
db.Queryable<CodeFirstChartest>().Where(it => it.Test == 's').ToList();
|
||||||
Console.WriteLine("#### CodeFirst end ####");
|
Console.WriteLine("#### CodeFirst end ####");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public class CodeFirstChartest
|
||||||
|
{
|
||||||
|
[SugarColumn(ColumnDataType ="varchar(1)")]
|
||||||
|
public char Test { get; set; }
|
||||||
|
}
|
||||||
[SugarTable(null,"备注表")]
|
[SugarTable(null,"备注表")]
|
||||||
public class CodeFirstNoUpper
|
public class CodeFirstNoUpper
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user