Search Results for

    Show / Hide Table of Contents

    Class JsonEntityObjectList

    Object representing a result as serialized by a service call. it contains a type and a collection of items. The type name is always set. If the NewWithType is null, the ModelEntityBase for the given type can be found in the already transferred model.

    Inheritance
    System.Object
    JsonEntityObjectList
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: TimeCockpit.Data.JsonConverters
    Assembly: TimeCockpit.Data.dll
    Syntax
    public class JsonEntityObjectList

    Constructors

    JsonEntityObjectList()

    Declaration
    public JsonEntityObjectList()

    Properties

    AnonynmousTypes

    Gets or sets the type of the entity objects in the item collection.

    Declaration
    public IEnumerable<ModelEntityBase> AnonynmousTypes { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<ModelEntityBase>

    Items

    Gets or sets a collection of entity object types.

    Declaration
    public IEnumerable<EntityObject> Items { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<EntityObject>

    Methods

    FindAnonymousTypes(IEnumerable<EntityObject>, Model)

    Finds the anonymous types.

    Declaration
    public static IEnumerable<ModelEntityBase> FindAnonymousTypes(IEnumerable<EntityObject> entityObjects, Model model)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<EntityObject> entityObjects

    The entity objects.

    Model model

    The model to search for model entities.

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<ModelEntityBase>

    A list of types that cannot be found in the model.

    FindAnonymousTypesAlongRelations(EntityObject, Model, HashSet<ModelEntityBase>)

    Finds the anonymous types along an entity object. Calls itself along the relations.

    Declaration
    public static void FindAnonymousTypesAlongRelations(EntityObject entityObject, Model model, HashSet<ModelEntityBase> target)
    Parameters
    Type Name Description
    EntityObject entityObject

    The entity object.

    Model model

    The model containing the well-defined entity objects.

    System.Collections.Generic.HashSet<ModelEntityBase> target

    The target to write model entities to.

    Read(JsonReader, Model, Environment)

    Reads an instance of EntityObject that is serialized in Json

    Declaration
    public static JsonEntityObjectList Read(JsonReader reader, Model model, Environment environment)
    Parameters
    Type Name Description
    Newtonsoft.Json.JsonReader reader

    The reader that is used to read the Json string.

    Model model

    The current DataContext model.

    Environment environment

    the Current DataContext Environment.

    Returns
    Type Description
    JsonEntityObjectList

    an instance of EntityObject

    Write(JsonWriter, Model, JsonEntityObjectList)

    Writes the json.

    Declaration
    public static void Write(JsonWriter writer, Model model, JsonEntityObjectList selectResult)
    Parameters
    Type Name Description
    Newtonsoft.Json.JsonWriter writer

    The writer.

    Model model

    The base model to use for existing types.

    JsonEntityObjectList selectResult

    The entity object.

    In This Article
    Back to top Copyright © 2025 software architects gmbh