mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 13:06:50 +08:00
Add demo
This commit is contained in:
parent
e234ec1d37
commit
becb504500
@ -34,8 +34,17 @@ namespace OrmTest
|
||||
var ulList=db.Queryable<UnituLong>().Where(x => x.longx > 0).ToList();
|
||||
db.CodeFirst.As<UnituLong>("UnituLong0011").InitTables<UnituLong>();
|
||||
Console.WriteLine("#### CodeFirst end ####");
|
||||
db.CodeFirst.InitTables<Unituadfasf1>();
|
||||
}
|
||||
}
|
||||
[SugarIndex("IndexUnituadfasf1_longx{include:name,id}", nameof(longx), OrderByType.Asc)]
|
||||
public class Unituadfasf1
|
||||
{
|
||||
|
||||
public ulong longx { get; set; }
|
||||
public int id { get; set; }
|
||||
public string name { get; set; }
|
||||
}
|
||||
|
||||
public class UnituLong
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user