private void AddToConstructContext(DomainObject obj, DynamicData data) { object id = data.Get(EntityObject.IdPropertyName); if (this.Type == DataTableType.AggregateRoot) { ConstructContext.Add(id, obj); } else { object rootId = data.Get(this.Root.TableIdName); ConstructContext.Add(rootId, id, obj); } }