Class IEntityTypeResolverExtensions
Extension methods for the IEntityTypeResolver Interface that adds simplified overloads for commonly access methods.
Inheritance
Inherited Members
Namespace: EPiServer.Data.Entity
Assembly: EPiServer.Data.dll
Version: 11.20.7Syntax
public static class IEntityTypeResolverExtensions
Methods
GetTypeID(IEntityTypeResolver, Type)
Gets the ID representing a System.Type in the database.
Declaration
public static int GetTypeID(this IEntityTypeResolver resolver, Type type)
Parameters
Type | Name | Description |
---|---|---|
IEntityTypeResolver | resolver | The instance on which the extension is applied |
System.Type | type | The System.Type to get the ID for |
Returns
Type | Description |
---|---|
System.Int32 | Returns the integer that represents the |
GetTypeID<TEntity>(IEntityTypeResolver)
Gets the ID representing a System.Type in the database.
Declaration
public static int GetTypeID<TEntity>(this IEntityTypeResolver resolver)
where TEntity : IEntity
Parameters
Type | Name | Description |
---|---|---|
IEntityTypeResolver | resolver | The instance on which the extension is applied |
Returns
Type | Description |
---|---|
System.Int32 | Returns the integer that represents the |
Type Parameters
Name | Description |
---|---|
TEntity | The type of entity to get the ID for. |
GetTypeName(IEntityTypeResolver, Type)
Gets the name of a System.Type as used in the database
Declaration
public static string GetTypeName(this IEntityTypeResolver resolver, Type type)
Parameters
Type | Name | Description |
---|---|---|
IEntityTypeResolver | resolver | The instance on which the extension is applied |
System.Type | type | The System.Type to get the name for |
Returns
Type | Description |
---|---|
System.String | The type name. |
GetTypeName<TEntity>(IEntityTypeResolver)
Gets the name of a System.Type as used in the database
Declaration
public static string GetTypeName<TEntity>(this IEntityTypeResolver resolver)
where TEntity : IEntity
Parameters
Type | Name | Description |
---|---|---|
IEntityTypeResolver | resolver | The instance on which the extension is applied |
Returns
Type | Description |
---|---|
System.String | The type name. |
Type Parameters
Name | Description |
---|---|
TEntity | The type of the entity to get the ID for. |