mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-26 22:25:49 +08:00
5.0.6.5
This commit is contained in:
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using SqlSugar;
|
||||
namespace OrmTest
|
||||
{
|
||||
public partial class NewUnitTest
|
||||
@@ -13,6 +13,17 @@ namespace OrmTest
|
||||
if (Db.DbMaintenance.IsAnyTable("UnitCodeTest1", false))
|
||||
Db.DbMaintenance.DropTable("UnitCodeTest1");
|
||||
Db.CodeFirst.InitTables<UnitCodeTest1>();
|
||||
Db.CodeFirst.InitTables<Test00111>();
|
||||
Db.DbMaintenance.TruncateTable<Test00111>();
|
||||
Db.Insertable(new Test00111()).ExecuteCommand();
|
||||
var list = Db.Queryable<Test00111>().ToList();
|
||||
}
|
||||
|
||||
public class Test00111
|
||||
{
|
||||
public int id { get; set; }
|
||||
[SugarColumn(ColumnDataType = "guid",IsNullable =true)]
|
||||
public Guid? creater { get; set; }
|
||||
}
|
||||
public class UnitCodeTest1
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user