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