Example #1
0
 /// <summary>
 /// Gets a sequence of <see cref="TEntity"/> matching the specified ids.
 /// </summary>
 /// <typeparam name="TEntity">The type of the entity.</typeparam>
 /// <param name="allOrNothing">If set to <c>true</c> all ids must match in order to return any <typeparamref name="TEntity"/> instances.</param>
 /// <param name="ids">The ids.</param>
 /// <returns></returns>
 public IEnumerable <TEntity> Get <TEntity>(bool allOrNothing, params HiveId[] ids) where TEntity : TypedEntity
 {
     return(ChildSessions.Get <TEntity>(this, allOrNothing, IdRoot, ids).Select(RaiseEntityReady));
 }
 /// <summary>
 /// Gets a sequence of <see cref="TEntity"/> matching the specified ids.
 /// </summary>
 /// <typeparam name="TEntity">The type of the entity.</typeparam>
 /// <param name="allOrNothing">If set to <c>true</c> all ids must match in order to return any <typeparamref name="TEntity"/> instances.</param>
 /// <param name="ids">The ids.</param>
 /// <returns></returns>
 public IEnumerable <TEntity> Get <TEntity>(bool allOrNothing, params HiveId[] ids) where TEntity : AbstractSchemaPart
 {
     return(ChildSessions.Get <TEntity>(this, allOrNothing, IdRoot, ids));
 }