Table of Contents

Class RuntimeComplexProperty

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

Represents a complex property of a structural type.

public class RuntimeComplexProperty : RuntimePropertyBase, IRuntimePropertyBase, IComplexProperty, IReadOnlyComplexProperty, IPropertyBase, IReadOnlyPropertyBase, IAnnotatable, IReadOnlyAnnotatable
Inheritance
RuntimeComplexProperty
Implements
Inherited Members
Extension Methods

Remarks

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

Constructors

RuntimeComplexProperty(string, Type, string, Type, PropertyInfo?, FieldInfo?, RuntimeTypeBase, PropertyAccessMode, bool, bool, ChangeTrackingStrategy, PropertyInfo?, bool)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

[EntityFrameworkInternal]
public RuntimeComplexProperty(string name, Type clrType, string targetTypeName, Type targetType, PropertyInfo? propertyInfo, FieldInfo? fieldInfo, RuntimeTypeBase declaringType, PropertyAccessMode propertyAccessMode, bool nullable, bool collection, ChangeTrackingStrategy changeTrackingStrategy, PropertyInfo? indexerPropertyInfo, bool propertyBag)

Parameters

name string
clrType Type
targetTypeName string
targetType Type
propertyInfo PropertyInfo
fieldInfo FieldInfo
declaringType RuntimeTypeBase
propertyAccessMode PropertyAccessMode
nullable bool
collection bool
changeTrackingStrategy ChangeTrackingStrategy
indexerPropertyInfo PropertyInfo
propertyBag bool

Properties

ClrType

Gets the type of value that this property-like object holds.

protected override Type ClrType { get; }

Property Value

Type

ComplexType

Gets the type of value that this property-like object holds.

public virtual RuntimeComplexType ComplexType { get; }

Property Value

RuntimeComplexType

DebugView

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

[EntityFrameworkInternal]
public virtual DebugView DebugView { get; }

Property Value

DebugView

DeclaringType

Gets the type that this property belongs to.

public override RuntimeTypeBase DeclaringType { get; }

Property Value

RuntimeTypeBase

Sentinel

public override object? Sentinel { get; }

Property Value

object

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.