IRelationalParameter.AddDbParameter Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddDbParameter(DbCommand, IReadOnlyDictionary<String,Object>) |
Adds the parameter as a DbParameter to a DbCommand. |
AddDbParameter(DbCommand, Object) |
Adds the parameter as a DbParameter to a DbCommand. |
AddDbParameter(DbCommand, IReadOnlyDictionary<String,Object>)
- Source:
- IRelationalParameter.cs
- Source:
- IRelationalParameter.cs
- Source:
- IRelationalParameter.cs
Adds the parameter as a DbParameter to a DbCommand.
public void AddDbParameter (System.Data.Common.DbCommand command, System.Collections.Generic.IReadOnlyDictionary<string,object> parameterValues);
public void AddDbParameter (System.Data.Common.DbCommand command, System.Collections.Generic.IReadOnlyDictionary<string,object?> parameterValues);
public void AddDbParameter (System.Data.Common.DbCommand command, System.Collections.Generic.IReadOnlyDictionary<string,object?>? parameterValues);
abstract member AddDbParameter : System.Data.Common.DbCommand * System.Collections.Generic.IReadOnlyDictionary<string, obj> -> unit
Public Sub AddDbParameter (command As DbCommand, parameterValues As IReadOnlyDictionary(Of String, Object))
Parameters
- command
- DbCommand
The command to add the parameter to.
- parameterValues
- IReadOnlyDictionary<String,Object>
The map of parameter values
Applies to
AddDbParameter(DbCommand, Object)
- Source:
- IRelationalParameter.cs
- Source:
- IRelationalParameter.cs
- Source:
- IRelationalParameter.cs
Adds the parameter as a DbParameter to a DbCommand.
public void AddDbParameter (System.Data.Common.DbCommand command, object value);
public void AddDbParameter (System.Data.Common.DbCommand command, object? value);
abstract member AddDbParameter : System.Data.Common.DbCommand * obj -> unit
Public Sub AddDbParameter (command As DbCommand, value As Object)
Parameters
- command
- DbCommand
The command to add the parameter to.
- value
- Object
The value to be assigned to the parameter.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework