Table of Contents

Interface IReadOnlyServiceProperty

Namespace
Microsoft.EntityFrameworkCore.Metadata
Assembly
Microsoft.EntityFrameworkCore.dll

Represents a property on an entity type that represents an injected service from the DbContext.

public interface IReadOnlyServiceProperty : IReadOnlyPropertyBase, IReadOnlyAnnotatable
Inherited Members
Extension Methods

Remarks

See Modeling entity types and relationships for more information and examples.

Properties

DeclaringEntityType

Gets the entity type that this property belongs to.

IReadOnlyEntityType DeclaringEntityType { get; }

Property Value

IReadOnlyEntityType

ParameterBinding

The ServiceParameterBinding for this property.

ServiceParameterBinding? ParameterBinding { get; }

Property Value

ServiceParameterBinding

Methods

ToDebugString(MetadataDebugStringOptions, int)

Creates a human-readable representation of the given metadata.

Warning: Do not rely on the format of the returned string. It is designed for debugging only and may change arbitrarily between releases.

string ToDebugString(MetadataDebugStringOptions options = MetadataDebugStringOptions.ShortDefault, int indent = 0)

Parameters

options MetadataDebugStringOptions

Options for generating the string.

indent int

The number of indent spaces to use before each new line.

Returns

string

A human-readable representation.