public override void OnConfiguring(RepositoryOptionsBuilder builder)
 {
     builder
     .BuildConnection(new SqlConnection("server=risingup.life98.cn,55940;database=Lige;user=sa;password=!RisingupTech/././.;max pool size=300"))
     .BuildProvider(new MsSqlProvider())
     .BuildAutoSyncStructure(true);
 }
 /// <summary>
 /// 配置连接
 /// </summary>
 /// <param name="builder"></param>
 public override void OnConfiguring(RepositoryOptionsBuilder builder)
 {
     builder.BuildConnection(x => new MySqlConnection(@"server=localhost;port=3306;user id=root;password=A5101264a;database=gc_fps_receivable;"))
     .BuildConnection(x => new MySqlConnection(@"server=192.168.87.141;port=63307;user id=fps_dbuser_dev;password=kxx44cuvlmjluqncju;
                          persistsecurityinfo=True;database=gc_fps_receivable_dev_2021_0;SslMode=none"), "fps_2021")
     .BuildAutoSyncStructure(false)
     .BuildProvider(new MySqlProvider());
 }
 public override void OnConfiguring(RepositoryOptionsBuilder builder)
 {
     builder
     .BuildConnection(new MySqlConnection("Server=localhost;Database=Qx_Sport_Common;Uid=root;Pwd=A5101264a;")) //配置连接方式
     .BuildProvider(new MySqlProvider());                                                                       //配置数据库提供者
 }
Esempio n. 4
0
 public override void OnConfiguring(RepositoryOptionsBuilder builder)
 {
     builder
     .BuildConnection(new SqlConnection("server=localhost;database=Lige;user=sa;password=!RisingupTech/././.;max pool size=300"))
     .BuildProvider(new MsSqlProvider());
 }