ParameterBuilder.Decimal Method (Nullable<Byte>, Nullable<Byte>, Nullable<Decimal>, String, String, String, Boolean)

 

Creates a new parameter definition to pass Decimal data.

Namespace:   System.Data.Entity.Migrations.Builders
Assembly:  EntityFramework (in EntityFramework.dll)

[SuppressMessageAttribute("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
[SuppressMessageAttribute("Microsoft.Performance", "CA1822:MarkMembersAsStatic")]
public ParameterModel Decimal(
	Nullable<byte> precision = null,
	Nullable<byte> scale = null,
	Nullable<decimal> defaultValue = null,
	string defaultValueSql = null,
	string name = null,
	string storeType = null,
	bool outParameter = false
)

Parameters

precision
Type: System.Nullable<Byte>

The numeric precision of the parameter.

scale
Type: System.Nullable<Byte>

The numeric scale of the parameter.

defaultValue
Type: System.Nullable<Decimal>

A constant value to use as the default value for this parameter.

defaultValueSql
Type: System.String

The SQL expression used as the default value for this parameter.

name
Type: System.String

The name of the parameter.

storeType
Type: System.String

A provider specific data type to use for this parameter.

outParameter
Type: System.Boolean

A value indicating whether the parameter is an output parameter.

Return Value

Type: System.Data.Entity.Migrations.Model.ParameterModel

The newly constructed parameter definition.