public ChildUnitOfWork(ParentReferenceGeneric <TParentEntity, TChildEntity> parentReference, UnitOfWorkTitle title) { IsNew = true; ActionTitle = title; ParentReference = parentReference; Root = new TChildEntity(); }
public ChildUnitOfWork(ParentReferenceGeneric <TParentEntity, TChildEntity> parentReference, TChildEntity root, UnitOfWorkTitle title) { IsNew = false; ActionTitle = title; ParentReference = parentReference; externalRootVersion = root; Root = ObjectCloner.Clone(externalRootVersion); }