/// <summary> /// Get all Entities Models for specified AppId /// </summary> internal IDictionary<int, IEntity> GetEavEntities(int appId, BaseCache source) { return GetAppDataPackage(null, appId, source, true).Entities; }
/// <summary> /// Get EntityModel for specified EntityId /// </summary> /// <returns>A single IEntity or throws InvalidOperationException</returns> public IEntity GetEavEntity(int entityId, BaseCache source = null) { return GetAppDataPackage(new[] { entityId }, Context.AppId /*_appId*/, source, true).Entities.Single(e => e.Key == entityId).Value; // must filter by EntityId again because of Drafts }