Struct ModificationCommandParameters
- Namespace
- Microsoft.EntityFrameworkCore.Update
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
Parameters for creating a IModificationCommand instance.
This type is typically used by database providers; it is generally not used in application code.
public readonly struct ModificationCommandParameters : IEquatable<ModificationCommandParameters>
- Implements
- Inherited Members
Remarks
See Implementation of database providers and extensions for more information and examples.
Constructors
ModificationCommandParameters(ITable, IStoreStoredProcedure?, bool, bool, IComparer<IUpdateEntry>?, Func<string>?, IDiagnosticsLogger<Update>?)
Creates a new ModificationCommandParameters instance.
public ModificationCommandParameters(ITable table, IStoreStoredProcedure? storeStoredProcedure, bool sensitiveLoggingEnabled, bool detailedErrorsEnabled = false, IComparer<IUpdateEntry>? comparer = null, Func<string>? generateParameterName = null, IDiagnosticsLogger<DbLoggerCategory.Update>? logger = null)
Parameters
table
ITableThe table containing the data to be modified.
storeStoredProcedure
IStoreStoredProcedureThe stored procedure to use for updating the data.
sensitiveLoggingEnabled
boolIndicates whether potentially sensitive data (e.g. database values) can be logged.
detailedErrorsEnabled
boolIndicates whether detailed errors should be logged.
comparer
IComparer<IUpdateEntry>An IComparer<T> for Microsoft.EntityFrameworkCore.Update.IUpdateEntry.
generateParameterName
Func<string>A delegate to generate parameter names.
logger
IDiagnosticsLogger<Update>An Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<> for Microsoft.EntityFrameworkCore.DbLoggerCategory.Update.
ModificationCommandParameters(ITable, bool, bool, IComparer<IUpdateEntry>?, Func<string>?, IDiagnosticsLogger<Update>?)
Creates a new ModificationCommandParameters instance.
public ModificationCommandParameters(ITable table, bool sensitiveLoggingEnabled, bool detailedErrorsEnabled = false, IComparer<IUpdateEntry>? comparer = null, Func<string>? generateParameterName = null, IDiagnosticsLogger<DbLoggerCategory.Update>? logger = null)
Parameters
table
ITableThe table containing the data to be modified.
sensitiveLoggingEnabled
boolIndicates whether potentially sensitive data (e.g. database values) can be logged.
detailedErrorsEnabled
boolIndicates whether detailed errors should be logged.
comparer
IComparer<IUpdateEntry>An IComparer<T> for Microsoft.EntityFrameworkCore.Update.IUpdateEntry.
generateParameterName
Func<string>A delegate to generate parameter names.
logger
IDiagnosticsLogger<Update>An Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<> for Microsoft.EntityFrameworkCore.DbLoggerCategory.Update.
Properties
Comparer
An IComparer<T> for Microsoft.EntityFrameworkCore.Update.IUpdateEntry.
public IComparer<IUpdateEntry>? Comparer { get; init; }
Property Value
- IComparer<IUpdateEntry>
DetailedErrorsEnabled
Indicates whether detailed errors should be logged.
public bool DetailedErrorsEnabled { get; init; }
Property Value
GenerateParameterName
A delegate to generate parameter names.
public Func<string>? GenerateParameterName { get; init; }
Property Value
Logger
A Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<> for Microsoft.EntityFrameworkCore.DbLoggerCategory.Update.
public IDiagnosticsLogger<DbLoggerCategory.Update>? Logger { get; init; }
Property Value
- IDiagnosticsLogger<Update>
Schema
The schema containing the table, or null to use the default schema.
public string? Schema { get; init; }
Property Value
SensitiveLoggingEnabled
Indicates whether potentially sensitive data (e.g. database values) can be logged.
public bool SensitiveLoggingEnabled { get; init; }
Property Value
StoreStoredProcedure
The stored procedure to use for updating the data.
public IStoreStoredProcedure? StoreStoredProcedure { get; }
Property Value
Table
The table containing the data to be modified.
public ITable? Table { get; init; }
Property Value
TableName
The name of the table containing the data to be modified.
public string TableName { get; init; }
Property Value
Methods
Equals(ModificationCommandParameters)
public bool Equals(ModificationCommandParameters other)
Parameters
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ModificationCommandParameters, ModificationCommandParameters)
public static bool operator ==(ModificationCommandParameters left, ModificationCommandParameters right)
Parameters
Returns
operator !=(ModificationCommandParameters, ModificationCommandParameters)
public static bool operator !=(ModificationCommandParameters left, ModificationCommandParameters right)