public bool ResolveType() { if (_Entity == null) return false; if (_Entity.ContextType == null) return false; _ContextType = new ContextType(_Entity.ContextType); return true; }
public ContextType[] GetAllContextTypes() { _Trace.TraceEvent(TraceEventType.Verbose, -1, "GetAllContextTypes"); ContextTypeEntity[] entities = new CriticalResultsEntityManager().GetAllContextTypes(); List<ContextType> types = new List<ContextType>(); foreach (ContextTypeEntity e in entities) { ContextType t = new ContextType(e); types.Add(t); } return types.ToArray(); }