/// <summary> /// Returns the store value generation strategy to set for the given property. /// </summary> /// <param name="property"> The property. </param> /// <returns> The store value generation strategy to set for the given property. </returns> public static new ValueGenerated?GetValueGenerated([NotNull] IProperty property) => RelationalValueGenerationConvention.GetValueGenerated(property) ?? (property.GetSqlServerValueGenerationStrategy() != SqlServerValueGenerationStrategy.None ? ValueGenerated.OnAdd : (ValueGenerated?)null);
/// <summary> /// Returns the store value generation strategy to set for the given property. /// </summary> /// <param name="property"> The property. </param> /// <returns> The store value generation strategy to set for the given property. </returns> public static new ValueGenerated?GetValueGenerated([NotNull] IProperty property) => RelationalValueGenerationConvention.GetValueGenerated(property) ?? ((property as IConventionProperty)?.GetSqlServerValueGenerationStrategyConfigurationSource() != null && property.GetSqlServerValueGenerationStrategy() != null ? ValueGenerated.OnAdd : (ValueGenerated?)null);
/// <summary> /// Returns the store value generation strategy to set for the given property. /// </summary> /// <param name="property"> The property. </param> /// <param name="tableName"> The table name. </param> /// <param name="schema"> The schema. </param> /// <returns> The store value generation strategy to set for the given property. </returns> public static new ValueGenerated?GetValueGenerated( [NotNull] IProperty property, [NotNull] string tableName, [CanBeNull] string schema) => RelationalValueGenerationConvention.GetValueGenerated(property, tableName, schema) ?? (property.GetValueGenerationStrategy(tableName, schema) != SqlServerValueGenerationStrategy.None ? ValueGenerated.OnAdd : (ValueGenerated?)null);
/// <summary> /// Returns the store value generation strategy to set for the given property. /// </summary> /// <param name="property"> The property. </param> /// <param name="storeObject"> The identifier of the store object. </param> /// <returns> The store value generation strategy to set for the given property. </returns> public static new ValueGenerated?GetValueGenerated([NotNull] IProperty property, StoreObjectIdentifier storeObject) => RelationalValueGenerationConvention.GetValueGenerated(property, storeObject) ?? (property.GetValueGenerationStrategy(storeObject) != SqlServerValueGenerationStrategy.None ? ValueGenerated.OnAdd : (ValueGenerated?)null);