Share via


EntityValueBase<TPropertiesAvailableStatus> Class

Definition

Provides a common base class to implement entity types without Ids.

[System.Runtime.CompilerServices.Nullable(0)]
public abstract class EntityValueBase<TPropertiesAvailableStatus> : Microsoft.VisualStudio.ProjectSystem.Query.Framework.EntityValueBase where TPropertiesAvailableStatus : class, IPropertiesAvailableStatus, new()
[<System.Runtime.CompilerServices.Nullable(0)>]
type EntityValueBase<'PropertiesAvailableStatus (requires 'PropertiesAvailableStatus : null and 'PropertiesAvailableStatus :> IPropertiesAvailableStatus and 'PropertiesAvailableStatus : (new : unit -> 'PropertiesAvailableStatus))> = class
    inherit EntityValueBase
Public MustInherit Class EntityValueBase(Of TPropertiesAvailableStatus)
Inherits EntityValueBase

Type Parameters

TPropertiesAvailableStatus

The properties available statue type.

Inheritance
EntityValueBase<TPropertiesAvailableStatus>
Derived
Attributes

Constructors

EntityValueBase<TPropertiesAvailableStatus>(IEntityRuntimeModel, TPropertiesAvailableStatus)

Initializes a new instance of the EntityValueBase<TPropertiesAvailableStatus> class.

EntityValueBase<TPropertiesAvailableStatus>(IEntityRuntimeModel)

Initializes a new instance of the EntityValueBase<TPropertiesAvailableStatus> class.

Properties

EntityRuntime (Inherited from EntityValueBase)
IsFrozen

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

(Inherited from EntityValueBase)
PropertiesAvailableStatus

Gets the property available status of this entity.

Site

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

(Inherited from EntityValueBase)

Methods

ConvertChildrenCollection<TChildType>(IEnumerable<IEntityValue>)

Converts a generic children collection to a specific collection.

(Inherited from EntityValueBase)
EnsureMutable()

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

(Inherited from EntityValueBase)
EnsurePropertyMarkedAsAvailable(IEntityProperty)

Ensures the property is marked as available.

(Inherited from EntityValueBase)
Freeze()

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

(Inherited from EntityValueBase)
GetEntityType() (Inherited from EntityValueBase)
GetPropertiesAvailableStatus(Boolean)
ReadProperty(String, JsonReader)

Read a property value from Json.

(Inherited from EntityValueBase)
SetRelatedEntities(String, IEnumerable<IEntityValue>)

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

(Inherited from EntityValueBase)
ToString() (Inherited from EntityValueBase)
TryGetRelatedEntities(String, IEnumerable<IEntity>)

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

(Inherited from EntityValueBase)

Explicit Interface Implementations

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

Applies to