I have a schedule object that is returned from the database. It contains information from a few tables. One of the tables is called ScheduleData and has four columns. It has this format:
Id | ScheduleId | Name | Value
I need the value of the fourth column where the Name is Mine and the ScheduleId is 5
I have tried this, but it doesn't work:
string val = from s in schedule.ScheduleData where s.Name.Equals("Mine") && s.ScheduleId == 5 select s.Value;