Exemple #1
0
 /// <summary>
 /// 初始化数据库连接
 /// </summary>
 /// <param name="connectionString"></param>
 public void Initialize(string connectionString, DriverType driverType)
 {
     driver       = ServiceContainer.Resolve <IDbDriver>($"{driverType}Driver");
     DbConnection = driver.GetDbConnection(connectionString);
 }