private INakedObjectAdapter CreateAdapterForNewObject(object domainObject)
        {
            var transientOid = oidGenerator.CreateTransientOid(domainObject);
            var adapter      = NewAdapterForKnownObject(domainObject, transientOid);

            identityMap.AddAdapter(adapter);
            return(adapter);
        }
Esempio n. 2
0
        private INakedObjectAdapter CreateAdapterForNewObject(object domainObject)
        {
            IOid transientOid           = oidGenerator.CreateTransientOid(domainObject);
            INakedObjectAdapter adapter = NewAdapterForKnownObject(domainObject, transientOid);

            Log.DebugFormat("Creating adapter (transient) {0}", adapter);
            identityMap.AddAdapter(adapter);
            return(adapter);
        }