private FloorPackRecordObjectContext RegisterIDbContext( IComponentContext componentContext, DataSettings dataSettings) { string dataConnectionStrings; if (dataSettings != null && dataSettings.IsValid()) dataConnectionStrings = dataSettings.DataConnectionString; else dataConnectionStrings = componentContext.Resolve<DataSettings>().DataConnectionString; return new FloorPackRecordObjectContext(dataConnectionStrings); }
private DoItYourselfObjectContext RegisterIDbContext(IComponentContext componentContext, DataSettings dataSettings) { string dataConnectionStrings; if (dataSettings != null && dataSettings.IsValid()) { dataConnectionStrings = dataSettings.DataConnectionString; } else { dataConnectionStrings = componentContext.Resolve<DataSettings>().DataConnectionString; } return new DoItYourselfObjectContext(dataConnectionStrings); }
/// <summary> /// Registers the I db context. /// </summary> /// <param name="componentContext">The component context.</param> /// <param name="dataSettings">The data settings.</param> /// <returns></returns> private SagePayServerTransactionObjectContext RegisterIDbContext(IComponentContext componentContext, DataSettings dataSettings) { string dataConnectionStrings; if (dataSettings != null && dataSettings.IsValid()) { dataConnectionStrings = dataSettings.DataConnectionString; } else { dataConnectionStrings = componentContext.Resolve<DataSettings>().DataConnectionString; } return new SagePayServerTransactionObjectContext(dataConnectionStrings); }