Class EntityTypeResolver
See IEntity
Inheritance
Implements
Namespace: EPiServer.Data.Entity.Internal
Assembly: EPiServer.Data.dll
Version: 12.0.3Syntax
[ServiceConfiguration]
public class EntityTypeResolver : Object, IEntityTypeResolver
Constructors
EntityTypeResolver()
Initializes a new instance of the Entity
Declaration
public EntityTypeResolver()
EntityTypeResolver(IDatabaseExecutorFactory)
Initializes a new instance of the Entity
Declaration
public EntityTypeResolver(IDatabaseExecutorFactory databaseHandlerFactory)
Parameters
Type | Name | Description |
---|---|---|
IDatabase |
databaseHandlerFactory | The factory responsible for creating an instance of an IDatabase |
Methods
GetDatabaseHandler()
Gets an instance of the current IDatabase
Declaration
protected IDatabaseExecutor GetDatabaseHandler()
Returns
Type | Description |
---|---|
IDatabase |
The IDatabase |
GetTypeByID(Int32)
Gets the System.
Declaration
public virtual Type GetTypeByID(int id)
Parameters
Type | Name | Description |
---|---|---|
System. |
id | The ID for which to get of the System. |
Returns
Type | Description |
---|---|
System. |
The type associated with the given |
GetTypeID(Type, Boolean)
Gets the ID representing a System.
Declaration
public virtual int GetTypeID(Type type, bool ignoreOverrideAttribute)
Parameters
Type | Name | Description |
---|---|---|
System. |
type | The System. |
System. |
ignoreOverrideAttribute | Whether to ignore the Entity |
Returns
Type | Description |
---|---|
System. |
Returns the integer ID that represents the |
GetTypeName(Type, Boolean)
Gets the name of a System.
Declaration
public virtual string GetTypeName(Type type, bool ignoreOverrideAttribute)
Parameters
Type | Name | Description |
---|---|---|
System. |
type | The System. |
System. |
ignoreOverrideAttribute | Whether to ignore the EntityTypeOverrideAttribute attribute. |
Returns
Type | Description |
---|---|
System. |
The type name. |