Update NET

This commit is contained in:
610262374@qq.com
2018-12-12 01:27:36 +08:00
parent d2ca0ee001
commit 6ac627f4af
4 changed files with 11 additions and 4 deletions

View File

@@ -8,8 +8,8 @@ namespace OrmTest
{
public class Config
{
public static string ConnectionString = "PORT=5432;DATABASE=SqlSugar4xTest;HOST=localhost;PASSWORD=jhl52771;USER ID=postgres";
public static string ConnectionString2 = "PORT=5432;DATABASE=SqlSugar4xTest;HOST=localhost;PASSWORD=jhl52771;USER ID=postgres";
public static string ConnectionString3 = "PORT=5432;DATABASE=SqlSugar4xTest;HOST=localhost;PASSWORD=jhl52771;USER ID=postgres";
public static string ConnectionString = "PORT=5432;DATABASE=SqlSugar4xTest;HOST=localhost;PASSWORD=haosql;USER ID=postgres";
public static string ConnectionString2 = "PORT=5432;DATABASE=SqlSugar4xTest;HOST=localhost;PASSWORD=haosql;USER ID=postgres";
public static string ConnectionString3 = "PORT=5432;DATABASE=SqlSugar4xTest;HOST=localhost;PASSWORD=haosql;USER ID=postgres";
}
}

View File

@@ -47,7 +47,7 @@ namespace OrmTest.Demo
InitKeyType = InitKeyType.Attribute
});
db.CodeFirst.InitTables(typeof(Student), typeof(School));
db.CodeFirst.SetStringDefaultLength(30).InitTables(typeof(Student), typeof(School));
//Backup table
//db.CodeFirst.BackupTable().InitTables(typeof(CodeTable),typeof(CodeTable2));