public static ConfigurationSource?GetIsMemoryOptimizedConfigurationSource([NotNull] this IConventionEntityType entityType)
 => entityType.FindAnnotation(SqlServerAnnotationNames.MemoryOptimized)?.GetConfigurationSource();
Ejemplo n.º 2
0
 /// <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();
Ejemplo n.º 4
0
 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();
Ejemplo n.º 8
0
 /// <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();
Ejemplo n.º 9
0
 /// <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();
Ejemplo n.º 10
0
 /// <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();
Ejemplo n.º 11
0
 /// <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();
Ejemplo n.º 12
0
 /// <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();
Ejemplo n.º 13
0
 public static ConfigurationSource?GetIsUnloggedConfigurationSource(this IConventionEntityType index)
 => index.FindAnnotation(NpgsqlAnnotationNames.UnloggedTable)?.GetConfigurationSource();
Ejemplo n.º 14
0
 /// <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();
Ejemplo n.º 15
0
 /// <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();
Ejemplo n.º 16
0
 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();
Ejemplo n.º 18
0
 /// <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();