public IDomain BuildEntity(DomainDto dto) { var domain = new UmbracoDomain(dto.DomainName, dto.IsoCode) { Id = dto.Id, LanguageId = dto.DefaultLanguage, RootContentId = dto.RootStructureId, }; // reset dirty initial properties (U4-1946) domain.ResetDirtyProperties(false); return(domain); }
public IDomain BuildEntity(DomainDto dto) { var domain = new UmbracoDomain(dto.DomainName, dto.IsoCode) { Id = dto.Id, LanguageId = dto.DefaultLanguage, RootContentId = dto.RootStructureId }; //on initial construction we don't want to have dirty properties tracked // http://issues.umbraco.org/issue/U4-1946 domain.ResetDirtyProperties(false); return(domain); }