Class ContentTypeRepositoryExtensions
Extension methods for IContentTypeRepository
Inheritance
System.Object
ContentTypeRepositoryExtensions
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public static class ContentTypeRepositoryExtensions : Object
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 |