mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-24 07:22:57 +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();
|
var ulList=db.Queryable<UnituLong>().Where(x => x.longx > 0).ToList();
|
||||||
db.CodeFirst.As<UnituLong>("UnituLong0011").InitTables<UnituLong>();
|
db.CodeFirst.As<UnituLong>("UnituLong0011").InitTables<UnituLong>();
|
||||||
Console.WriteLine("#### CodeFirst end ####");
|
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
|
public class UnituLong
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user