Пример #1
0
 public static IAsyncEnumerable <T> ReadAllAnonymousAsync <T>(this IDataReader reader, T proto, ReadOptions readOptions)
 {
     return(CreateAsyncEnumerable(() => ReadInfoFactory.CreateAnonymous(reader, proto, readOptions)));
 }
Пример #2
0
 protected internal DbContext(ContextProvider contextProvider,
                              QueryOptions queryOptions, BulkOptions bulkOptions, ReadOptions readOptions)
 {
     this.ContextProvider = contextProvider;
     this.QueryOptions    = queryOptions.Clone();
     this.BulkOptions     = bulkOptions.Clone();
     this.ReadOptions     = readOptions.Clone();
 }
Пример #3
0
 public static IAsyncEnumerable <T> ReadAllAsync <T>(this IDataReader reader, ReadOptions readOptions) where T : new()
 {
     return(CreateAsyncEnumerable(() => ReadInfoFactory.CreateByType <T>(reader, readOptions)));
 }
Пример #4
0
 protected internal abstract TransactionContext GetTransactionContext(DbTransaction transaction,
                                                                      QueryOptions queryOptions, BulkOptions bulkOptions, ReadOptions readOptions);
Пример #5
0
 protected internal abstract ConnectionContext GetConnectionContext(DbConnection connection,
                                                                    QueryOptions queryOptions, BulkOptions bulkOptions, ReadOptions readOptions);
Пример #6
0
 protected internal abstract ConnectionStringContext GetConnectionStringContext(string connectionString,
                                                                                QueryOptions queryOptions, BulkOptions bulkOptions, ReadOptions readOptions);
Пример #7
0
 protected internal ScopedContext(ContextProvider contextProvider,
                                  QueryOptions queryOptions, BulkOptions bulkOptions, ReadOptions readOptions)
     : base(contextProvider, queryOptions, bulkOptions, readOptions)
 {
 }