This commit is contained in:
sunkaixuan 2022-11-06 12:28:43 +08:00
parent e234ec1d37
commit becb504500

View File

@ -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
{