Exemplo n.º 1
0
 public static IAsyncEnumerable <T> ReadAllAnonymousAsync <T>(this IDataReader reader, T proto, ReadOptions readOptions)
 {
     return(CreateAsyncEnumerable(() => ReadInfoFactory.CreateAnonymous(reader, proto, readOptions)));
 }
Exemplo n.º 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();
 }
Exemplo n.º 3
0
 public static IAsyncEnumerable <T> ReadAllAsync <T>(this IDataReader reader, ReadOptions readOptions) where T : new()
 {
     return(CreateAsyncEnumerable(() => ReadInfoFactory.CreateByType <T>(reader, readOptions)));
 }
Exemplo n.º 4
0
 protected internal abstract TransactionContext GetTransactionContext(DbTransaction transaction,
                                                                      QueryOptions queryOptions, BulkOptions bulkOptions, ReadOptions readOptions);
Exemplo n.º 5
0
 protected internal abstract ConnectionContext GetConnectionContext(DbConnection connection,
                                                                    QueryOptions queryOptions, BulkOptions bulkOptions, ReadOptions readOptions);
Exemplo n.º 6
0
 protected internal abstract ConnectionStringContext GetConnectionStringContext(string connectionString,
                                                                                QueryOptions queryOptions, BulkOptions bulkOptions, ReadOptions readOptions);
Exemplo n.º 7
0
 protected internal ScopedContext(ContextProvider contextProvider,
                                  QueryOptions queryOptions, BulkOptions bulkOptions, ReadOptions readOptions)
     : base(contextProvider, queryOptions, bulkOptions, readOptions)
 {
 }