Beispiel #1
0
 public static IFdbDatabaseProviderBuilder WithClusterFile([NotNull] this IFdbDatabaseProviderBuilder builder, [CanBeNull] string clusterFile)
 {
     builder.Services.Configure <FdbDatabaseProviderOptions>(c =>
     {
         c.ConnectionOptions.ClusterFile = clusterFile;
     });
     return(builder);
 }
 public static IFdbDatabaseProviderBuilder WithConnectionString(this IFdbDatabaseProviderBuilder builder, FdbConnectionOptions options)
 {
     builder.Services.Configure <FdbDatabaseProviderOptions>(c =>
     {
         c.ConnectionOptions = options;
     });
     return(builder);
 }
 public static IFdbDatabaseProviderBuilder WithApiVersion(this IFdbDatabaseProviderBuilder builder, int apiVersion)
 {
     builder.Services.Configure <FdbDatabaseProviderOptions>(c =>
     {
         c.ApiVersion = apiVersion;
     });
     return(builder);
 }
Beispiel #4
0
 public static IFdbDatabaseProviderBuilder WithConnectionString([NotNull] this IFdbDatabaseProviderBuilder builder, [NotNull] FdbConnectionOptions options)
 {
     Contract.NotNull(options, nameof(options));
     builder.Services.Configure <FdbDatabaseProviderOptions>(c =>
     {
         c.ConnectionOptions = options;
     });
     return(builder);
 }
Beispiel #5
0
 public static IFdbDatabaseProviderBuilder WithApiVersion([NotNull] this IFdbDatabaseProviderBuilder builder, int apiVersion)
 {
     Contract.GreaterThan(apiVersion, 0, nameof(apiVersion));
     builder.Services.Configure <FdbDatabaseProviderOptions>(c =>
     {
         c.ApiVersion = apiVersion;
     });
     return(builder);
 }