ParameterBuilder.String Method (Nullable<Int32>, Nullable<Boolean>, Nullable<Boolean>, String, String, String, String, Boolean)

 

Creates a new parameter definition to pass String data.

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

[SuppressMessageAttribute("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
[SuppressMessageAttribute("Microsoft.Performance", "CA1822:MarkMembersAsStatic")]
public ParameterModel String(
	Nullable<int> maxLength = null,
	Nullable<bool> fixedLength = null,
	Nullable<bool> unicode = null,
	string defaultValue = null,
	string defaultValueSql = null,
	string name = null,
	string storeType = null,
	bool outParameter = false
)

Parameters

maxLength
Type: System.Nullable<Int32>

The maximum allowable length of the string data.

fixedLength
Type: System.Nullable<Boolean>

A value indicating whether or not all data should be padded to the maximum length.

unicode
Type: System.Nullable<Boolean>

A value indicating whether or not the parameter supports Unicode content.

defaultValue
Type: System.String

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.