public static IRepositoryQuery <T> Include <T>(this IRepositoryQuery <T> query, params Expression <Func <T, object> >[] objectPaths) where T : class { foreach (var objectPath in objectPaths) { query.Include(objectPath); } return(query); }