Browse Source

Add demo

pull/25/head
sunkaixuan 2 years ago
parent
commit
becb504500
  1. 9
      Src/Asp.Net/SqlServerTest/Demo/DemoE_CodeFirst.cs

9
Src/Asp.Net/SqlServerTest/Demo/DemoE_CodeFirst.cs

@ -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…
Cancel
Save