LINQ NotImplementedException [英] LINQ NotImplementedException

查看:73
本文介绍了LINQ NotImplementedException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在努力浏览Patrice Pelland撰写的《 Build a Program Now Visual C#2008 Express Edition》一书.我在第8章中,这是一个小型数据库应用程序,我被困在尝试使下面的代码正常工作的过程中.这两个搜索按钮单击事件都会在单击代码的最后一行中引发NotImplementedException.我已经在论坛,MSDN,Google等中进行了艰苦的搜索,但找不到任何有用的信息.感谢您的帮助!

私人 void fillByMakeToolStripButton_Click( object 发送者, EventArgs e)

{

var filterByMake = 来自 列表 in .carTrackerDataSet.Listing

加入 制作 .carTrackerDataSet.Make

Listing.MakeID 等于 Make.MakeID

其中 (Make.MakeName .ToLower().包含(makeToolStripTextBox.Text.ToLower()))

选择 列表;

this .listingBindingSource.DataSource = filterByMake;

}

私有 无效 fillByCarTypeToolStripButton_Click( 对象 发件人 EventArgs e)

{

var filterByCarType = 来自 列表 in .carTrackerDataSet.Listing

join CarType .carTrackerDataSet.CarType

Listing.CarTypeID 等于 CarType.CarTypeID

其中 (CarType.CarTypeName .ToLower().包含(cartypeToolStripTextBox.Text.ToLower()))

选择 列表;

this .listingBindingSource.DataSource = filterByCarType;

{

解决方案

尝试在您的项目中搜索"NotImplementedException".搜索找到任何东西吗?


I am working my way through the book Build a Program Now Visual C# 2008 Express Edition by Patrice Pelland.  I am in Chapter 8 which is a small database application and I'm stuck in trying to get the code below to work.  Both search button click events cause a NotImplementedException in the last line of the click code.  I have searched diligently in forums, MSDN, Google, etc. and can't find anything that helps.  Thank you for your help! 

private void fillByMakeToolStripButton_Click(object sender, EventArgs e)

{

var filterByMake = from Listing in this.carTrackerDataSet.Listing

join Make in this.carTrackerDataSet.Make

on Listing.MakeID equals Make.MakeID

where (Make.MakeName.ToLower().Contains(makeToolStripTextBox.Text.ToLower()))

select Listing;

this.listingBindingSource.DataSource = filterByMake;

}

private void fillByCarTypeToolStripButton_Click(object sender, EventArgs e)

{

var filterByCarType = from Listing in this.carTrackerDataSet.Listing

join CarType in this.carTrackerDataSet.CarType

on Listing.CarTypeID equals CarType.CarTypeID

where (CarType.CarTypeName.ToLower().Contains(cartypeToolStripTextBox.Text.ToLower()))

select Listing;

this.listingBindingSource.DataSource = filterByCarType;

{

解决方案

Try searching your project for "NotImplementedException".  Does the search find anything?


这篇关于LINQ NotImplementedException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