src/Shared/EntityFramework/ModelConfiguration/Configuration/Properties/Primitive/Api/PrimitivePropertyConfiguration.cs
/// <summary>
/// Configures whether or not the property is to be used as an optimistic concurrency token.
/// </summary>
/// <param name="concurrencyToken"> Value indicating if the property is a concurrency token or not. Specifying 'null' will remove the concurrency token facet from the property. Specifying 'null' will cause the same runtime behavior as specifying 'false'. </param>
/// <returns> The same PrimitivePropertyConfiguration instance so that multiple calls can be chained. </returns>
Configures whether or not the property is to be used as an optimistic concurrency token.
Configures whether or not the property is to be used as an optimistic concurrency token .
public PrimitivePropertyConfiguration IsConcurrencyToken(bool? concurrencyToken)
        {
            Configuration.ConcurrencyMode
                = (concurrencyToken == null)
                      ? (ConcurrencyMode?)null
                      : (concurrencyToken.Value
                             ? ConcurrencyMode.Fixed
                             : ConcurrencyMode.None);
            return this;
        }
public PrimitivePropertyConfiguration IsConcurrencyToken ( bool ? concurrencyToken ) { Configuration . ConcurrencyMode = ( concurrencyToken == null ) ? ( ConcurrencyMode ? ) null : ( concurrencyToken . Value ? ConcurrencyMode . Fixed : ConcurrencyMode . None ) ; return this ; }
Configures whether or not the property is to be used as an optimistic concurrency token.
Configures whether or not the property is to be used as an optimistic concurrency token .
The same PrimitivePropertyConfiguration instance so that multiple calls can be chained.
The same PrimitivePropertyConfiguration instance so that multiple calls can be chained .
concurrencyToken
bool?
Value indicating if the property is a concurrency token or not. Specifying 'null' will remove the concurrency token facet from the property. Specifying 'null' will cause the same runtime behavior as specifying 'false'.
Value indicating if the property is a concurrency token or not . Specifying ' null ' will remove the concurrency token facet from the property . Specifying ' null ' will cause the same runtime behavior as specifying ' false ' .