ConventionEntityTypeExtensions.GetDeclaredProperties Method

Definition

Gets all non-navigation properties declared on the given IConventionEntityType.

This method does not return properties declared on base types. It is useful when iterating over all entity types to avoid processing the same property more than once. Use GetProperties() to also return properties declared on base types.

public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> GetDeclaredProperties (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType);
static member GetDeclaredProperties : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> seq<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty>
<Extension()>
Public Function GetDeclaredProperties (entityType As IConventionEntityType) As IEnumerable(Of IConventionProperty)

Parameters

entityType
IConventionEntityType

The entity type.

Returns

Declared non-navigation properties.

Applies to