EntityValueBase Class

Definition

The base class of entity value implementation generated from the model.

[System.Runtime.CompilerServices.Nullable(0)]
public abstract class EntityValueBase : Microsoft.VisualStudio.ProjectSystem.Query.Framework.IEntityValueFromProvider, Microsoft.VisualStudio.ProjectSystem.Query.Framework.IFreezable
[<System.Runtime.CompilerServices.Nullable(0)>]
type EntityValueBase = class
    interface IEntityValue
    interface IEntity
    interface IFreezable
    interface IEntityValueFromProvider
Public MustInherit Class EntityValueBase
Implements IEntityValueFromProvider, IFreezable
Inheritance
EntityValueBase
Derived
Attributes
Implements

Constructors

EntityValueBase(IEntityRuntimeModel)

Initializes a new instance of the EntityValueBase class.

Properties

EntityRuntime
IsFrozen

Gets whether the object is immutable. Once the entity values are initialized, it will be frozen and become immutable.

Site

Gets the site of the entity. (It is a part of infrastructure to attach additional collections to it.

Methods

ConvertChildrenCollection<TChildType>(IEnumerable<IEntityValue>)

Converts a generic children collection to a specific collection.

EnsureMutable()

Check and throw, if the object is set to readonly.

EnsurePropertyMarkedAsAvailable(IEntityProperty)

Ensures the property is marked as available.

Freeze()

Freeze the entity value object, so it cannot be changed.

GetEntityType()
GetPropertiesAvailableStatus(Boolean)

Gets the current properties state.

ReadProperty(String, JsonReader)

Read a property value from Json.

SetRelatedEntities(String, IEnumerable<IEntityValue>)

Sets related entities. This method is used by query engine to fill data.

ToString()
TryGetRelatedEntities(String, IEnumerable<IEntity>)

Try to get related entities saved through earlier SetRelatedEntities(String, IEnumerable<IEntityValue>).

Explicit Interface Implementations

IEntity.PropertiesAvailableStatus
IEntityValue.LimitAvailableProperties(IPropertiesAvailableStatus)
IEntityValue.SetRelatedEntities(String, IReadOnlyCollection<IEntityValue>)
IEntityValue.SetSite(IEntitySite)
IEntityValue.TryGetRelatedEntities(String, IEnumerable<IEntityValue>)
IEntityValueFromProvider.ProviderState
IFreezable.IsFrozen

Applies to