mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Add demo
This commit is contained in:
parent
b942143e84
commit
243f9d4568
@ -47,6 +47,7 @@ namespace XuguTest
|
|||||||
|
|
||||||
|
|
||||||
db.CodeFirst.InitTables<MY_USER>();
|
db.CodeFirst.InitTables<MY_USER>();
|
||||||
|
db.CodeFirst.InitTables<T_User2>();
|
||||||
|
|
||||||
db.DbMaintenance.TruncateTable<MY_USER>();
|
db.DbMaintenance.TruncateTable<MY_USER>();
|
||||||
|
|
||||||
|
14
Src/Asp.NetCore2/XuGuTest/T_User2.cs
Normal file
14
Src/Asp.NetCore2/XuGuTest/T_User2.cs
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Data.Model
|
||||||
|
{
|
||||||
|
public class T_User2
|
||||||
|
{
|
||||||
|
[SqlSugar.SugarColumn(DefaultValue ="0",ColumnDescription ="aaa")]
|
||||||
|
public int num { get; set; }
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user