• Documentation
  • Core API
  • SmartOpenHamburg API
  • Model Components API
  • Common API

    Show / Hide Table of Contents
    • Mars.Core
      • DependencyRegistrationCore
    • Mars.Core.Data
      • AbstractConfigLoader
      • AbstractEntityManager
      • AgentManagerImpl
      • DomainDataMediatorImpl
      • EntityManagerImpl
      • IAgentManager
      • IEntityManager
      • IEntityMapping
      • IGeneratedEntityLogger
      • IGeneratedLayerLogger
      • IGeneratedLogger<TModel>
      • IGeneratedTypeLogger
      • IModelCompiler
      • IOutputLogger
      • IPlatformSelector
      • ISchemaMigrationProvider
      • ISerializerManager
      • PlatformSelectorImpl
    • Mars.Core.Data.Compiler
      • AbstractEntityMapper
      • AbstractJitMapper
      • AbstractLayerMapper
      • AbstractMapper<TModel>
      • AbstractTypeMapper
      • RoslynCompilerUtils
    • Mars.Core.Data.Entities
      • CircleFilter
      • Condition
      • ConjunctiveWhere
      • DataFrame
      • DisjunctiveWhere
      • EqualityCondition
      • IntersectionFilter
      • ISelection
      • NearestFilter
      • Query
      • WindowFilter
      • WithinFilter
    • Mars.Core.Data.Exceptions
      • AgentInitializationException
    • Mars.Core.Data.Mapping
      • DefaultSourceProvider
      • ReflectiveMapping
    • Mars.Core.Data.Wrapper
      • AbstractOperationWrapper
      • AbstractWrapper
      • AbstractWrapper<TOptions>
      • GlobalRestrictions
      • ICircleQueryOperation
      • IIntersectionOperation
      • ILookupOperation
      • INearestOperation
      • IOperation
      • IPlatform
      • IQueryOperation
      • IWindowQueryOperation
      • IWithinOperation
      • IWrapper
      • KnnGraphWrapper
      • PostGisWrapper
    • Mars.Core.Data.Wrapper.Document
      • IMongoConnection
      • IMongoWrapper
      • MongoDbIteratorHelper
      • MongoDbWrapper
    • Mars.Core.Data.Wrapper.File
      • AbstractFileWrapper<TOptions>
      • AscWrapper
      • GeoJsonWrapper
    • Mars.Core.Data.Wrapper.Memory
      • DataTableWrapper
      • GeoHashTrieWrapper
      • KdTreeWrapper
      • TripPosition
      • TripPositionCoordinateConverter
      • TripsCollection
      • TripsLineConverter
      • TripsTrajectoryWrapper
    • Mars.Core.Data.Wrapper.Relational
      • AbstractRelationalConnection
      • PostgresSqlDbConnection
      • PostgresSqlWrapper
      • RelationalMapperException
      • RelationalSqlWrapper<TOptions>
      • SqliteDbConnection
      • SqliteWrapper
    • Mars.Core.Data.Wrapper.Stream
      • MqttWrapper
      • SimulationTypeInfo
    • Mars.Core.Executor
      • IRuntimeModel
      • ISimulationProgress
      • IStepExecutor
    • Mars.Core.Executor.Entities
      • Parametrization
      • StepParam
    • Mars.Core.Executor.Implementation
      • RuntimeModelImpl
      • SimulationProgressImpl
      • StepExecutionUseCase
    • Mars.Core.Model
      • IConfigLoader
      • IModelContainer
      • IModelResolver
    • Mars.Core.Model.Entities
      • LayerInstanceContainer
    • Mars.Core.Model.Exceptions
      • InvalidMappingException
      • MissingConstructorException
      • ModelResolutionException
      • ValidationException
    • Mars.Core.Model.Implementation
      • DependencyBuilder
      • MappingHelper
      • ModelContainer
      • ValidationIssueLevel
      • ValidationResult
      • Validator
    • Mars.Core.Simulation
      • ISimulation
      • ISimulationControl
    • Mars.Core.Simulation.Entities
      • SimulationRestartArgs
      • SimulationWorkflowState

    Interface IEntityManager

    Namespace: Mars.Core.Data
    Assembly: Mars.Core.dll
    Syntax
    public interface IEntityManager

    Methods

    Create<TEntity>(String, String, IReadOnlyCollection<IModelObject>)

    Creates a new instance of the specified type an initialize it reading the data object from the mapping source, using the specified keyAttribute and the corresponding keyValue.
    Declaration
    TEntity Create<TEntity>(string keyAttributeName, string valueToMatch, IReadOnlyCollection<IModelObject> modelSpecificDependencies = null)
        where TEntity : IEntity, new()
    Parameters
    Type Name Description
    System.String keyAttributeName The name of the attribute used to identify each data object.
    System.String valueToMatch The value of the key to identify the data object.
    IReadOnlyCollection<IModelObject> modelSpecificDependencies All model-dependent dependencies to passed to create
    Returns
    Type Description
    TEntity Returns an initialized new instance of .
    Type Parameters
    Name Description
    TEntity The concrete type to create.

    Initialize<TVectorEntity>(TVectorEntity, IDomainData, IReadOnlyCollection<IModelObject>)

    Initialize an existing object by the pre defined values of the input mapping or the given object.
    Declaration
    TVectorEntity Initialize<TVectorEntity>(TVectorEntity entity, IDomainData data, IReadOnlyCollection<IModelObject> modelSpecificDependencies = null)
    Parameters
    Type Name Description
    TVectorEntity entity A concrete instance of the entity.
    IDomainData data The data to assign to the entity.
    IReadOnlyCollection<IModelObject> modelSpecificDependencies Model-related dependencies which shall be resolved.
    Returns
    Type Description
    TVectorEntity Returns the same with initialized properties.
    Type Parameters
    Name Description
    TVectorEntity The internal type.

    Initialize<TVectorEntity>(TypeElement, TypeMapping, TVectorEntity, IDomainData, IReadOnlyCollection<IModelObject>)

    Initialize an existing object by the pre defined values of the given input mapping or the given object.
    Declaration
    TVectorEntity Initialize<TVectorEntity>(TypeElement managingType, TypeMapping mapping, TVectorEntity entity, IDomainData data, IReadOnlyCollection<IModelObject> modelSpecificDependencies = null)
    Parameters
    Type Name Description
    TypeElement managingType The type description, containing all properties and references.
    TypeMapping mapping The mapping configuration of the .
    TVectorEntity entity A concrete instance of the entity.
    IDomainData data The data to assign to the entity.
    IReadOnlyCollection<IModelObject> modelSpecificDependencies Model-related dependencies which shall be resolved.
    Returns
    Type Description
    TVectorEntity Returns the same with initialized properties.
    Type Parameters
    Name Description
    TVectorEntity The internal type.
    Back to top © 2022 MARS GROUP