Class IEntityTypeResolverExtensions
Extension methods for the IEntity
Inheritance
Namespace: EPiServer.Data.Entity
Assembly: EPiServer.Data.dll
Version: 12.0.3Syntax
public static class IEntityTypeResolverExtensions : Object
Methods
GetTypeID(IEntityTypeResolver, Type)
Gets the ID representing a System.
Declaration
public static int GetTypeID(this IEntityTypeResolver resolver, Type type)
Parameters
Type | Name | Description |
---|---|---|
IEntity |
resolver | The instance on which the extension is applied |
System. |
type | The System. |
Returns
Type | Description |
---|---|
System. |
Returns the integer that represents the |
GetTypeID<TEntity>(IEntityTypeResolver)
Gets the ID representing a System.
Declaration
public static int GetTypeID<TEntity>(this IEntityTypeResolver resolver)
where TEntity : IEntity
Parameters
Type | Name | Description |
---|---|---|
IEntity |
resolver | The instance on which the extension is applied |
Returns
Type | Description |
---|---|
System. |
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.
Declaration
public static string GetTypeName(this IEntityTypeResolver resolver, Type type)
Parameters
Type | Name | Description |
---|---|---|
IEntity |
resolver | The instance on which the extension is applied |
System. |
type | The System. |
Returns
Type | Description |
---|---|
System. |
The type name. |
GetTypeName<TEntity>(IEntityTypeResolver)
Gets the name of a System.
Declaration
public static string GetTypeName<TEntity>(this IEntityTypeResolver resolver)
where TEntity : IEntity
Parameters
Type | Name | Description |
---|---|---|
IEntity |
resolver | The instance on which the extension is applied |
Returns
Type | Description |
---|---|
System. |
The type name. |
Type Parameters
Name | Description |
---|---|
TEntity | The type of the entity to get the ID for. |