示例#1
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();
 }
示例#2
0
        internal ReadOptions PrepareReadOptions(ReadOptions options)
        {
            if (options == null)
            {
                return(ReadOptions.Clone());
            }

            var opt = options.Clone();

            opt.SetDefaults(ReadOptions);
            return(opt);
        }