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
ParameterBinding
The ServiceParameterBinding for this property.
ServiceParameterBinding? ParameterBinding { get; }
Property Value
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
MetadataDebugStringOptionsOptions for generating the string.
indent
intThe number of indent spaces to use before each new line.
Returns
- string
A human-readable representation.