Class EntityTypeResolver
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. See IEntityTypeResolver for example usage.
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Data.Entity.Internal
Assembly: EPiServer.Data.dll
Version: 11.20.7Syntax
[ServiceConfiguration(typeof(IEntityTypeResolver), Lifecycle = ServiceInstanceScope.Singleton)]
public class EntityTypeResolver : IEntityTypeResolver
Constructors
EntityTypeResolver()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the EntityTypeResolver class.
Declaration
public EntityTypeResolver()
EntityTypeResolver(IDatabaseExecutorFactory)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the EntityTypeResolver class.
Declaration
public EntityTypeResolver(IDatabaseExecutorFactory databaseHandlerFactory)
Parameters
Type | Name | Description |
---|---|---|
IDatabaseExecutorFactory | databaseHandlerFactory | The factory responsible for creating an instance of an IDatabaseExecutor when required. |
Methods
GetDatabaseHandler()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets an instance of the current IDatabaseExecutor handler to use for any calls to the database.
Declaration
protected IDatabaseExecutor GetDatabaseHandler()
Returns
Type | Description |
---|---|
IDatabaseExecutor | The IDatabaseExecutor that should be used. |
GetTypeByID(Int32)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets the System.Type by its database id.
Declaration
public virtual Type GetTypeByID(int id)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | The ID for which to get of the System.Type |
Returns
Type | Description |
---|---|
System.Type | The type associated with the given |
GetTypeID(Type, Boolean)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets the ID representing a System.Type in the database
Declaration
public virtual int GetTypeID(Type type, bool ignoreOverrideAttribute)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The System.Type for which to get the ID |
System.Boolean | ignoreOverrideAttribute | Whether to ignore the EntityTypeOverrideAttribute attribute. |
Returns
Type | Description |
---|---|
System.Int32 | Returns the integer ID that represents the |
GetTypeName(Type, Boolean)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets the name of a System.Type as used in the database
Declaration
public virtual string GetTypeName(Type type, bool ignoreOverrideAttribute)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The System.Type for which to to get the name |
System.Boolean | ignoreOverrideAttribute | Whether to ignore the EntityTypeOverrideAttribute attribute. |
Returns
Type | Description |
---|---|
System.String | The type name. |