Implements MediaService for U4-941

Minor update to the ContentType/MediaType repositories to insure that CT references are removed when deleting.
Updates Media- and ContentMappers to map ContentTypeId.
Updates Media to have internal Trash-method.
This commit is contained in:
sitereactor
2012-10-24 08:36:45 -02:00
parent 2185da597f
commit ce6aeb2a21
18 changed files with 444 additions and 18 deletions

View File

@@ -18,7 +18,7 @@ namespace Umbraco.Core.Models.Rdbms
public int NodeId { get; set; }
[Column("contentType")]
public int ContentType { get; set; }
public int ContentTypeId { get; set; }
[ResultColumn]
public NodeDto NodeDto { get; set; }

View File

@@ -8,7 +8,7 @@ namespace Umbraco.Core.Models.Rdbms
internal class ContentType2ContentTypeDto
{
[Column("parentContentTypeId")]
[PrimaryKeyColumn(AutoIncrement = false, Clustered = true, Name = "PK_cmsContentType2ContentType", OnColumns = "[parentContentTypeId], [childContentTypeId]")]
[PrimaryKeyColumn(AutoIncrement = false, Clustered = true, Name = "PK_cmsContentType2ContentType", OnColumns = "parentContentTypeId, childContentTypeId")]
public int ParentId { get; set; }
[Column("childContentTypeId")]