• MARS Website
  • 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
    • ISnapshot
    • 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

Class EntityManagerImpl

Provides the implementation for the IEntityManager service, which can be used to create IEntity object from sources.
Inheritance
System.Object
DomainDataMediatorImpl
AbstractEntityManager
EntityManagerImpl
Implements
IEntityManager
Inherited Members
AbstractEntityManager.MappingWorkflow
AbstractEntityManager.ConfigLoader
AbstractEntityManager.Mappings
AbstractEntityManager.Create<TEntity>(IReadOnlyCollection<IModelObject>, TypeMapping, TypeElement, IEnumerable<IDomainData>)
DomainDataMediatorImpl.Read<T>(IEnumerable<Input>)
DomainDataMediatorImpl.Read(TypeMapping)
DomainDataMediatorImpl.Read(IEnumerable<Input>)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Mars.Core.Data
Assembly: Mars.Core.dll
Syntax
public class EntityManagerImpl : AbstractEntityManager, IEntityManager

Constructors

| Improve this Doc View Source

EntityManagerImpl(IConfigLoader, ISerializerManager, DefaultSourceProvider)

Creates a new IEntityManager able to resolve and create entity from mappings, getting from and to register them for output at the . When entities shall be created ad-hoc the component can be initialized with a for testing purposes.
Declaration
public EntityManagerImpl(IConfigLoader configLoader, ISerializerManager serializerManager, DefaultSourceProvider defaultSourceProvider = null)
Parameters
Type Name Description
IConfigLoader configLoader The loader keeping references to all configurations and types.
ISerializerManager serializerManager The serializer manager containing all proxy to accessing the model without reflection.
DefaultSourceProvider defaultSourceProvider The optional default dataset container.
Remarks
When entities shall be created ad-hoc the component can be initialized with a for testing purposes.
| Improve this Doc View Source

EntityManagerImpl(IConfigLoader, ISerializerManager)

Creates a new IEntityManager able to resolve and create entity from mappings, getting from and to register them for output at the .
Declaration
public EntityManagerImpl(IConfigLoader configLoader, ISerializerManager serializerManager)
Parameters
Type Name Description
IConfigLoader configLoader The loader keeping references to all configurations and types.
ISerializerManager serializerManager The serializer manager containing all proxy to accessing the model without reflection.
| Improve this Doc View Source

EntityManagerImpl(DataTable)

Creates a new IEntityManager with a pre-defined source in form of a System.Data.DataTable.
Declaration
public EntityManagerImpl(DataTable defaultSource)
Parameters
Type Name Description
System.Data.DataTable defaultSource The source table with all data.
| Improve this Doc View Source

EntityManagerImpl((Type, DataTable)[])

Creates a new IEntityManager with multiple sources distinguished by their System.Type.
Declaration
public EntityManagerImpl(params (Type, DataTable)[] sources)
Parameters
Type Name Description
System.ValueTuple<System.Type, System.Data.DataTable>[] sources

Methods

| Improve this Doc View Source

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

Provides the implementation for the IEntityManager service, which can be used to create IEntity object from sources.
Declaration
public TEntity Create<TEntity>(string keyAttributeName, string valueToMatch, IReadOnlyCollection<IModelObject> modelSpecificDependencies = null)
    where TEntity : IEntity, new()
Parameters
Type Name Description
System.String keyAttributeName
System.String valueToMatch
System.Collections.Generic.IReadOnlyCollection<IModelObject> modelSpecificDependencies
Returns
Type Description
TEntity
Type Parameters
Name Description
TEntity
| Improve this Doc View Source

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

Provides the implementation for the IEntityManager service, which can be used to create IEntity object from sources.
Declaration
public TVectorEntity Initialize<TVectorEntity>(TVectorEntity entity, IDomainData data, IReadOnlyCollection<IModelObject> modelSpecificDependencies = null)
Parameters
Type Name Description
TVectorEntity entity
IDomainData data
System.Collections.Generic.IReadOnlyCollection<IModelObject> modelSpecificDependencies
Returns
Type Description
TVectorEntity
Type Parameters
Name Description
TVectorEntity
| Improve this Doc View Source

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

Provides the implementation for the IEntityManager service, which can be used to create IEntity object from sources.
Declaration
public TVectorEntity Initialize<TVectorEntity>(TypeElement managingType, TypeMapping mapping, TVectorEntity entity, IDomainData data, IReadOnlyCollection<IModelObject> modelSpecificDependencies = null)
Parameters
Type Name Description
TypeElement managingType
TypeMapping mapping
TVectorEntity entity
IDomainData data
System.Collections.Generic.IReadOnlyCollection<IModelObject> modelSpecificDependencies
Returns
Type Description
TVectorEntity
Type Parameters
Name Description
TVectorEntity

Implements

IEntityManager

Extension Methods

Serializer.Save<T>(T, out Byte[], SerializerCompression)
Serializer.Save<T>(T, Stream, SerializerCompression)
Serializer.Save<T>(T, BinaryFormatter, Stream, SerializerCompression)
Serializer.Save<T>(T, String, SerializerCompression)
Serializer.Save<T>(T, String)
Matrix.Concatenate<T>(T, T[])
Matrix.Replace<T>(T, Object, Object)
DomainDataImporter.Import(Object, InputConfiguration)
ObjectSerialize.Serialize(Object)
Matrix.IsEqual(Object, Object, Decimal, Decimal)
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © MARS GROUP. HAW Hamburg