예제 #1
0
 /// <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;
 }
예제 #2
0
 /// <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
 }