protected override sealed IDataStoreEngine GetEngine() { try { var connectionForParsing = new SqlConnectionStringBuilder(ConnectionString); _ = Log.InfoAsync($"{nameof(MsSqlDataContext)} connecting to {connectionForParsing.DataSource}"); } catch { _ = Log.InfoAsync($"{nameof(MsSqlDataContext)} failed to parse {ConnectionString}"); } var engine = new MsSqlEngine(ConnectionString); return(engine); }
public MsSqlUtilities WithConnectionString(string connectionString) { var engine = new MsSqlEngine(connectionString); return(new MsSqlUtilities(engine)); }