語言

EntityEntry<TEntity>.Property 方法

定義

多載

名稱 Description
Property<TProperty>(IProperty)

提供該實體特定屬性的變更追蹤資訊與操作存取。

Property<TProperty>(Expression<Func<TEntity,TProperty>>)

提供該實體特定屬性的變更追蹤資訊與操作存取。

Property<TProperty>(String)

提供該實體特定屬性的變更追蹤資訊與操作存取。

Property<TProperty>(IProperty)

來源:
EntityEntry`.cs
來源:
EntityEntry`.cs
來源:
EntityEntry`.cs
來源:
EntityEntry`.cs
來源:
EntityEntry`.cs

提供該實體特定屬性的變更追蹤資訊與操作存取。

public virtual Microsoft.EntityFrameworkCore.ChangeTracking.PropertyEntry<TEntity,TProperty> Property<TProperty>(Microsoft.EntityFrameworkCore.Metadata.IProperty property);
override this.Property : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.ChangeTracking.PropertyEntry<'Entity, 'Property (requires 'Entity : null)>
Public Overridable Function Property(Of TProperty) (property As IProperty) As PropertyEntry(Of TEntity, TProperty)

類型參數

TProperty

屬性的類型。

參數

property
IProperty

該物業可存取資訊與操作。

傳回

一個揭露該屬性變更追蹤資訊與操作的物件。

備註

更多資訊與範例請參閱 EF Core 中的「存取追蹤實體 」。

適用於

Property<TProperty>(Expression<Func<TEntity,TProperty>>)

來源:
EntityEntry`.cs
來源:
EntityEntry`.cs
來源:
EntityEntry`.cs
來源:
EntityEntry`.cs
來源:
EntityEntry`.cs
來源:
EntityEntry`.cs
來源:
EntityEntry`.cs
來源:
EntityEntry`.cs
來源:
EntityEntry`.cs
來源:
EntityEntry`.cs
來源:
EntityEntry`.cs

提供該實體特定屬性的變更追蹤資訊與操作存取。

public virtual Microsoft.EntityFrameworkCore.ChangeTracking.PropertyEntry<TEntity,TProperty> Property<TProperty>(System.Linq.Expressions.Expression<Func<TEntity,TProperty>> propertyExpression);
override this.Property : System.Linq.Expressions.Expression<Func<'Entity, 'Property>> -> Microsoft.EntityFrameworkCore.ChangeTracking.PropertyEntry<'Entity, 'Property (requires 'Entity : null)>
Public Overridable Function Property(Of TProperty) (propertyExpression As Expression(Of Func(Of TEntity, TProperty))) As PropertyEntry(Of TEntity, TProperty)

類型參數

TProperty

參數

propertyExpression
Expression<Func<TEntity,TProperty>>

一個 lambda 表達式,代表用來存取資訊與操作的屬性。

傳回

一個揭露該屬性變更追蹤資訊與操作的物件。

備註

更多資訊與範例請參閱 EF Core 中的「存取追蹤實體 」。

適用於

Property<TProperty>(String)

來源:
EntityEntry`.cs
來源:
EntityEntry`.cs
來源:
EntityEntry`.cs
來源:
EntityEntry`.cs
來源:
EntityEntry`.cs
來源:
EntityEntry`.cs
來源:
EntityEntry`.cs
來源:
EntityEntry`.cs
來源:
EntityEntry`.cs
來源:
EntityEntry`.cs
來源:
EntityEntry`.cs

提供該實體特定屬性的變更追蹤資訊與操作存取。

public virtual Microsoft.EntityFrameworkCore.ChangeTracking.PropertyEntry<TEntity,TProperty> Property<TProperty>(string propertyName);
override this.Property : string -> Microsoft.EntityFrameworkCore.ChangeTracking.PropertyEntry<'Entity, 'Property (requires 'Entity : null)>
Public Overridable Function Property(Of TProperty) (propertyName As String) As PropertyEntry(Of TEntity, TProperty)

類型參數

TProperty

屬性的類型。

參數

propertyName
String

該物業可存取資訊與操作。

傳回

一個揭露該屬性變更追蹤資訊與操作的物件。

備註

更多資訊與範例請參閱 EF Core 中的「存取追蹤實體 」。

適用於