/// <summary> /// Initializes a new instance of the <see cref="BaseReposiory"/> class. /// </summary> /// <param name="connection">The connection.</param> public BaseReposiory(Connections connection = Connections.Default) { switch (connection) { case Connections.Event: _dataAcessService = new DbDataServiceHandle(ApplicationConfiguration.ConnectionString, ApplicationConfiguration.Provider); break; default: _dataAcessService = new DbDataServiceHandle(ApplicationConfiguration.ConnectionString, ApplicationConfiguration.Provider); break; } }
/// <summary> /// Initializes a new instance of the <see cref="BaseReposiory"/> class. /// </summary> /// <param name="dataAccesshandler">The data accesshandler.</param> /// <param name="connection">The connection.</param> public BaseReposiory(DbDataAccessHandle dataAccesshandler) { _dataAcessService = dataAccesshandler; }