RuntimeEntityType.AddServiceProperty メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
AddServiceProperty(String, PropertyInfo, FieldInfo, PropertyAccessMode) |
このエンティティ型にサービス プロパティを追加します。 |
AddServiceProperty(String, PropertyInfo, FieldInfo, Type, PropertyAccessMode) |
このエンティティ型にサービス プロパティを追加します。 |
AddServiceProperty(String, PropertyInfo, FieldInfo, PropertyAccessMode)
このエンティティ型にサービス プロパティを追加します。
public virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeServiceProperty AddServiceProperty (string name, System.Reflection.PropertyInfo? propertyInfo = default, System.Reflection.FieldInfo? fieldInfo = default, Microsoft.EntityFrameworkCore.PropertyAccessMode propertyAccessMode = Microsoft.EntityFrameworkCore.PropertyAccessMode.PreferField);
abstract member AddServiceProperty : string * System.Reflection.PropertyInfo * System.Reflection.FieldInfo * Microsoft.EntityFrameworkCore.PropertyAccessMode -> Microsoft.EntityFrameworkCore.Metadata.RuntimeServiceProperty
override this.AddServiceProperty : string * System.Reflection.PropertyInfo * System.Reflection.FieldInfo * Microsoft.EntityFrameworkCore.PropertyAccessMode -> Microsoft.EntityFrameworkCore.Metadata.RuntimeServiceProperty
Public Overridable Function AddServiceProperty (name As String, Optional propertyInfo As PropertyInfo = Nothing, Optional fieldInfo As FieldInfo = Nothing, Optional propertyAccessMode As PropertyAccessMode = Microsoft.EntityFrameworkCore.PropertyAccessMode.PreferField) As RuntimeServiceProperty
パラメーター
- name
- String
追加するプロパティの名前。
- propertyInfo
- PropertyInfo
対応する CLR プロパティまたは null
シャドウ プロパティ。
- fieldInfo
- FieldInfo
対応する CLR フィールドまたは null
シャドウ プロパティ。
- propertyAccessMode
- PropertyAccessMode
PropertyAccessModeこのプロパティに使用される 。
戻り値
新しく作成されたサービス プロパティ。
適用対象
AddServiceProperty(String, PropertyInfo, FieldInfo, Type, PropertyAccessMode)
このエンティティ型にサービス プロパティを追加します。
public virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeServiceProperty AddServiceProperty (string name, System.Reflection.PropertyInfo? propertyInfo = default, System.Reflection.FieldInfo? fieldInfo = default, Type? serviceType = default, Microsoft.EntityFrameworkCore.PropertyAccessMode propertyAccessMode = Microsoft.EntityFrameworkCore.PropertyAccessMode.PreferField);
abstract member AddServiceProperty : string * System.Reflection.PropertyInfo * System.Reflection.FieldInfo * Type * Microsoft.EntityFrameworkCore.PropertyAccessMode -> Microsoft.EntityFrameworkCore.Metadata.RuntimeServiceProperty
override this.AddServiceProperty : string * System.Reflection.PropertyInfo * System.Reflection.FieldInfo * Type * Microsoft.EntityFrameworkCore.PropertyAccessMode -> Microsoft.EntityFrameworkCore.Metadata.RuntimeServiceProperty
Public Overridable Function AddServiceProperty (name As String, Optional propertyInfo As PropertyInfo = Nothing, Optional fieldInfo As FieldInfo = Nothing, Optional serviceType As Type = Nothing, Optional propertyAccessMode As PropertyAccessMode = Microsoft.EntityFrameworkCore.PropertyAccessMode.PreferField) As RuntimeServiceProperty
パラメーター
- name
- String
追加するプロパティの名前。
- propertyInfo
- PropertyInfo
対応する CLR プロパティまたは null
シャドウ プロパティ。
- fieldInfo
- FieldInfo
対応する CLR フィールドまたは null
シャドウ プロパティ。
- serviceType
- Type
サービスの型。メンバー null
の型を使用する場合は 。
- propertyAccessMode
- PropertyAccessMode
PropertyAccessModeこのプロパティに使用される 。
戻り値
新しく作成されたサービス プロパティ。
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Entity Framework