コード例 #1
0
 public static ConfigurationSource?GetTablespaceConfigurationSource(this IConventionModel model)
 => model.FindAnnotation(NpgsqlAnnotationNames.Tablespace)?.GetConfigurationSource();
コード例 #2
0
 /// <summary>
 /// Returns the <see cref="ConfigurationSource" /> for the default column collation.
 /// </summary>
 /// <param name="model">The model.</param>
 /// <returns>The <see cref="ConfigurationSource" /> for the default column collation.</returns>
 public static ConfigurationSource?GetDefaultColumnCollationConfigurationSource(this IConventionModel model)
 => model.FindAnnotation(NpgsqlAnnotationNames.DefaultColumnCollation)?.GetConfigurationSource();
コード例 #3
0
 /// <summary>
 ///     Returns the <see cref="ConfigurationSource" /> for the default character set of the model/database.
 /// </summary>
 /// <param name="model"> The model. </param>
 /// <returns> The <see cref="ConfigurationSource" /> for the default character set. </returns>
 public static ConfigurationSource?GetCharSetConfigurationSource([NotNull] this IConventionModel model)
 => model.FindAnnotation(MySqlAnnotationNames.CharSet)?.GetConfigurationSource();
コード例 #4
0
 public static ConfigurationSource?GetDatabaseTemplateConfigurationSource(this IConventionModel model)
 => model.FindAnnotation(NpgsqlAnnotationNames.DatabaseTemplate)?.GetConfigurationSource();
コード例 #5
0
 /// <summary>
 ///     Returns the <see cref="ConfigurationSource" /> for the service tier of the database.
 /// </summary>
 /// <param name="model"> The model. </param>
 /// <returns> The <see cref="ConfigurationSource" /> for the service tier of the database. </returns>
 public static ConfigurationSource?GetServiceTierSqlConfigurationSource([NotNull] this IConventionModel model)
 => model.FindAnnotation(SqlServerAnnotationNames.ServiceTierSql)?.GetConfigurationSource();
コード例 #6
0
 /// <summary>
 ///     Returns the <see cref="ConfigurationSource" /> for the default schema.
 /// </summary>
 /// <param name="model">The model.</param>
 /// <returns>The <see cref="ConfigurationSource" /> for the default schema.</returns>
 public static ConfigurationSource?GetIdentitySeedConfigurationSource(this IConventionModel model)
 => model.FindAnnotation(SqlServerAnnotationNames.IdentitySeed)?.GetConfigurationSource();
コード例 #7
0
 /// <summary>
 ///     Gets the <see cref="ConfigurationSource" /> for the provisioned throughput at database scope.
 /// </summary>
 /// <param name="model">The model.</param>
 /// <returns>The <see cref="ConfigurationSource" /> for the throughput.</returns>
 public static ConfigurationSource?GetThroughputConfigurationSource(this IConventionModel model)
 => model.FindAnnotation(CosmosAnnotationNames.Throughput)
 ?.GetConfigurationSource();
コード例 #8
0
 /// <summary>
 ///     Returns the <see cref="ConfigurationSource" /> for the default <see cref="SqlServerValueGenerationStrategy" />.
 /// </summary>
 /// <param name="model"> The model. </param>
 /// <returns> The <see cref="ConfigurationSource" /> for the default <see cref="SqlServerValueGenerationStrategy" />. </returns>
 public static ConfigurationSource?GetValueGenerationStrategyConfigurationSource([NotNull] this IConventionModel model)
 => model.FindAnnotation(SqlServerAnnotationNames.ValueGenerationStrategy)?.GetConfigurationSource();
コード例 #9
0
 public static ConfigurationSource?GetMaxIdentifierLengthConfigurationSource([NotNull] this IConventionModel model)
 => model.FindAnnotation(RelationalAnnotationNames.MaxIdentifierLength)?.GetConfigurationSource();
コード例 #10
0
 public static ConfigurationSource?GetCollationConfigurationSource([NotNull] this IConventionModel model)
 => model.FindAnnotation(RelationalAnnotationNames.Collation)?.GetConfigurationSource();
コード例 #11
0
 public static ConfigurationSource?GetDefaultSchemaConfigurationSource([NotNull] this IConventionModel model)
 => model.FindAnnotation(RelationalAnnotationNames.DefaultSchema)?.GetConfigurationSource();
コード例 #12
0
 /// <summary>
 ///     Returns the <see cref="ConfigurationSource" /> for the default schema.
 /// </summary>
 /// <param name="model"> The model. </param>
 /// <returns> The <see cref="ConfigurationSource" /> for the default schema. </returns>
 public static ConfigurationSource?GetIdentitySeedConfigurationSource([NotNull] this IConventionModel model)
 => model.FindAnnotation(JetAnnotationNames.IdentitySeed)?.GetConfigurationSource();
 /// <summary>
 ///     Returns the configuration source for <see cref="ModelExtensions.GetChangeTrackingStrategy" />.
 /// </summary>
 /// <param name="model"> The model to find configuration source for. </param>
 /// <returns> The configuration source for <see cref="ModelExtensions.GetChangeTrackingStrategy" />. </returns>
 public static ConfigurationSource?GetChangeTrackingStrategyConfigurationSource([NotNull] this IConventionModel model)
 => model.FindAnnotation(CoreAnnotationNames.ChangeTrackingStrategy)?.GetConfigurationSource();
