|
AddAnnotations(IConventionAnnotatable, IEnumerable<IConventionAnnotation>, Boolean)
|
向对象添加批注。
|
|
AddDbFunction(IConventionModel, MethodInfo, Boolean)
|
创建映射到给定方法的函数。
|
|
AddDbFunction(IConventionModel, String, Type, Boolean)
|
创建函数。
|
|
AddFullTextCatalog(IConventionModel, String, Boolean)
|
将全文目录添加到模型。
|
|
AddIgnored(IConventionModel, Type, Boolean)
|
将给定实体类型标记为忽略。
|
|
AddOwned(IConventionModel, Type, Boolean)
|
将给定实体类型标记为拥有,指示何时应将使用给定类型的发现实体类型配置为拥有。
|
|
AddSequence(IConventionModel, String, String, Boolean)
|
返回给定架构中具有给定名称的现有 IMutableSequence 名称,或者创建具有给定名称和架构的新序列。
|
|
AddShared(IConventionModel, Type, Boolean)
|
将给定实体类型标记为共享,指示何时应将发现的匹配实体类型配置为共享类型实体类型。
|
|
AnnotationsToDebugString(IAnnotatable, Int32)
|
获取针对对象上声明的所有批注的调试字符串。
|
|
AreNamedDefaultConstraintsUsed(IReadOnlyModel)
|
返回一个值,该值指示是否应使用命名的默认约束。
|
|
FinalizeModel(IConventionModel)
|
强制在模型上进行后期处理,使其可供运行时使用。 使用 OnModelCreating(ModelBuilder)后处理时会自动发生;此方法允许在无法自动执行的情况下显式运行。
|
|
FindDbFunction(IConventionModel, MethodInfo)
|
查找映射到由给定 MethodInfo表示的方法的函数。
|
|
FindDbFunction(IConventionModel, String)
|
查找映射到由给定名称表示的方法的函数。
|
|
FindDbFunction(IModel, MethodInfo)
|
查找映射到由给定 MethodInfo表示的方法的函数。
|
|
FindDbFunction(IModel, String)
|
查找映射到由给定名称表示的方法的函数。
|
|
FindDbFunction(IReadOnlyModel, MethodInfo)
|
查找映射到由给定 MethodInfo表示的方法的函数。
|
|
FindDbFunction(IReadOnlyModel, String)
|
查找映射到由给定名称表示的方法的函数。
|
|
FindEntityType(IConventionModel, Type, String, IConventionEntityType)
|
获取给定名称的实体类型,定义导航名称和定义实体类型。 如果未找到匹配的实体类型,则返回 null 。
|
|
FindEntityType(IConventionModel, Type)
|
获取映射给定实体类的实体。
null如果未找到具有给定名称的实体类型,则返回。
|
|
FindEntityType(IModel, Type, String, IEntityType)
|
获取给定类型的实体类型,定义导航名称和定义实体类型。 如果未找到匹配的实体类型,则返回 null 。
|
|
FindEntityType(IModel, Type)
|
已过时.
获取映射给定实体类的实体。 如果 null 找不到具有给定 CLR 类型的实体类型,或者共享类型实体类型或实体类型具有定义导航,则返回给定 CLR 类型。
|
|
FindFullTextCatalog(IConventionModel, String)
|
在模型中查找全文目录,如果未找到,则 null 返回。
|
|
FindFullTextCatalog(IReadOnlyModel, String)
|
在模型中查找全文目录,如果未找到,则 null 返回。
|
|
FindIgnoredConfigurationSource(IConventionModel, Type)
|
指示是否忽略给定实体类型。
|
|
FindIsOwnedConfigurationSource(IConventionModel, Type)
|
返回一个值,该值指示在发现时是否应将使用给定类型的实体类型配置为拥有的类型。
|
|
FindLeastDerivedEntityTypes(IConventionModel, Type, Func<IConventionEntityType,Boolean>)
|
返回对应于给定中最小派生类型的实体类型。
|
|
FindRuntimeEntityType(IModel, Type)
|
获取映射给定实体类的实体,其中该类可能是派生自实际实体类型的代理。 如果 null 找不到具有给定 CLR 类型的实体类型,或者共享类型实体类型或实体类型具有定义导航,则返回给定 CLR 类型。
|
|
FindSequence(IConventionModel, String, String)
|
查找具有给定名称的序列。
|
|
FindSequence(IModel, String, String)
|
查找具有给定名称的序列。
|
|
FindSequence(IReadOnlyModel, String, String)
|
查找具有给定名称的序列。
|
|
GetAnnotation(IAnnotatable, String)
|
获取具有给定名称的批注,如果不存在,则引发该批注。
|
|
GetAnnotation(IConventionAnnotatable, String)
|
获取具有给定名称的批注,如果不存在,则引发该批注。
|
|
GetChangeTrackingStrategy(IModel)
|
获取用于模型中实体的默认更改跟踪策略。 此策略指示上下文如何检测实体类型的实例的属性更改。
|
|
GetChangeTrackingStrategyConfigurationSource(IConventionModel)
|
返回用于 . 的配置 GetChangeTrackingStrategy(IModel)源。
|
|
GetCollation(IModel)
|
返回数据库排序规则。
|
|
GetCollation(IReadOnlyModel)
|
返回数据库排序规则。
|
|
GetCollationConfigurationSource(IConventionModel)
|
返回排序规则的配置源。
|
|
GetDatabaseMaxSize(IModel)
|
返回数据库的最大大小。
|
|
GetDatabaseMaxSize(IReadOnlyModel)
|
返回数据库的最大大小。
|
|
GetDatabaseMaxSizeConfigurationSource(IConventionModel)
|
返回 ConfigurationSource 数据库的最大大小。
|
|
GetDbFunctions(IConventionModel)
|
返回模型中包含的所有函数。
|
|
GetDbFunctions(IModel)
|
返回模型中包含的所有函数。
|
|
GetDbFunctions(IReadOnlyModel)
|
返回模型中包含的所有函数。
|
|
GetDefaultContainer(IModel)
|
返回默认容器名称。
|
|
GetDefaultContainer(IReadOnlyModel)
|
返回默认容器名称。
|
|
GetDefaultContainerConfigurationSource(IConventionModel)
|
返回默认容器名称的配置源。
|
|
GetDefaultFullTextSearchLanguage(IReadOnlyModel)
|
返回数据库范围内全文搜索的默认语言。
|
|
GetDefaultFullTextSearchLanguageConfigurationSource(IConventionModel)
|
获取 ConfigurationSource 数据库范围内的默认全文搜索语言。
|
|
GetDefaultSchema(IModel)
|
返回要用于模型的默认架构,或者 null 如果未设置任何架构。
|
|
GetDefaultSchema(IReadOnlyModel)
|
返回要用于模型的默认架构,或者 null 如果未设置任何架构。
|
|
GetDefaultSchemaConfigurationSource(IConventionModel)
|
返回默认架构的配置源。
|
|
GetDiscriminatorInKey(IReadOnlyModel)
|
返回一个值,该值指示实体类型鉴别器是否应包含在 JSON“id”值中。
在 EF Core 9 之前,始终包含它。 从 EF Core 9 开始,默认情况下不包括它。
|
|
GetDiscriminatorInKeyConfigurationSource(IConventionModel)
|
获取 for ConfigurationSourceGetDiscriminatorInKey(IReadOnlyModel)。
|
|
GetEntityTypes(IConventionModel, String)
|
已过时.
获取与给定名称匹配的实体类型。
|
|
GetEntityTypes(IConventionModel, Type)
|
已过时.
获取与给定类型匹配的实体类型。
|
|
GetEntityTypes(IModel, String)
|
已过时.
获取与给定名称匹配的实体类型。
|
|
GetEntityTypes(IModel, Type)
|
已过时.
获取与给定类型匹配的实体类型。
|
|
GetFullTextCatalogs(IConventionModel)
|
获取模型中定义的所有全文目录。
|
|
GetFullTextCatalogs(IReadOnlyModel)
|
获取模型中定义的所有全文目录。
|
|
GetHasShadowIds(IReadOnlyModel)
|
返回一个值,该值指示是否可以从当前配置源设置始终创建“__id”属性的设置
|
|
GetHasShadowIdsConfigurationSource(IConventionModel)
|
获取 for ConfigurationSourceGetHasShadowIds(IReadOnlyModel)。
|
|
GetHiLoSequenceName(IModel)
|
返回要用于默认 hi-lo 序列的名称。
|
|
GetHiLoSequenceName(IReadOnlyModel)
|
返回要用于默认 hi-lo 序列的名称。
|
|
GetHiLoSequenceNameConfigurationSource(IConventionModel)
|
返回 ConfigurationSource 默认 hi-lo 序列名称。
|
|
GetHiLoSequenceSchema(IModel)
|
返回要用于默认 hi-lo 序列的架构。
UseHiLo(PropertyBuilder, String, String)
|
|
GetHiLoSequenceSchema(IReadOnlyModel)
|
返回要用于默认 hi-lo 序列的架构。
UseHiLo(PropertyBuilder, String, String)
|
|
GetHiLoSequenceSchemaConfigurationSource(IConventionModel)
|
返回 ConfigurationSource 默认 hi-lo 序列架构。
|
|
GetIdentityIncrement(IModel)
|
返回默认标识增量。
|
|
GetIdentityIncrement(IReadOnlyModel)
|
返回默认标识增量。
|
|
GetIdentityIncrementConfigurationSource(IConventionModel)
|
返回 ConfigurationSource 默认标识增量。
|
|
GetIdentitySeed(IModel)
|
返回默认标识种子。
|
|
GetIdentitySeed(IReadOnlyModel)
|
返回默认标识种子。
|
|
GetIdentitySeedConfigurationSource(IConventionModel)
|
返回 ConfigurationSource 默认架构。
|
|
GetMaxIdentifierLength(IModel)
|
返回存储标识符允许的最大长度。
|
|
GetMaxIdentifierLength(IReadOnlyModel)
|
返回存储标识符允许的最大长度。
|
|
GetMaxIdentifierLengthConfigurationSource(IConventionModel)
|
返回用于 . 的配置 GetMaxIdentifierLength(IReadOnlyModel)源。
|
|
GetPerformanceLevelSql(IModel)
|
返回数据库的性能级别。
|
|
GetPerformanceLevelSql(IReadOnlyModel)
|
返回数据库的性能级别。
|
|
GetPerformanceLevelSqlConfigurationSource(IConventionModel)
|
返回 ConfigurationSource 数据库的性能级别。
|
|
GetProductVersion(IModel)
|
获取用于生成此模型的 EF Core 程序集版本
|
|
GetPropertyAccessMode(IModel)
|
PropertyAccessMode获取用于此模型中实体类型的属性。
请注意,单个实体类型可以替代此访问模式,实体类型的单个属性可以替代实体类型上设置的访问模式。 此处返回的值将用于未指定任何替代的任何属性。
|
|
GetPropertyAccessModeConfigurationSource(IConventionModel)
|
返回用于 . 的配置 GetPropertyAccessMode(IModel)源。
|
|
GetRelationalModel(IModel)
|
返回数据库模型。
|
|
GetSequenceNameSuffix(IReadOnlyModel)
|
返回要追加到自动创建序列的名称的后缀。
|
|
GetSequenceNameSuffixConfigurationSource(IConventionModel)
|
返回 ConfigurationSource 默认值生成序列名称后缀。
|
|
GetSequences(IConventionModel)
|
返回模型中包含的所有序列。
|
|
GetSequences(IModel)
|
返回模型中包含的所有序列。
|
|
GetSequences(IReadOnlyModel)
|
返回模型中包含的所有序列。
|
|
GetSequenceSchema(IReadOnlyModel)
|
返回要用于默认值生成序列的架构。
UseSequence(PropertyBuilder, String, String)
|
|
GetSequenceSchemaConfigurationSource(IConventionModel)
|
返回 ConfigurationSource 默认键值生成序列架构。
|
|
GetServiceTierSql(IModel)
|
返回数据库的服务层。
|
|
GetServiceTierSql(IReadOnlyModel)
|
返回数据库的服务层。
|
|
GetServiceTierSqlConfigurationSource(IConventionModel)
|
返回 ConfigurationSource 数据库的服务层。
|
|
GetThroughput(IReadOnlyModel)
|
返回数据库范围内的预配吞吐量。
|
|
GetThroughputConfigurationSource(IConventionModel)
|
获取 ConfigurationSource 数据库范围内预配的吞吐量。
|
|
GetValueGenerationStrategy(IModel)
|
返回 SqlServerValueGenerationStrategy 要用于模型中键的属性,除非属性具有显式设置的策略。
|
|
GetValueGenerationStrategy(IReadOnlyModel)
|
返回 SqlServerValueGenerationStrategy 要用于模型中键的属性,除非属性具有显式设置的策略。
|
|
GetValueGenerationStrategyConfigurationSource(IConventionModel)
|
返回 ConfigurationSource 默认值 SqlServerValueGenerationStrategy。
|
|
HasEntityTypeWithDefiningNavigation(IModel, String)
|
已过时.
获取一个值,该值指示模型是否包含具有定义导航的相应实体类型。
|
|
HasEntityTypeWithDefiningNavigation(IModel, Type)
|
已过时.
获取一个值,该值指示模型是否包含具有定义导航的相应实体类型。
|
|
IsIgnored(IConventionModel, String)
|
指示是否忽略给定实体类型名称。
|
|
IsIgnored(IConventionModel, Type)
|
指示是否忽略给定实体类型。
|
|
IsIndexerMethod(IModel, MethodInfo)
|
获取一个值,该值指示给定 MethodInfo 是否重新发送索引器访问权限。
|
|
IsOwned(IConventionModel, Type)
|
返回一个值,该值指示在发现时是否应将使用给定类型的实体类型配置为拥有的类型。
|
|
IsShared(IModel, Type)
|
获取模型中的共享类型实体是否使用 CLR 类型。
|
|
RemoveDbFunction(IConventionModel, MethodInfo)
|
删除映射到由给定 MethodInfo表示的方法的函数。
|
|
RemoveDbFunction(IConventionModel, String)
|
删除映射到由给定 MethodInfo表示的方法的函数。
|
|
RemoveEntityType(IConventionModel, String, String, IConventionEntityType)
|
从模型中删除具有定义导航的实体类型。
|
|
RemoveEntityType(IConventionModel, String)
|
删除实体类型,而无需从模型定义导航。
|
|
RemoveEntityType(IConventionModel, Type, String, IConventionEntityType)
|
从模型中删除具有定义导航的实体类型。
|
|
RemoveEntityType(IConventionModel, Type)
|
从模型中删除实体类型。
|
|
RemoveFullTextCatalog(IConventionModel, String)
|
从模型中删除全文目录。
|
|
RemoveOwned(IConventionModel, Type)
|
删除给定拥有的类型,指示在发现匹配实体类型时不应配置为拥有类型。
|
|
RemoveSequence(IConventionModel, String, String)
|
删除 IConventionSequence 具有给定名称的
|
|
SetChangeTrackingStrategy(IConventionModel, Nullable<ChangeTrackingStrategy>, Boolean)
|
设置要用于模型中实体的默认更改跟踪策略。 此策略指示上下文如何检测实体类型的实例的属性更改。
|
|
SetCollation(IConventionModel, String, Boolean)
|
设置数据库排序规则。
|
|
SetDatabaseMaxSize(IConventionModel, String, Boolean)
|
设置数据库的最大大小。
|
|
SetDefaultContainer(IConventionModel, String, Boolean)
|
设置默认容器名称。
|
|
SetDefaultFullTextSearchLanguage(IConventionModel, String, Boolean)
|
设置数据库范围内全文搜索的默认语言。
|
|
SetDefaultSchema(IConventionModel, String, Boolean)
|
设置默认架构。
|
|
SetDiscriminatorInKey(IConventionModel, Nullable<IdDiscriminatorMode>, Boolean)
|
在 JSON“id”中包含实体类型鉴别器。
|
|
SetHasShadowIds(IConventionModel, Nullable<Boolean>, Boolean)
|
强制模型生成始终创建映射到 JSON“id”的“__id”阴影属性。 这是 EF Core 9.0 之前的默认行为。
|
|
SetHiLoSequenceName(IConventionModel, String, Boolean)
|
设置要用于默认 hi-lo 序列的名称。
|
|
SetHiLoSequenceSchema(IConventionModel, String, Boolean)
|
设置要用于默认 hi-lo 序列的架构。
|
|
SetIdentityIncrement(IConventionModel, Nullable<Int32>, Boolean)
|
设置默认标识增量。
|
|
SetIdentitySeed(IConventionModel, Nullable<Int32>, Boolean)
|
设置默认标识种子。
|
|
SetIdentitySeed(IConventionModel, Nullable<Int64>, Boolean)
|
设置默认标识种子。
|
|
SetMaxIdentifierLength(IConventionModel, Nullable<Int32>, Boolean)
|
设置存储标识符允许的最大长度。
|
|
SetOrRemoveAnnotation(IConventionAnnotatable, String, Object, Boolean)
|
设置存储在给定名称下的批注。 如果已存在具有指定名称的批注,则覆盖现有批注。 如果 null 已提供,则删除现有批注。
|
|
SetPerformanceLevelSql(IConventionModel, String, Boolean)
|
设置数据库的性能级别。
|
|
SetPropertyAccessMode(IConventionModel, Nullable<PropertyAccessMode>, Boolean)
|
设置 PropertyAccessMode 用于此模型中所有实体类型的属性。
请注意,单个实体类型可以替代此访问模式,实体类型的单个属性可以替代实体类型上设置的访问模式。 此处设置的值将用于未指定任何替代的任何属性。
|
|
SetSequenceNameSuffix(IConventionModel, String, Boolean)
|
设置要追加到自动创建的序列名称的后缀。
|
|
SetSequenceSchema(IConventionModel, String, Boolean)
|
设置要用于默认键值生成序列的架构。
|
|
SetServiceTierSql(IConventionModel, String, Boolean)
|
设置数据库的服务层。
|
|
SetThroughput(IConventionModel, Nullable<Int32>, Nullable<Boolean>, Boolean)
|
设置数据库范围内的预配吞吐量。
|
|
SetValueGenerationStrategy(IConventionModel, Nullable<SqlServerValueGenerationStrategy>, Boolean)
|
设置 SqlServerValueGenerationStrategy 用于模型中未显式设置策略的键的属性。
|
|
ToDebugString(IModel, MetadataDebugStringOptions, Int32)
|
创建给定元数据的可读表示形式。
警告:不要依赖于返回的字符串的格式。
它仅用于调试,可以在版本之间任意更改。
|
|
UseNamedDefaultConstraints(IConventionModel, Nullable<Boolean>, Boolean)
|
设置一个值,该值指示是否应使用命名的默认约束。
|
|
UseNamedDefaultConstraintsConfigurationSource(IConventionModel)
|
返回命名的默认约束设置的配置源。
|