/// <summary> /// Finds all <see cref="WorkQueueUids"/> this item. /// </summary> /// <param name="item"></param> /// <returns></returns> public static IList <WorkQueueUid> LoadAllWorkQueueUid(this WorkQueue item) { using (var readctx = PersistentStoreRegistry.GetDefaultStore().OpenReadContext()) { IWorkQueueUidEntityBroker broker = readctx.GetBroker <IWorkQueueUidEntityBroker>(); var criteria = new WorkQueueUidSelectCriteria(); criteria.WorkQueueKey.EqualTo(item.Key); return(broker.Find(criteria)); } }
private IList <WorkQueueUid> LoadAllWorkQueueUids() { using (IReadContext context = PersistentStoreRegistry.GetDefaultStore().OpenReadContext()) { IWorkQueueUidEntityBroker broker = context.GetBroker <IWorkQueueUidEntityBroker>(); WorkQueueUidSelectCriteria criteria = new WorkQueueUidSelectCriteria(); criteria.WorkQueueKey.EqualTo(WorkQueueItem.Key); return(broker.Find(criteria)); } }