This commit is contained in:
sunkaixuan 2022-11-14 01:03:01 +08:00
parent 7ab606176b
commit a3cb5b7c3d

View File

@ -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)]