ExpressionExtensions.CreateEFPropertyExpression 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| CreateEFPropertyExpression(Expression, IPropertyBase, Boolean) |
建立 Expression 一棵樹狀結構,表示對特定表達式的 EF 屬性存取。 此方法通常由資料庫提供者(及其他擴充)使用。 它通常不被用於應用程式程式碼中。 |
| CreateEFPropertyExpression(Expression, Type, Type, String, Boolean) |
這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。 |
CreateEFPropertyExpression(Expression, IPropertyBase, Boolean)
建立 Expression 一棵樹狀結構,表示對特定表達式的 EF 屬性存取。
此方法通常由資料庫提供者(及其他擴充)使用。 它通常不被用於應用程式程式碼中。
public static System.Linq.Expressions.Expression CreateEFPropertyExpression(this System.Linq.Expressions.Expression target, Microsoft.EntityFrameworkCore.Metadata.IPropertyBase property, bool makeNullable = true);
static member CreateEFPropertyExpression : System.Linq.Expressions.Expression * Microsoft.EntityFrameworkCore.Metadata.IPropertyBase * bool -> System.Linq.Expressions.Expression
<Extension()>
Public Function CreateEFPropertyExpression (target As Expression, property As IPropertyBase, Optional makeNullable As Boolean = true) As Expression
參數
- target
- Expression
生成讀取操作的 root 運算式。
- property
- IPropertyBase
該物業可供存取。
- makeNullable
- Boolean
一個表示該值是否可以為 null 的值。
傳回
一個用來存取給定表達式 EF 性質的表達式。
適用於
CreateEFPropertyExpression(Expression, Type, Type, String, Boolean)
這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public static System.Linq.Expressions.Expression CreateEFPropertyExpression(System.Linq.Expressions.Expression target, Type propertyDeclaringType, Type propertyType, string propertyName, bool makeNullable);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
static member CreateEFPropertyExpression : System.Linq.Expressions.Expression * Type * Type * string * bool -> System.Linq.Expressions.Expression
Public Function CreateEFPropertyExpression (target As Expression, propertyDeclaringType As Type, propertyType As Type, propertyName As String, makeNullable As Boolean) As Expression
參數
- target
- Expression
- propertyDeclaringType
- Type
- propertyType
- Type
- propertyName
- String
- makeNullable
- Boolean
傳回
- 屬性