/// <summary> /// Resolves all references for the entity using configuration from class mapping and data from the row /// </summary> public void Resolve() { //load context data Context.LoadData(Row, false); //load entity from the model // ReSharper disable once ImpureMethodCallOnReadonlyValueField Entity = _handle.GetEntity(); //resolve parent if this is a parent context if (Context.ContextType == ReferenceContextType.Parent) { ResolveParent(); } //resolve all other kinds of references else { ResolveMember(); } }
/// <summary> /// Returns the instance that corresponds to this handle /// </summary> /// <param name="handle"></param> /// <returns></returns> public IPersistEntity this[XbimInstanceHandle handle] { get { return(handle.GetEntity()); } }