public static SqlClientLite AsMaster(this SqlClientLite sql)
        {
            var builder = new SqlConnectionStringBuilder(sql.ConnectionString);

            builder.InitialCatalog   = "master";
            builder.AttachDBFilename = string.Empty;
            sql.ConnectionString     = builder.ConnectionString;
            return(sql);
        }
Ejemplo n.º 2
0
        public static SqlClientLite CreateNewFromConfigFile(string name, int timeoutInSeconds = 30)
        {
            var connectionString = SqlClientLite.GetConnectionStringFromConfigFile(name);

            return(new SqlClientLite(connectionString, timeoutInSeconds));
        }