ModelValidator.IsOwned 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| IsOwned(Type, IConventionModel) |
返回一个值,该值指示目标 CLR 类型是否对应于拥有的实体类型。 |
| IsOwned(Type, IModel) |
返回一个值,该值指示目标 CLR 类型是否对应于拥有的实体类型。 |
IsOwned(Type, IConventionModel)
- Source:
- ModelValidator.cs
- Source:
- ModelValidator.cs
- Source:
- ModelValidator.cs
- Source:
- ModelValidator.cs
- Source:
- ModelValidator.cs
返回一个值,该值指示目标 CLR 类型是否对应于拥有的实体类型。
protected virtual bool IsOwned(Type targetType, Microsoft.EntityFrameworkCore.Metadata.IConventionModel conventionModel);
abstract member IsOwned : Type * Microsoft.EntityFrameworkCore.Metadata.IConventionModel -> bool
override this.IsOwned : Type * Microsoft.EntityFrameworkCore.Metadata.IConventionModel -> bool
Protected Overridable Function IsOwned (targetType As Type, conventionModel As IConventionModel) As Boolean
参数
- targetType
- Type
目标 CLR 类型。
- conventionModel
- IConventionModel
模型。
返回
true 如果给定的 CLR 类型对应于拥有的实体类型,则为
适用于
IsOwned(Type, IModel)
- Source:
- ModelValidator.cs
返回一个值,该值指示目标 CLR 类型是否对应于拥有的实体类型。
protected virtual bool IsOwned(Type targetType, Microsoft.EntityFrameworkCore.Metadata.IModel model);
abstract member IsOwned : Type * Microsoft.EntityFrameworkCore.Metadata.IModel -> bool
override this.IsOwned : Type * Microsoft.EntityFrameworkCore.Metadata.IModel -> bool
Protected Overridable Function IsOwned (targetType As Type, model As IModel) As Boolean
参数
- targetType
- Type
目标 CLR 类型。
- model
- IModel
模型。
返回
true 如果给定的 CLR 类型对应于拥有的实体类型,则为