public QueryObjectStringifier(IDbCommandStringifier commandStringifier, IDataInteractionFactory interactionFactory) { Argument.NotNull(commandStringifier, nameof(commandStringifier)); Argument.NotNull(interactionFactory, nameof(interactionFactory)); _interactionFactory = interactionFactory; _stringifier = commandStringifier; }
public ExecutionContext(IDbConnectionFactory factory, IProviderConfiguration provider, IDbCommandStringifier stringifier, IMapCompiler compiler, IMapCache mapCache) { MapCompiler = compiler; Stringifier = stringifier; Provider = provider; MapCache = mapCache; _completed = 0; _opened = 0; Connection = factory.Create(); }
// The runner core and all objects managed by it should be immutable and have no mutable // state. This object can and should be cached statically public SqlRunnerCore(IDataInteractionFactory interactionFactory, IProviderConfiguration providerConfiguration, IDbCommandStringifier stringifier) { Argument.NotNull(interactionFactory, nameof(interactionFactory)); Argument.NotNull(providerConfiguration, nameof(providerConfiguration)); Argument.NotNull(stringifier, nameof(stringifier)); Provider = providerConfiguration; InteractionFactory = interactionFactory; CommandStringifier = stringifier; ObjectStringifier = new QueryObjectStringifier(CommandStringifier, InteractionFactory); }