Как показать данные в таблице после определенной даты? - вопрос №2432356

Это ошибка которая у меня выскакивает:

An unhandled exception of type 'System.NotSupportedException' occurredin EntityFramework.SqlServer.dll Additional information: The specified type member 'Date' is not supported in LINQ to Entities. Only initializers, entity members, and entity navigation properties are supported

Вот код:

private void OnActive(object sender, RoutedEventArgs e) { DateTime TodayDate = DateTime.Now.Date; // initvarquery = fromRentCarDB inthis.dbContext.RentCarDBSet whereRentCarDB.StartDate.Date <= TodayDate orderbyRentCarDB.StartDate selectRentCarDB; this.rentCarDBViewSource.Source =query.ToList();
}
Как показать данные которые после сегодняшней даты?
27.04.17
0 ответов
Ответов пока нет
Посмотреть всех экспертов из раздела Технологии > .Net/C#
Пользуйтесь нашим приложением Доступно на Google Play Загрузите в App Store