src/Shared/EntityFramework/ModelConfiguration/Configuration/Properties/Primitive/Api/LengthPropertyConfiguration.cs
/// <summary>
/// Configures the property to have the specified maximum length.
/// </summary>
/// <param name="value"> The maximum length for the property. Setting 'null' will remove any maximum length restriction from the property and a default length will be used for the database column. </param>
/// <returns> The same LengthPropertyConfiguration instance so that multiple calls can be chained. </returns>
Configures the property to have the specified maximum length.
Configures the property to have the specified maximum length .
public LengthPropertyConfiguration HasMaxLength(int? value)
        {
            Configuration.MaxLength = value;
            Configuration.IsMaxLength = null;
            Configuration.IsFixedLength = Configuration.IsFixedLength ?? false;
            return this;
        }
public LengthPropertyConfiguration HasMaxLength ( int ? value ) { Configuration . MaxLength = value ; Configuration . IsMaxLength = null ; Configuration . IsFixedLength = Configuration . IsFixedLength ?? false ; return this ; }
Configures the property to have the specified maximum length.
Configures the property to have the specified maximum length .
The same LengthPropertyConfiguration instance so that multiple calls can be chained.
The same LengthPropertyConfiguration instance so that multiple calls can be chained .
value
int?
The maximum length for the property. Setting 'null' will remove any maximum length restriction from the property and a default length will be used for the database column.
The maximum length for the property . Setting ' null ' will remove any maximum length restriction from the property and a default length will be used for the database column .