Udostępnij za pośrednictwem


EntityValueWithId Class

Definition

The base class of entity value implementation generated from the model, when it support Id.

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

Constructors

EntityValueWithId(IEntityRuntimeModel, EntityIdentity)

Initializes a new instance of the EntityValueWithId class.

EntityValueWithId(IEntityRuntimeModel)

Initializes a new instance of the EntityValueWithId class. Only used to create an instance in the deserialization time.

Properties

EntityRuntime (Inherited from EntityValueBase)
Id
IsFrozen

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

(Inherited from EntityValueBase)
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)

Gets the current properties state.

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

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

(Inherited from EntityValueBase)
ToString()
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