mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 02:29:39 +08:00
Oracle CodeFirst
This commit is contained in:
@@ -24,7 +24,6 @@ namespace OrmTest.Demo
|
|||||||
public double? Dob2 { get; set; }
|
public double? Dob2 { get; set; }
|
||||||
[SugarColumn(Length =110)]
|
[SugarColumn(Length =110)]
|
||||||
public string A1 { get; set; }
|
public string A1 { get; set; }
|
||||||
public string X2 { get; set; }
|
|
||||||
}
|
}
|
||||||
public class CodeTable2 {
|
public class CodeTable2 {
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
@@ -48,7 +47,7 @@ namespace OrmTest.Demo
|
|||||||
//db.CodeFirst.BackupTable().InitTables(typeof(CodeTable),typeof(CodeTable2));
|
//db.CodeFirst.BackupTable().InitTables(typeof(CodeTable),typeof(CodeTable2));
|
||||||
|
|
||||||
//No backup table
|
//No backup table
|
||||||
db.CodeFirst.InitTables(typeof(CodeTable));
|
db.CodeFirst.InitTables(typeof(CodeTable),typeof(CodeTable2));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -125,7 +125,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return "exec sp_rename '{0}.{1}','{2}','column';";
|
return "ALTER TABLE {0} rename column {1} to {2}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
Reference in New Issue
Block a user