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