DetachedContentTypeService
Documentation for the DetachedContentTypeService
The DetachedContentTypeService is responsible for managing the association of Umbraco ContentType(s) and Merchello DetachedContentType.
var detachedContentService = MerchelloContext.Current.Services.DetachedContentTypeService;
The DetachedContentTypeService is exposed through the MerchelloContext
Public Methods
CreateDetachedContentType(Guid, Guid, String, Boolean) | Creates a IDetachedContentType without saving it to the database. |
CreateDetachedContentType(EntityType, Guid, String, Boolean) | Creates a IDetachedContentType without saving it to the database. |
CreateDetachedContentTypeWithKey(Guid, Guid, String, Boolean) | Creates a IDetachedContentType and saves to the database. |
CreateDetachedContentTypeWithKey(EntityType, Guid, String, Boolean) | Creates a IDetachedContentType and saves to the database. |
Delete(IDetachedContentType, Boolean) | Deletes a single instance of IDetachedContentType. |
GetAll | Gets all IDetachedContentType(s). |
GetByKey | Gets a IDetachedContentType by it's unique key. |
GetDetachedContentTypesByContentTypeKey | Gets a collection of IDetachedContentType by the Umbraco content type key. |
GetDetachedContentTypesByEntityTfKey | Gets a collection of IDetachedContentType by the entity type key. |
Save(IDetachedContentType, Boolean) | Saves a single instance of IDetachedContentType. |
Save(IEnumerable(IDetachedContentType), Boolean) | Saves a collection of IDetachedContentType. |
Events
Creating | Occurs before create |
Created | Occurs after create |
Deleting | Occurs before delete |
Deleted | Occurs after delete |
Saving | Occurs before save |
Saved | Occurs after save |
Updated less than a minute ago