コード例 #14
0
 /// <summary>
 ///     Returns the <see cref="ConfigurationSource" /> for the default hi-lo sequence schema.
 /// </summary>
 /// <param name="model"> The model. </param>
 /// <returns> The <see cref="ConfigurationSource" /> for the default hi-lo sequence schema. </returns>
 public static ConfigurationSource?GetHiLoSequenceSchemaConfigurationSource([NotNull] this IConventionModel model)
 => model.FindAnnotation(SqlServerAnnotationNames.HiLoSequenceSchema)?.GetConfigurationSource();
コード例 #15
0
 /// <summary>
 ///     Returns the configuration source for the default container name.
 /// </summary>
 /// <param name="model">The model.</param>
 /// <returns>The configuration source for the default container name.</returns>
 public static ConfigurationSource?GetDefaultContainerConfigurationSource(this IConventionModel model)
 => model.FindAnnotation(CosmosAnnotationNames.ContainerName)?.GetConfigurationSource();
コード例 #16
0
 /// <summary>
 ///     Returns the <see cref="ConfigurationSource" /> for the default identity increment.
 /// </summary>
 /// <param name="model"> The model. </param>
 /// <returns> The <see cref="ConfigurationSource" /> for the default identity increment. </returns>
 public static ConfigurationSource?GetIdentityIncrementConfigurationSource([NotNull] this IConventionModel model)
 => model.FindAnnotation(SqlServerAnnotationNames.IdentityIncrement)?.GetConfigurationSource();
コード例 #17
0
 public static ConfigurationSource?GetPropertyAccessModeConfigurationSource([NotNull] this IConventionModel model)
 => model.FindAnnotation(CoreAnnotationNames.PropertyAccessMode)?.GetConfigurationSource();
コード例 #18
0
 /// <summary>
 ///     Returns the <see cref="ConfigurationSource" /> for the maximum size of the database.
 /// </summary>
 /// <param name="model"> The model. </param>
 /// <returns> The <see cref="ConfigurationSource" /> for the maximum size of the database. </returns>
 public static ConfigurationSource?GetDatabaseMaxSizeConfigurationSource([NotNull] this IConventionModel model)
 => model.FindAnnotation(SqlServerAnnotationNames.MaxDatabaseSize)?.GetConfigurationSource();
コード例 #19
0
 /// <summary>
 ///     Returns the <see cref="ConfigurationSource" /> for the default hi-lo sequence schema.
 /// </summary>
 /// <param name="model"> The model. </param>
 /// <returns> The <see cref="ConfigurationSource" /> for the default hi-lo sequence schema. </returns>
 public static ConfigurationSource?GetHiLoSequenceSchemaConfigurationSource(this IConventionModel model)
 => model.FindAnnotation(NpgsqlAnnotationNames.HiLoSequenceSchema)?.GetConfigurationSource();
コード例 #20
0
 /// <summary>
 ///     Returns the <see cref="ConfigurationSource" /> for the performance level of the database.
 /// </summary>
 /// <param name="model"> The model. </param>
 /// <returns> The <see cref="ConfigurationSource" /> for the performance level of the database. </returns>
 public static ConfigurationSource?GetPerformanceLevelSqlConfigurationSource([NotNull] this IConventionModel model)
 => model.FindAnnotation(SqlServerAnnotationNames.PerformanceLevelSql)?.GetConfigurationSource();
コード例 #21
0
 /// <summary>
 ///     Returns the <see cref="ConfigurationSource" /> for the default <see cref="NpgsqlValueGenerationStrategy" />.
 /// </summary>
 /// <param name="model"> The model. </param>
 /// <returns> The <see cref="ConfigurationSource" /> for the default <see cref="NpgsqlValueGenerationStrategy" />. </returns>
 public static ConfigurationSource?GetValueGenerationStrategyConfigurationSource(this IConventionModel model)
 => model.FindAnnotation(NpgsqlAnnotationNames.ValueGenerationStrategy)?.GetConfigurationSource();
コード例 #22
0
 /// <summary>
 ///     Returns the <see cref="ConfigurationSource" /> for the default hi-lo sequence name.
 /// </summary>
 /// <param name="model">The model.</param>
 /// <returns>The <see cref="ConfigurationSource" /> for the default hi-lo sequence name.</returns>
 public static ConfigurationSource?GetHiLoSequenceNameConfigurationSource(this IConventionModel model)
 => model.FindAnnotation(SqlServerAnnotationNames.HiLoSequenceName)?.GetConfigurationSource();
コード例 #23
0
 /// <summary>
 ///     Returns the <see cref="ConfigurationSource" /> for the default hi-lo sequence name.
 /// </summary>
 /// <param name="model"> The model. </param>
 /// <returns> The <see cref="ConfigurationSource" /> for the default hi-lo sequence name. </returns>
 public static ConfigurationSource?GetHiLoSequenceNameConfigurationSource([NotNull] this IConventionModel model)
 => model.FindAnnotation(NpgsqlAnnotationNames.HiLoSequenceName)?.GetConfigurationSource();