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(); }
internal QueryOptions PrepareQueryOptions(QueryOptions options) { if (options == null) { return(QueryOptions.Clone().SetDefaults()); } var opt = ContextProvider.GetTyped(options, out var needClone); if (needClone) { opt = opt.Clone(); } return(opt.SetDefaults(QueryOptions).SetDefaults()); }