public virtual ConnectionStringResolveResult ResolveConnectionString(string connectionName)
        {
            ConnectionStringResolveResult r = ConnectionStringResolvers.TryResolve(connectionName);

            if (!r.Success)
            {
                throw r.Exception;
            }
            return(r);
        }
Beispiel #2
0
 /// <summary>
 /// Register the default SQLiteConnectionStringResolver instance as
 /// a ConnectionStringResolver with the ConnectionStringResolvers static
 /// class
 /// </summary>
 public static void Register()
 {
     ConnectionStringResolvers.AddResolver(Instance);
 }