Ejemplo n.º 1
0
 public static ConfigurationSource?GetValueGeneratorFactoryConfigurationSource([NotNull] this IConventionProperty property)
 => property.FindAnnotation(CoreAnnotationNames.ValueGeneratorFactory)?.GetConfigurationSource();
Ejemplo n.º 2
0
 public static IConventionProperty?FindFirstPrincipal([NotNull] this IConventionProperty property)
 => (IConventionProperty?)((IProperty)property).FindFirstPrincipal();
Ejemplo n.º 3
0
 public static Func <IProperty, IEntityType, ValueGenerator>?SetValueGeneratorFactory(
     [NotNull] this IConventionProperty property,
     [NotNull] Func <IProperty, IEntityType, ValueGenerator> valueGeneratorFactory,
     bool fromDataAnnotation = false)
 => property.AsProperty().SetValueGeneratorFactory(
     valueGeneratorFactory, fromDataAnnotation ? ConfigurationSource.DataAnnotation : ConfigurationSource.Convention);