public ServiceConfig(string connectionString, string connectionProvider, TaskManagerDbType dbType, string userId, string userName, string rootPath) { this._connectionString = connectionString; this._connectionProvider = connectionProvider; this._dbType = dbType; this._userId = userId; this._userName = userName; this._rootPath = rootPath; }
public static IRepositoryContainer GetContainer(TaskManagerDbType dbType) { switch (dbType) { case TaskManagerDbType.SqlServer: return Instance._ssContainer; case TaskManagerDbType.MySql: return Instance._msContainer; default: throw new ArgumentOutOfRangeException(); } }