public static dynamic Open(this IDatabaseOpener opener, ODataFeed settings)
 {
     return(opener.Open("OData", CreateSettings(
                            settings.Url,
                            settings.Credentials,
                            settings.IncludeResourceTypeInEntryProperties,
                            settings.IgnoreResourceNotFoundException,
                            settings.BeforeRequest,
                            settings.AfterResponse)));
 }
Example #2
0
 public static dynamic Open(this IDatabaseOpener opener, string url)
 {
     return(opener.Open("OData", new { Url = url }));
 }
Example #3
0
 public static dynamic Open(this IDatabaseOpener opener, Uri uri)
 {
     return(opener.Open("OData", new { Url = uri.AbsoluteUri }));
 }
 public static dynamic Open(this IDatabaseOpener opener, string url)
 {
     return(opener.Open("OData", CreateSettings(url, null, false, false, null, null)));
 }
 public static dynamic Open(this IDatabaseOpener opener, Uri uri)
 {
     return(opener.Open("OData", CreateSettings(uri.AbsoluteUri, null, false, false, null, null)));
 }
 public static Database OpenMongo(this IDatabaseOpener opener, MongoServerSettings settings, string databaseName)
 {
     return(opener.Open("MongoDb", new { Settings = settings, DatabaseName = databaseName }));
 }
 public static Database OpenMongo(this IDatabaseOpener opener, Uri uri)
 {
     return(opener.Open("MongoDb", new { ConnectionString = uri }));
 }
 public static Database OpenMongo(this IDatabaseOpener opener, MongoUrl mongoUrl)
 {
     return(opener.Open("MongoDb", new { ConnectionString = mongoUrl }));
 }
 public static Database OpenMongo(this IDatabaseOpener opener, MongoConnectionStringBuilder connectionStringBuilder)
 {
     return(opener.Open("MongoDb", new { ConnectionString = connectionStringBuilder }));
 }
 public static Database OpenMongo(this IDatabaseOpener opener, string connectionString)
 {
     return(opener.Open("MongoDb", new { ConnectionString = connectionString }));
 }