I have this code that returns a caseID from an Alleged Perpetrator table. This table also has a column "LastName". I want to search on caseID and return LastName but I don't know how to code it. I've been on the microsoft site looking for LINQ to SQL examples but still can't figure it out. Any help would be greatly appreciated!
Ken
public static class AllegedPerpetratorRepository
{
public static IQueryable<AllegedPerpetrator> GetByCaseID(
this IQueryable<AllegedPerpetrator> source,
int caseID)
{
return (from s in source where s.CaseID.Equals(caseID) select s);
}
}