StoreObjectIdentifier.Create 方法

定义

重载

Create(IEntityType, StoreObjectType)

为给定实体类型映射到 />的存储对象创建 ID。

Create(IReadOnlyEntityType, StoreObjectType)

为给定实体类型映射到的存储对象创建 ID。

Create(IReadOnlyTypeBase, StoreObjectType)

为给定实体类型映射到的存储对象创建 ID。

Create(IEntityType, StoreObjectType)

为给定实体类型映射到 />的存储对象创建 ID。

public static Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier? Create (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.StoreObjectType type);
static member Create : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Metadata.StoreObjectType -> Nullable<Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier>
Public Shared Function Create (entityType As IEntityType, type As StoreObjectType) As Nullable(Of StoreObjectIdentifier)

参数

entityType
IEntityType

实体类型。

type
StoreObjectType

存储对象类型。

返回

存储对象 ID。

适用于

Create(IReadOnlyEntityType, StoreObjectType)

为给定实体类型映射到的存储对象创建 ID。

public static Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier? Create (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.StoreObjectType type);
static member Create : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType * Microsoft.EntityFrameworkCore.Metadata.StoreObjectType -> Nullable<Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier>
Public Shared Function Create (entityType As IReadOnlyEntityType, type As StoreObjectType) As Nullable(Of StoreObjectIdentifier)

参数

entityType
IReadOnlyEntityType

实体类型。

type
StoreObjectType

存储对象类型。

返回

存储对象 ID。

适用于

Create(IReadOnlyTypeBase, StoreObjectType)

为给定实体类型映射到的存储对象创建 ID。

public static Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier? Create (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyTypeBase typeBase, Microsoft.EntityFrameworkCore.Metadata.StoreObjectType type);
static member Create : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyTypeBase * Microsoft.EntityFrameworkCore.Metadata.StoreObjectType -> Nullable<Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier>
Public Shared Function Create (typeBase As IReadOnlyTypeBase, type As StoreObjectType) As Nullable(Of StoreObjectIdentifier)

参数

typeBase
IReadOnlyTypeBase

实体类型。

type
StoreObjectType

存储对象类型。

返回

存储对象 ID。

适用于