System.NotImplementedException on一个简单的Linq查询和绑定源更新 [英] System.NotImplementedException on A simple Linq Query and binding source update

查看:45
本文介绍了System.NotImplementedException on一个简单的Linq查询和绑定源更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

非常简单的问题我确定。运行一个简单的linq查询,然后从中更新绑定源的数据源属性

Really simple question I'm sure. Running a simple linq query then updating a binding source's datasource property from it




代码片段

推荐答案

您好

你对这个问题有什么答案吗?

Did you get any answer to this question?

我的问题完全相同。

我已经下载了Visual C#2008 Express Edition SP1,可在Microsoft网站上找到,注册并获得了"立即构建程序"一书!用例子。

I've downloaded Visual C# 2008 Express Edition with SP1, available on the Microsoft website, registered and got the book Build a Program Now! with the examples.

我在本书中构建了Car Tracker应用程序,但部分

I built the Car Tracker application in this book, but the part

私人 void tsbFilterByMake_Click( object sender, EventArgs e)

private void tsbFilterByMake_Click(object sender, EventArgs e)

{

var filterByMake = from 列出 in < font size = 2> this .carTrackerDataSet.Listing

var filterByMake = from Listing in this.carTrackerDataSet.Listing

join in this .carTrackerDataSet.Make

join Make in this.carTrackerDataSet.Make

on Listing.Make ID equals Make.MakeID

on Listing.MakeID equals Make.MakeID

其中 (Make.MakeName.ToLower()。包含(tstbFilterByMake.Text.ToLower()))

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

选择 列出;

select Listing;

this .listingBindingSource.DataSource = filterByMake;

this.listingBindingSource.DataSource = filterByMake;

}

sends me a System.NotImplementedException when it runs on the

.listingBindingSource.DataSource = filterByMake;

this.listingBindingSource.DataSource = filterByMake;

行。从Microsoft网站下载的代码也会发生这种情况。

line. This happens also with the code downloaded from the Microsoft website.

谢谢,


这篇关于System.NotImplementedException on一个简单的Linq查询和绑定源更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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