示例#1
0
        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);
        }
示例#2
0
        public MsSqlUtilities WithConnectionString(string connectionString)
        {
            var engine = new MsSqlEngine(connectionString);

            return(new MsSqlUtilities(engine));
        }