diff --git a/Src/Asp.Net/OracleTest/UnitTest/UCodeFirst.cs b/Src/Asp.Net/OracleTest/UnitTest/UCodeFirst.cs index 5ad5156da..f990b0e8c 100644 --- a/Src/Asp.Net/OracleTest/UnitTest/UCodeFirst.cs +++ b/Src/Asp.Net/OracleTest/UnitTest/UCodeFirst.cs @@ -38,8 +38,11 @@ namespace OrmTest Db.CodeFirst.InitTables(); Db.Insertable(new UnitCodeFirst131() { Id = 1 }).ExecuteCommand(); Db.CodeFirst.InitTables(); + var xxx = Db.Queryable().ToList(); Db.CodeFirst.InitTables(); Db.CodeFirst.InitTables(); + if (Db.DbMaintenance.IsAnyTable("UnitIndextest", false)) + Db.DbMaintenance.DropTable("UnitIndextest"); Db.CodeFirst.InitTables(); } [SqlSugar.SugarIndex("UnitIndextestIndex2", nameof(UnitIndextest.Table1), SqlSugar.OrderByType.Asc)]