internal static StaticCommandConfig GetCommandConfig(Type commandType) { if (commandConfigurations.ContainsKey(commandType)) { return(commandConfigurations[commandType]); } var newCommandConfig = new StaticCommandConfig(commandType); commandConfigurations.Add(commandType, newCommandConfig); return(newCommandConfig); }
internal static INewQueryable New(StaticCommandConfig commandConfig) { return(new Queryable(new CommandEngine(commandConfig))); }
internal ConfigurationBuilder WithConnection(string connection) { commandConfig = commandConfig.Copy(); commandConfig.ConnectionString = connection; return(this); }
internal ConfigurationBuilder WithTransaction(DbTransaction transaction) { commandConfig = commandConfig.Copy(); commandConfig.Transaction = transaction; return(this); }
private ConfigurationBuilder(StaticCommandConfig commandConfig) { this.commandConfig = commandConfig ?? throw new ArgumentNullException(nameof(commandConfig)); }