mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-24 07:22:57 +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
|
Name = it.CreateTime.HasValue ? it.CreateTime.Value.ToString("yyyy-MM-dd") : string.Empty
|
||||||
}).ToList();
|
}).ToList();
|
||||||
|
db.CodeFirst.InitTables<CodeFirstimg>();
|
||||||
Console.WriteLine("#### CodeFirst end ####");
|
Console.WriteLine("#### CodeFirst end ####");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public class CodeFirstimg
|
||||||
|
{
|
||||||
|
[SugarColumn(Length =100)]
|
||||||
|
public byte[] img { get; set; }
|
||||||
|
}
|
||||||
public class CodeFirstTable111
|
public class CodeFirstTable111
|
||||||
{
|
{
|
||||||
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
|
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
|
||||||
|
Loading…
Reference in New Issue
Block a user