mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 17:48:11 +08:00
Oracle CodeFirst
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user