Browse Source

Add demo

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

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

@ -41,9 +41,15 @@ namespace OrmTest
{
Name = it.CreateTime.HasValue ? it.CreateTime.Value.ToString("yyyy-MM-dd") : string.Empty
}).ToList();
db.CodeFirst.InitTables<CodeFirstimg>();
Console.WriteLine("#### CodeFirst end ####");
}
}
public class CodeFirstimg
{
[SugarColumn(Length =100)]
public byte[] img { get; set; }
}
public class CodeFirstTable111
{
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]

Loading…
Cancel
Save