mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-22 21:01:59 +08:00
Add demo
This commit is contained in:
@@ -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; }
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user