/// <summary> /// <para> /// Constructs a new <see cref="RelationalCommand" />. /// </para> /// <para> /// This type is typically used by database providers (and other extensions). It is generally /// not used in application code. /// </para> /// </summary> /// <param name="dependencies"> Parameter object containing dependencies for this service. </param> public RelationalCommandBuilderFactory( RelationalCommandBuilderDependencies dependencies) { Check.NotNull(dependencies, nameof(dependencies)); Dependencies = dependencies; }
private static RelationalCommandBuilder CreateCommandBuilder() { var dependencies = new RelationalCommandBuilderDependencies( new TestRelationalTypeMappingSource( TestServiceFactory.Instance.Create <TypeMappingSourceDependencies>(), TestServiceFactory.Instance.Create <RelationalTypeMappingSourceDependencies>())); var commandBuilder = new RelationalCommandBuilder(dependencies); return(commandBuilder); }
private static RelationalCommandBuilder CreateCommandBuilder() { var dependencies = new RelationalCommandBuilderDependencies( new TestRelationalTypeMappingSource( TestServiceFactory.Instance.Create <TypeMappingSourceDependencies>(), TestServiceFactory.Instance.Create <RelationalTypeMappingSourceDependencies>()), new FakeDiagnosticsLogger <DbLoggerCategory.Database.Command>()); var commandBuilder = new RelationalCommandBuilder(dependencies); return(commandBuilder); }
/// <summary> /// <para> /// Constructs a new <see cref="RelationalCommand" />. /// </para> /// <para> /// This type is typically used by database providers (and other extensions). It is generally /// not used in application code. /// </para> /// </summary> /// <param name="dependencies"> Service dependencies. </param> /// <param name="commandText"> The text of the command to be executed. </param> /// <param name="parameters"> Parameters for the command. </param> public RelationalCommand( [NotNull] RelationalCommandBuilderDependencies dependencies, [NotNull] string commandText, [NotNull] IReadOnlyList <IRelationalParameter> parameters) { Check.NotNull(dependencies, nameof(dependencies)); Check.NotNull(commandText, nameof(commandText)); Check.NotNull(parameters, nameof(parameters)); Dependencies = dependencies; CommandText = commandText; Parameters = parameters; }
/// <summary> /// <para> /// Constructs a new <see cref="RelationalCommand" />. /// </para> /// <para> /// This type is typically used by database providers (and other extensions). It is generally /// not used in application code. /// </para> /// </summary> /// <param name="dependencies">Parameter object containing dependencies for this service.</param> public RelationalCommandBuilderFactory( RelationalCommandBuilderDependencies dependencies) { Dependencies = dependencies; }