public static ConfigurationSource?GetIsMemoryOptimizedConfigurationSource([NotNull] this IConventionEntityType entityType) => entityType.FindAnnotation(SqlServerAnnotationNames.MemoryOptimized)?.GetConfigurationSource();
/// <summary> /// Returns the configuration source for <see cref="EntityTypeExtensions.GetChangeTrackingStrategy" />. /// </summary> /// <param name="entityType"> The entity type. </param> /// <returns> The configuration source for <see cref="EntityTypeExtensions.GetChangeTrackingStrategy" />. </returns> public static ConfigurationSource?GetChangeTrackingStrategyConfigurationSource([NotNull] this IConventionEntityType entityType) => entityType.FindAnnotation(CoreAnnotationNames.ChangeTrackingStrategy)?.GetConfigurationSource();
/// <summary> /// Gets the <see cref="ConfigurationSource" /> for the view schema. /// </summary> /// <param name="entityType"> The entity type to find configuration source for. </param> /// <returns> The <see cref="ConfigurationSource" /> for the view schema. </returns> public static ConfigurationSource?GetViewSchemaConfigurationSource([NotNull] this IConventionEntityType entityType) => entityType.FindAnnotation(RelationalAnnotationNames.ViewSchema) ?.GetConfigurationSource();
private static Dictionary <Type, HashSet <MemberInfo> >?GetDuplicateServiceProperties(IConventionEntityType entityType) => entityType.FindAnnotation(CoreAnnotationNames.DuplicateServiceProperties)?.Value as Dictionary <Type, HashSet <MemberInfo> >;
/// <summary> /// Returns the configuration source for <see cref="GetInMemoryQuery" />. /// </summary> /// <param name="entityType"> The entity type. </param> /// <returns> The configuration source for <see cref="GetInMemoryQuery" />. </returns> public static ConfigurationSource?GetDefiningQueryConfigurationSource(this IConventionEntityType entityType) #pragma warning disable EF1001 // Internal EF Core API usage. #pragma warning disable CS0612 // Type or member is obsolete => entityType.FindAnnotation(CoreAnnotationNames.DefiningQuery)?.GetConfigurationSource();
/// <summary> /// Gets the <see cref="ConfigurationSource" /> for the table name. /// </summary> /// <param name="entityType"> The entity type to find configuration source for. </param> /// <returns> The <see cref="ConfigurationSource" /> for the table name. </returns> public static ConfigurationSource?GetTableNameConfigurationSource([NotNull] this IConventionEntityType entityType) => entityType.FindAnnotation(RelationalAnnotationNames.TableName) ?.GetConfigurationSource();
/// <summary> /// Gets the configuration source for the temporal table period end property name setting. /// </summary> /// <param name="entityType"> The entity type. </param> /// <returns> The configuration source for the temporal table period end property name setting. </returns> public static ConfigurationSource?GetTemporalPeriodEndPropertyNameConfigurationSource(this IConventionEntityType entityType) => entityType.FindAnnotation(SqlServerAnnotationNames.TemporalPeriodEndPropertyName)?.GetConfigurationSource();
/// <summary> /// Gets the <see cref="ConfigurationSource" /> for the discriminator property. /// </summary> /// <param name="entityType"> The entity type. </param> /// <returns> The <see cref="ConfigurationSource" /> or <see langword="null" /> if no discriminator property has been set. </returns> public static ConfigurationSource?GetDiscriminatorPropertyConfigurationSource([NotNull] this IConventionEntityType entityType) => entityType.FindAnnotation(CoreAnnotationNames.DiscriminatorProperty) ?.GetConfigurationSource();
/// <summary> /// Gets the <see cref="ConfigurationSource" /> for the property that is used to store the partition key. /// </summary> /// <param name="entityType"> The entity type to find configuration source for. </param> /// <returns> The <see cref="ConfigurationSource" /> for the partition key property. </returns> public static ConfigurationSource?GetCosmosPartitionKeyPropertyNameConfigurationSource([NotNull] this IConventionEntityType entityType) => entityType.FindAnnotation(CosmosAnnotationNames.PartitionKeyName) ?.GetConfigurationSource();
/// <summary> /// Gets the <see cref="ConfigurationSource" /> for the container to which the entity type is mapped. /// </summary> /// <param name="entityType"> The entity type to find configuration source for. </param> /// <returns> The <see cref="ConfigurationSource" /> for the container to which the entity type is mapped. </returns> public static ConfigurationSource?GetCosmosContainerConfigurationSource([NotNull] this IConventionEntityType entityType) => entityType.FindAnnotation(CosmosAnnotationNames.ContainerName) ?.GetConfigurationSource();
/// <summary> /// Gets the <see cref="ConfigurationSource" /> for the table comment. /// </summary> /// <param name="entityType">The entity type to find configuration source for.</param> /// <returns>The <see cref="ConfigurationSource" /> for the table comment.</returns> public static ConfigurationSource?GetCommentConfigurationSource(this IConventionEntityType entityType) => entityType.FindAnnotation(RelationalAnnotationNames.Comment) ?.GetConfigurationSource();
/// <summary> /// Gets the <see cref="ConfigurationSource" /> for <see cref="IsTableExcludedFromMigrations"/>. /// </summary> /// <param name="entityType"> The entity type to find configuration source for. </param> /// <returns> The <see cref="ConfigurationSource" /> for <see cref="IsTableExcludedFromMigrations"/>. </returns> public static ConfigurationSource?GetIsTableExcludedFromMigrationsConfigurationSource([NotNull] this IConventionEntityType entityType) => entityType.FindAnnotation(RelationalAnnotationNames.IsTableExcludedFromMigrations) ?.GetConfigurationSource();
public static ConfigurationSource?GetIsUnloggedConfigurationSource(this IConventionEntityType index) => index.FindAnnotation(NpgsqlAnnotationNames.UnloggedTable)?.GetConfigurationSource();
/// <summary> /// Returns the configuration source for <see cref="EntityTypeExtensions.GetQueryFilter" />. /// </summary> /// <param name="entityType"> The entity type. </param> /// <returns> The configuration source for <see cref="EntityTypeExtensions.GetQueryFilter" />. </returns> public static ConfigurationSource?GetQueryFilterConfigurationSource([NotNull] this IConventionEntityType entityType) => entityType.FindAnnotation(CoreAnnotationNames.QueryFilter)?.GetConfigurationSource();
/// <summary> /// Gets the configuration source for the temporal table setting. /// </summary> /// <param name="entityType"> The entity type. </param> /// <returns> The configuration source for the temporal table setting. </returns> public static ConfigurationSource?GetIsTemporalConfigurationSource(this IConventionEntityType entityType) => entityType.FindAnnotation(SqlServerAnnotationNames.IsTemporal)?.GetConfigurationSource();
public static ConfigurationSource?GetDefiningQueryConfigurationSource([NotNull] this IConventionEntityType entityType) => entityType.FindAnnotation(CoreAnnotationNames.DefiningQuery)?.GetConfigurationSource();
public static ConfigurationSource?GetSqlQueryConfigurationSource([NotNull] this IConventionEntityType entityType) => entityType.FindAnnotation(RelationalAnnotationNames.SqlQuery) ?.GetConfigurationSource();
/// <summary> /// Gets the <see cref="ConfigurationSource" /> for the discriminator value completeness. /// </summary> /// <param name="entityType"> The entity type. </param> /// <returns> The <see cref="ConfigurationSource" /> or <see langword="null" /> if discriminator completeness has not been set. </returns> public static ConfigurationSource?GetDiscriminatorMappingCompleteConfigurationSource([NotNull] this IConventionEntityType entityType) => entityType.FindAnnotation(CoreAnnotationNames.DiscriminatorMappingComplete) ?.GetConfigurationSource();
/// <summary> /// Gets the configuration source for the character set mode. /// </summary> /// <param name="entityType"> The entity type. </param> /// <returns> The configuration source. </returns> public static ConfigurationSource?GetCharSetConfigurationSource([NotNull] this IConventionEntityType entityType) => entityType.FindAnnotation(MySqlAnnotationNames.CharSet)?.GetConfigurationSource();