I not sure what is the problem to cause the below error.
Hope someone here can help me on this.
Server Error in '/' Application.
The 'RowVersion' property on 'ScheduleTime' could not be set to a 'System.DateTime' value. You must set this property to a non-null value of type 'System.Byte[]'.
this problem normally occur when i using LINQ with OrderBy
Code: Select all
List<ScheduleTime> ListScheduleTime = db.ScheduleTimes.Where(u => u.ScheduleId == Id
&& u.BeginDay == cd.Id).
OrderBy(u => u.Id).ToList();
Thank You For HELP.