LINQ NotImplementedException [英] LINQ NotImplementedException
问题描述
我正在努力浏览Patrice Pelland撰写的《 Build a Program Now Visual C#2008 Express Edition》一书.我在第8章中,这是一个小型数据库应用程序,我被困在尝试使下面的代码正常工作的过程中.这两个搜索按钮单击事件都会在单击代码的最后一行中引发NotImplementedException.我已经在论坛,MSDN,Google等中进行了艰苦的搜索,但找不到任何有用的信息.感谢您的帮助! 私人
{
var filterByMake = 来自 列表 in 此 .carTrackerDataSet.Listing
加入 制作 中 此 .carTrackerDataSet.Make
Listing.MakeID 等于 Make.MakeID
其中 (Make.MakeName .ToLower().包含(makeToolStripTextBox.Text.ToLower()))
选择 列表; >
}
私有 无效 fillByCarTypeToolStripButton_Click( 对象 发件人 EventArgs e)
{
var filterByCarType = 来自 列表 in 此 .carTrackerDataSet.Listing
join CarType 中 此 .carTrackerDataSet.CarType
Listing.CarTypeID 等于 CarType.CarTypeID
其中 (CarType.CarTypeName .ToLower().包含(cartypeToolStripTextBox.Text.ToLower()))
选择 列表; >
{
尝试在您的项目中搜索"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
{
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屋!