クエリからこのコマンドを使用して結果を除外したかったのですが、次のエラーが発生しました。
エラーの原因となっているコードは次のとおりです。
private void Bookings_Loaded(object sender, RoutedEventArgs e)
{
WpfApplication7.AllensCroftEntities1 allensCroftEntities1 = new WpfApplication7.AllensCroftEntities1();
// Load data into Bookings. You can modify this code as needed.
var bookingsViewSource = ((CollectionViewSource)(this.FindResource("bookingsViewSource")));
var bookingsQuery = this.GetBookingsQuery(allensCroftEntities1).Where(x => x.Date == variables.date);
bookingsViewSource.Source = bookingsQuery.Execute(MergeOption.AppendOnly);
private System.Data.Objects.ObjectQuery<Booking> GetBookingsQuery(AllensCroftEntities1 allensCroftEntities1)
{
EDIT
ここにあります
System.Data.Objects.ObjectQuery<WpfApplication7.Booking> bookingsQuery = allensCroftEntities1.Bookings;
// To explicitly load data, you may need to add Include methods like below:
// bookingsQuery = bookingsQuery.Include("Bookings.Client").
// For more information, please see http://go.microsoft.com/fwlink/?LinkId=157380
// Update the query to include Room.Bookings data in Bookings. You can modify this code as needed.
bookingsQuery = bookingsQuery.Include("Room.Bookings");
// Returns an ObjectQuery.
return bookingsQuery;
}
途中で編集ここに私の問題のビデオがありますそれが問題のビデオを助けるなら
今すぐ編集して、このエラーが発生します: