public FrmDatabase(ConfigHelper configHelper, Logger logger) { InitializeComponent(); this.configHelper = configHelper; Logger = logger; repoConnection = new RepoConnection(configHelper, logger); }
//Select Which implementation of the ADO connector to Use private IRepoConnection SelectDATASource() { var vDataSource = mConfiguration.GetSection(Constants.Strings.AppSettings_DataSource); switch (vDataSource.Value) { case Constants.Strings.SQLite: mSlectedDataSource = new SqliteConnection(mConfiguration); mServices.AddSingleton <IRepoConnection>(mSlectedDataSource); break; case Constants.Strings.MySQL: mSlectedDataSource = new MySQLConnection(mConfiguration); mServices.AddSingleton <IRepoConnection>(mSlectedDataSource); break; case Constants.Strings.SqlCe: //mSlectedDataSource = new SqlCeConnection(mConfiguration); //mServices.AddSingleton<IRepoConnection>(mSlectedDataSource); break; } return(mSlectedDataSource); }
public DbCreator(IRepoConnection aDataConnector) { mDataConnector = aDataConnector; }
public GuestDapper(IRepoConnection aRepoConnection) { _DataConnector = aRepoConnection; SetupDataBase(); }
public void StartUp(IRepoConnection aReopConnection, Guest aGuest) { throw new NotImplementedException(); }
public void StartUp(IRepoConnection aReopConnection) { }
public GuestWebAPI(IRepoConnection aRepoConnection) { _ApiUrl = aRepoConnection.ConnectionString; }
public GuestDataCommon(IRepoConnection aRepoConnection) { mDataConnector = aRepoConnection; SetupDataBase(); }