Oracle CodeFirst

This commit is contained in:
sunkaixuan
2018-11-25 23:25:32 +08:00
parent c475975b9a
commit 10ce6c0f51
2 changed files with 2 additions and 3 deletions

View File

@@ -24,7 +24,6 @@ namespace OrmTest.Demo
public double? Dob2 { get; set; }
[SugarColumn(Length =110)]
public string A1 { get; set; }
public string X2 { get; set; }
}
public class CodeTable2 {
public int Id { get; set; }
@@ -48,7 +47,7 @@ namespace OrmTest.Demo
//db.CodeFirst.BackupTable().InitTables(typeof(CodeTable),typeof(CodeTable2));
//No backup table
db.CodeFirst.InitTables(typeof(CodeTable));
db.CodeFirst.InitTables(typeof(CodeTable),typeof(CodeTable2));
}
}
}

View File

@@ -125,7 +125,7 @@ namespace SqlSugar
{
get
{
return "exec sp_rename '{0}.{1}','{2}','column';";
return "ALTER TABLE {0} rename column {1} to {2}";
}
}
#endregion