ValueGeneratorSelector.Create メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| Name | 説明 |
|---|---|
| Create(IProperty, IEntityType) |
指定されたプロパティの新しい値ジェネレーターを作成します。 |
| Create(IProperty, ITypeBase) |
古い.
指定されたプロパティの新しい値ジェネレーターを作成します。 |
Create(IProperty, IEntityType)
指定されたプロパティの新しい値ジェネレーターを作成します。
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)
注意事項
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
戻り値
新しく作成された値ジェネレーター。
- 属性