ComplexElementEntry<TEntity,TComplexProperty>.ComplexCollection 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| ComplexCollection<TElement>(IComplexProperty) |
提供對複雜型態集合屬性的變更追蹤資訊與操作存取。 |
| ComplexCollection<TElement>(Expression<Func<TComplexProperty,IEnumerable<TElement>>>) |
提供對特定複雜型態屬性的變更追蹤資訊與操作存取。 |
| ComplexCollection<TElement>(Expression<Func<TEntity,IEnumerable<TElement>>>) |
提供對特定複雜型態屬性的變更追蹤資訊與操作存取。 |
| ComplexCollection<TElement>(String) |
提供針對該複雜型態的集合屬性的變更追蹤資訊與操作存取。 |
ComplexCollection<TElement>(IComplexProperty)
提供對複雜型態集合屬性的變更追蹤資訊與操作存取。
public virtual Microsoft.EntityFrameworkCore.ChangeTracking.ComplexCollectionEntry<TEntity,TElement> ComplexCollection<TElement>(Microsoft.EntityFrameworkCore.Metadata.IComplexProperty property);
override this.ComplexCollection : Microsoft.EntityFrameworkCore.Metadata.IComplexProperty -> Microsoft.EntityFrameworkCore.ChangeTracking.ComplexCollectionEntry<'Entity, 'Element (requires 'Entity : null)>
Public Overridable Function ComplexCollection(Of TElement) (property As IComplexProperty) As ComplexCollectionEntry(Of TEntity, TElement)
類型參數
- TElement
元素類型。
參數
- property
- IComplexProperty
該物業可存取資訊與操作。
傳回
一個揭露該屬性變更追蹤資訊與操作的物件。
備註
更多資訊與範例請參閱 EF Core 中的「存取追蹤實體 」。
適用於
ComplexCollection<TElement>(Expression<Func<TComplexProperty,IEnumerable<TElement>>>)
提供對特定複雜型態屬性的變更追蹤資訊與操作存取。
public virtual Microsoft.EntityFrameworkCore.ChangeTracking.ComplexCollectionEntry<TEntity,TElement> ComplexCollection<TElement>(System.Linq.Expressions.Expression<Func<TComplexProperty,System.Collections.Generic.IEnumerable<TElement>?>> propertyExpression);
override this.ComplexCollection : System.Linq.Expressions.Expression<Func<'ComplexProperty, seq<'Element>>> -> Microsoft.EntityFrameworkCore.ChangeTracking.ComplexCollectionEntry<'Entity, 'Element (requires 'Entity : null)>
Public Overridable Function ComplexCollection(Of TElement) (propertyExpression As Expression(Of Func(Of TComplexProperty, IEnumerable(Of TElement)))) As ComplexCollectionEntry(Of TEntity, TElement)
類型參數
- TElement
元素類型。
參數
- propertyExpression
- Expression<Func<TComplexProperty,IEnumerable<TElement>>>
一個 lambda 表達式,代表用來存取資訊與操作的屬性。
傳回
一個揭露該屬性變更追蹤資訊與操作的物件。
備註
更多資訊與範例請參閱 EF Core 中的「存取追蹤實體 」。
適用於
ComplexCollection<TElement>(Expression<Func<TEntity,IEnumerable<TElement>>>)
提供對特定複雜型態屬性的變更追蹤資訊與操作存取。
public virtual Microsoft.EntityFrameworkCore.ChangeTracking.ComplexCollectionEntry<TEntity,TElement> ComplexCollection<TElement>(System.Linq.Expressions.Expression<Func<TEntity,System.Collections.Generic.IEnumerable<TElement>?>> propertyExpression);
override this.ComplexCollection : System.Linq.Expressions.Expression<Func<'Entity, seq<'Element>>> -> Microsoft.EntityFrameworkCore.ChangeTracking.ComplexCollectionEntry<'Entity, 'Element (requires 'Entity : null)>
Public Overridable Function ComplexCollection(Of TElement) (propertyExpression As Expression(Of Func(Of TEntity, IEnumerable(Of TElement)))) As ComplexCollectionEntry(Of TEntity, TElement)
類型參數
- TElement
元素類型。
參數
- propertyExpression
- Expression<Func<TEntity,IEnumerable<TElement>>>
一個 lambda 表達式,代表用來存取資訊與操作的屬性。
傳回
一個揭露該屬性變更追蹤資訊與操作的物件。
備註
更多資訊與範例請參閱 EF Core 中的「存取追蹤實體 」。
適用於
ComplexCollection<TElement>(String)
提供針對該複雜型態的集合屬性的變更追蹤資訊與操作存取。
public virtual Microsoft.EntityFrameworkCore.ChangeTracking.ComplexCollectionEntry<TEntity,TElement> ComplexCollection<TElement>(string propertyName);
override this.ComplexCollection : string -> Microsoft.EntityFrameworkCore.ChangeTracking.ComplexCollectionEntry<'Entity, 'Element (requires 'Entity : null)>
Public Overridable Function ComplexCollection(Of TElement) (propertyName As String) As ComplexCollectionEntry(Of TEntity, TElement)
類型參數
- TElement
元素類型。
參數
- propertyName
- String
該物業可存取資訊與操作。
傳回
一個揭露該屬性變更追蹤資訊與操作的物件。
備註
更多資訊與範例請參閱 EF Core 中的「存取追蹤實體 」。