Table of Contents

Interface IReadOnlyComplexProperty

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

Represents a complex property of a structural type.

public interface IReadOnlyComplexProperty : IReadOnlyPropertyBase, IReadOnlyAnnotatable
Inherited Members
Extension Methods

Remarks

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

Properties

ComplexType

Gets the associated complex type.

IReadOnlyComplexType ComplexType { get; }

Property Value

IReadOnlyComplexType

IsCollection

Gets a value indicating whether this property represents a collection.

bool IsCollection { get; }

Property Value

bool

IsNullable

Gets a value indicating whether this property can contain null.

bool IsNullable { get; }

Property Value

bool

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.