mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Add demo
This commit is contained in:
parent
7ab606176b
commit
a3cb5b7c3d
@ -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…
Reference in New Issue
Block a user