ConventionEntityTypeExtensions.GetDeclaredServiceProperties Method

Definition

Gets all service 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 GetServiceProperties() to also return properties declared on base types.

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

Parameters

entityType
IConventionEntityType

The entity type.

Returns

Declared service properties.

Applies to