Language

ValueGeneratorSelector.TryCreate(IProperty, ITypeBase, ValueGenerator) メソッド

定義

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

public virtual bool TryCreate(Microsoft.EntityFrameworkCore.Metadata.IProperty property, Microsoft.EntityFrameworkCore.Metadata.ITypeBase typeBase, out Microsoft.EntityFrameworkCore.ValueGeneration.ValueGenerator? valueGenerator);
abstract member TryCreate : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.ITypeBase * ValueGenerator -> bool
override this.TryCreate : Microsoft.EntityFrameworkCore.Metadata.IProperty * Microsoft.EntityFrameworkCore.Metadata.ITypeBase * ValueGenerator -> bool
Public Overridable Function TryCreate (property As IProperty, typeBase As ITypeBase, ByRef valueGenerator As ValueGenerator) As Boolean

パラメーター

property
IProperty

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

typeBase
ITypeBase

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

valueGenerator
ValueGenerator

新しく作成された値ジェネレーター。使用できない場合は null 。

戻り値

true ジェネレーターが作成された場合は 。

適用対象