Example #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));
Example #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();
Example #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));