コード例 #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));
コード例 #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();
コード例 #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));