Language

ValueGeneratorSelector.Create メソッド

定義

オーバーロード

Name 説明
Create(IProperty, IEntityType)

指定されたプロパティの新しい値ジェネレーターを作成します。

Create(IProperty, ITypeBase)
古い.

指定されたプロパティの新しい値ジェネレーターを作成します。

Create(IProperty, IEntityType)

ソース:
ValueGeneratorSelector.cs
ソース:
ValueGeneratorSelector.cs
ソース:
ValueGeneratorSelector.cs
ソース:
ValueGeneratorSelector.cs
ソース:
ValueGeneratorSelector.cs
ソース:
ValueGeneratorSelector.cs
ソース:
ValueGeneratorSelector.cs

指定されたプロパティの新しい値ジェネレーターを作成します。

public virtual Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator Create(Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
abstract member Create : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator
override this.Create : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator
Public Overridable Function Create (property As IProperty, entityType As IEntityType) As ValueGenerator

パラメーター

property
IProperty

値ジェネレーターを取得するプロパティ。

entityType
IEntityType

値ジェネレーターが使用されるエンティティ型。 派生エンティティ型の継承プロパティで呼び出されると、このエンティティ型は、次の宣言されたエンティティ型とは異なる場合があります。 property

戻り値

新しく作成された値ジェネレーター。

適用対象

Create(IProperty, ITypeBase)

ソース:
ValueGeneratorSelector.cs
ソース:
ValueGeneratorSelector.cs
ソース:
ValueGeneratorSelector.cs

注意事項

Use TryCreate and throw if needed when the generator is not found.

指定されたプロパティの新しい値ジェネレーターを作成します。

[System.Obsolete("Use TryCreate and throw if needed when the generator is not found.")]
public virtual Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator Create(Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Metadata.ITypeBase typeBase);
public virtual Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator Create(Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Metadata.ITypeBase typeBase);
[<System.Obsolete("Use TryCreate and throw if needed when the generator is not found.")>]
abstract member Create : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.ITypeBase -> Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator
override this.Create : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.ITypeBase -> Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator
abstract member Create : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.ITypeBase -> Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator
override this.Create : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.ITypeBase -> Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator
Public Overridable Function Create (property As IProperty, typeBase As ITypeBase) As ValueGenerator

パラメーター

property
IProperty

値ジェネレーターを取得するプロパティ。

typeBase
ITypeBase

値ジェネレーターが使用されるエンティティ型。 派生エンティティ型の継承プロパティで呼び出されると、このエンティティ型は、次の宣言されたエンティティ型とは異なる場合があります。 property

戻り値

新しく作成された値ジェネレーター。

属性

適用対象