If I use a lambda expression like the following
// assume sch_id is a property of the entity Schedules
public void GetRecord(int id)
{
_myentity.Schedules.Where(x => x.sch_id == id));
}
I'm assuming (although non-tested) I can rewrite that using an anonymous inline function using something like
_jve.Schedules.Where(delegate(Models.Schedules x) { return x.sch_id == id; });
My question is, how would I rewrite that in a normal (non-inline) function and still pass in the id parameter.