Class IEntityTypeResolverExtensions

Extension methods for the IEntityTypeResolver Interface that adds simplified overloads for commonly access methods.

Inheritance
System.Object
IEntityTypeResolverExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Data.Entity
Assembly: EPiServer.Data.dll
Version: 8.11.0
Syntax
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 type in the database.

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 TEntity in the database.

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.