Ejemplo n.º 1
0
 public static IList <T> GetGraphs <T>(this IList <int> ids, IList <T> collection) where T : CRUDObject => GraphExtensions.GetGraphs(ids, id => collection.FirstOrDefault(graph => graph.Id == id));
Ejemplo n.º 2
0
 public static IList <T> GetGraphs <T>(this IList <int> ids, IList <T> collection, Func <T, int> getIdFunc) => GraphExtensions.GetGraphs(ids, id => collection.FirstOrDefault(graph => getIdFunc(graph) == id)).ToList();
Ejemplo n.º 3
0
 public static IList <T> GetGraphs <T>(this IList <int> ids, ICRUDCollection <T> collection) where T : CRUDObject => GraphExtensions.GetGraphs(ids, id => collection.Read(id));