Class ContentTypeRepositoryExtensions

Extension methods for IContentTypeRepository

Inheritance
System.Object
ContentTypeRepositoryExtensions
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.DataAbstraction
Assembly: EPiServer.dll
Version: 11.14.0
Syntax
public static class ContentTypeRepositoryExtensions

Methods

Delete<T>(IContentTypeRepository)

Deletes the ContentType that corresponds to specific model type.

Declaration
public static void Delete<T>(this IContentTypeRepository repository)
Parameters
Type Name Description
IContentTypeRepository repository

The repository.

Type Parameters
Name Description
T

Load<T>(IContentTypeRepository)

Loads the ContentType that corresponds to specific model type.

Declaration
public static ContentType Load<T>(this IContentTypeRepository repository)
Parameters
Type Name Description
IContentTypeRepository repository

The repository.

Returns
Type Description
ContentType
Type Parameters
Name Description
T

The model type