DevTreks.Data/Filters/SearchFilters.cs
/// <summary>
/// Filters the query (getnetworks()) by NetworkId
/// </summary>
/// <param name="networkId">The network ID to filter by</param>
/// <returns>IQueryable of Network</returns>
Filters the query (getnetworks()) by NetworkId
Filters the query ( getnetworks () ) by NetworkId
public static IQueryable<Network> WithNetworkId(this IQueryable<Network> qry,
            int networkId)
        {
            return from n in qry
                   where n.PKId == networkId
                   select n;
        }
public static IQueryable < Network > WithNetworkId ( this IQueryable < Network > qry , int networkId ) { return from n in qry where n . PKId == networkId select n ; }
Filters the query (getnetworks()) by NetworkId
Filters the query ( getnetworks () ) by NetworkId
IQueryable of Network
IQueryable of Network
IQueryable<Network>
this
networkId
int
The network ID to filter by
The network ID to filter by