- 补充 达梦 DbFirst 类型处理;

This commit is contained in:
28810
2019-12-22 03:20:54 +08:00
parent 35829f9010
commit 738eeb81a8
2 changed files with 53 additions and 6 deletions

View File

@ -83,9 +83,9 @@ public class g
.Build());
public static IFreeSql dameng => damemgLazy.Value;
//启动南大通用数据库 oninit -vy
static Lazy<IFreeSql> gbaseLazy = new Lazy<IFreeSql>(() => new FreeSql.FreeSqlBuilder()
.UseConnectionString(FreeSql.DataType.OdbcDameng, "Driver={DM8 ODBC DRIVER};Server=127.0.0.1:5236;Persist Security Info=False;Trusted_Connection=Yes;UID=USER1;PWD=123456789")
.UseConnectionString(FreeSql.DataType.OdbcDameng, "Driver={GBase ODBC DRIVER (64-bit)};Server=192.168.164.10:5236;Persist Security Info=False;Trusted_Connection=Yes;UID=USER1;PWD=123456789")
//.UseConnectionFactory(FreeSql.DataType.OdbcDameng, () => new System.Data.Odbc.OdbcConnection("Driver={DM8 ODBC DRIVER};Server=127.0.0.1:5236;Persist Security Info=False;Trusted_Connection=Yes;UID=USER1;PWD=123456789"))
.UseAutoSyncStructure(true)
.UseLazyLoading(true)
@ -98,6 +98,7 @@ public class g
.Build());
public static IFreeSql gbase => gbaseLazy.Value;
//启动神州通用数据库 /etc/init.d/oscardb_OSRDBd start
//SYSDBA 密码 szoscar55