Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 public static IRepositoryContainer GetContainer(TaskManagerDbType dbType)
 {
     switch (dbType)
     {
         case TaskManagerDbType.SqlServer:
             return Instance._ssContainer;
         case TaskManagerDbType.MySql:
             return Instance._msContainer;
         default:
             throw new ArgumentOutOfRangeException();
     }
 }