@@ -34,11 +34,11 @@ public static void SetJetIdentitySeed(this IMutableModel model, int? seed)
3434 /// <param name="model"> The model. </param>
3535 /// <param name="seed"> The value to set. </param>
3636 /// <param name="fromDataAnnotation"> Indicates whether the configuration was specified using a data annotation. </param>
37- public static void SetJetIdentitySeed ( this IConventionModel model , int ? seed , bool fromDataAnnotation = false )
38- => model . SetOrRemoveAnnotation (
37+ public static int ? SetJetIdentitySeed ( this IConventionModel model , int ? seed , bool fromDataAnnotation = false )
38+ => ( int ? ) model . SetOrRemoveAnnotation (
3939 JetAnnotationNames . IdentitySeed ,
4040 seed ,
41- fromDataAnnotation ) ;
41+ fromDataAnnotation ) ? . Value ;
4242
4343 /// <summary>
4444 /// Returns the <see cref="ConfigurationSource" /> for the default schema.
@@ -72,12 +72,12 @@ public static void SetJetIdentityIncrement(this IMutableModel model, int? increm
7272 /// <param name="model"> The model. </param>
7373 /// <param name="increment"> The value to set. </param>
7474 /// <param name="fromDataAnnotation"> Indicates whether the configuration was specified using a data annotation. </param>
75- public static void SetJetIdentityIncrement (
75+ public static int ? SetJetIdentityIncrement (
7676 this IConventionModel model , int ? increment , bool fromDataAnnotation = false )
77- => model . SetOrRemoveAnnotation (
77+ => ( int ? ) model . SetOrRemoveAnnotation (
7878 JetAnnotationNames . IdentityIncrement ,
7979 increment ,
80- fromDataAnnotation ) ;
80+ fromDataAnnotation ) ? . Value ;
8181
8282 /// <summary>
8383 /// Returns the <see cref="ConfigurationSource" /> for the default identity increment.
@@ -112,16 +112,16 @@ public static void SetValueGenerationStrategy(this IMutableModel model, JetValue
112112 /// <param name="model"> The model. </param>
113113 /// <param name="value"> The value to set. </param>
114114 /// <param name="fromDataAnnotation"> Indicates whether the configuration was specified using a data annotation. </param>
115- public static void SetValueGenerationStrategy (
115+ public static JetValueGenerationStrategy ? SetValueGenerationStrategy (
116116 this IConventionModel model , JetValueGenerationStrategy ? value , bool fromDataAnnotation = false )
117- => model . SetOrRemoveAnnotation ( JetAnnotationNames . ValueGenerationStrategy , value , fromDataAnnotation ) ;
117+ => ( JetValueGenerationStrategy ? ) model . SetOrRemoveAnnotation ( JetAnnotationNames . ValueGenerationStrategy , value , fromDataAnnotation ) ? . Value ;
118118
119119 /// <summary>
120120 /// Returns the <see cref="ConfigurationSource" /> for the default <see cref="JetValueGenerationStrategy" />.
121121 /// </summary>
122122 /// <param name="model"> The model. </param>
123123 /// <returns> The <see cref="ConfigurationSource" /> for the default <see cref="JetValueGenerationStrategy" />. </returns>
124- public static ConfigurationSource ? GetJetValueGenerationStrategyConfigurationSource ( this IConventionModel model )
124+ public static ConfigurationSource ? GetValueGenerationStrategyConfigurationSource ( this IConventionModel model )
125125 => model . FindAnnotation ( JetAnnotationNames . ValueGenerationStrategy ) ? . GetConfigurationSource ( ) ;
126126 }
127127}
0 commit comments