Appointment appointment = db.Appointments.Find(i => new {i.ClinicId, i.Date, i.Time,});
Cannot convert lambda expression to type 'object[]' because it is not a delegate type
Appointment appointment = db.Appointments.Find(v => new MyClass { v.ClinicId, v.Time, v.Date });
private class MyClass { public TimeSpan Time { get; set; } public DateTime Date { get; set; } public int ClinicId { get; set; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)