Class ContentTypeRepositoryExtensions
Extension methods for IContent
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 Content
Declaration
public static void Delete<T>(this IContentTypeRepository repository)
Parameters
Type | Name | Description |
---|---|---|
IContent |
repository | The repository. |
Type Parameters
Name | Description |
---|---|
T |
Load<T>(IContentTypeRepository)
Loads the Content
Declaration
public static ContentType Load<T>(this IContentTypeRepository repository)
Parameters
Type | Name | Description |
---|---|---|
IContent |
repository | The repository. |
Returns
Type | Description |
---|---|
Content |
Type Parameters
Name | Description |
---|---|
T | The model type |