mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Update NET
This commit is contained in:
parent
d2ca0ee001
commit
6ac627f4af
@ -207,6 +207,10 @@ namespace SqlSugar
|
||||
{
|
||||
return new OracleInsertable<T>();
|
||||
}
|
||||
else if (currentConnectionConfig.DbType == DbType.PostgreSQL)
|
||||
{
|
||||
return new PostgreSQLInserttable<T>();
|
||||
}
|
||||
else
|
||||
{
|
||||
return new InsertableProvider<T>();
|
||||
|
@ -5,6 +5,9 @@ using System.Text;
|
||||
|
||||
namespace SqlSugar
|
||||
{
|
||||
internal class PostgreSQLInserttable<T> :InsertableProvider<T> where T : class, new()
|
||||
{
|
||||
}
|
||||
internal class PostgreSQLExpressionContext : ExpressionContext, ILambdaExpressions
|
||||
{
|
||||
public SqlSugarClient Context
|
||||
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user