ParameterBuilder.Single 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.
Creates a new parameter definition to pass Single data.
Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public System.Data.Entity.Migrations.Model.ParameterModel Single (Nullable<float> defaultValue = null, string defaultValueSql = null, string name = null, string storeType = null, bool outParameter = false);
member this.Single : Nullable<single> * string * string * string * bool -> System.Data.Entity.Migrations.Model.ParameterModel
Public Function Single (Optional defaultValue As Nullable(Of Single) = null, Optional defaultValueSql As String = null, Optional name As String = null, Optional storeType As String = null, Optional outParameter As Boolean = false) As ParameterModel
Parameters
- defaultValueSql
- String
SQL expression used as the default value for this parameter.
- name
- String
The name of the parameter.
- storeType
- String
Provider specific data type to use for this parameter.
- outParameter
- Boolean
A value indicating whether the parameter is an output parameter.
Returns
The newly constructed parameter definition.
- Attributes
Applies to
Entity Framework