public void ReplacePoco(INakedObjectAdapter nakedObjectAdapter, object newDomainObject)
 {
     RemoveAdapter(nakedObjectAdapter);
     identityMap.Replaced(nakedObjectAdapter.Object);
     nakedObjectAdapter.ReplacePoco(newDomainObject);
     identityMap.AddAdapter(nakedObjectAdapter);
 }
예제 #2
0
 public void ReplacePoco(INakedObjectAdapter nakedObjectAdapter, object newDomainObject)
 {
     Log.DebugFormat("ReplacePoco nakedObjectAdapter: {0} newDomainOject: {1}", nakedObjectAdapter, newDomainObject);
     RemoveAdapter(nakedObjectAdapter);
     identityMap.Replaced(nakedObjectAdapter.Object);
     nakedObjectAdapter.ReplacePoco(newDomainObject);
     identityMap.AddAdapter(nakedObjectAdapter);
 }