internal FluentBulkWriterBuilderElements(
            IStorageBulkWriter <TDataModel> storage,
            DataFilter <TDataModel> filter)
        {
            Checker.NotNullArgument(storage, nameof(storage));
            Checker.NotNullArgument(filter, nameof(filter));

            _storage = storage;
            _filter  = filter;
        }
 /// <summary>
 /// Create fluent API object for bulk writing
 /// </summary>
 /// <param name="storage">Storage object</param>
 /// <returns>Instance of <see cref="FluentBulkWriterBuilder{TDataModel}"/></returns>
 public static FluentBulkWriterBuilder <TDataModel> AsFluentBulkWriter <TDataModel>(
     this IStorageBulkWriter <TDataModel> storage)
     where TDataModel : IIdentifiable
 {
     return(new FluentBulkWriterBuilder <TDataModel>(storage));
 }
Beispiel #3
0
 internal FluentBulkWriterBuilder(IStorageBulkWriter <TDataModel> storage,
                                  DataFilter <TDataModel> filter) : base(storage, filter)
 {
 }
Beispiel #4
0
 public FluentBulkWriterBuilder(IStorageBulkWriter <TDataModel> storage) : base(storage,
                                                                                new DataFilter <TDataModel>())
 {
 }