Update demo

This commit is contained in:
sunkaixuan
2019-06-04 21:09:53 +08:00
parent 3081c1f166
commit 037c8d89f8
77 changed files with 3387 additions and 3385 deletions

View File

@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OrmTest
{
public partial class NewUnitTest
{
public static void CodeFirst()
{
if (Db.DbMaintenance.IsAnyTable("UnitCodeTest1", false))
Db.DbMaintenance.DropTable("UnitCodeTest1");
Db.CodeFirst.InitTables<UnitCodeTest1>();
}
public class UnitCodeTest1
{
public int Id { get; set; }
public DateTime? CreateDate { get; set; }
}
}
}