使用copytodatatable方法 [英] using of copytodatatable method

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

问题描述

我使用了此链接 http://msdn.microsoft.com/en-us/library/bb386921 [ ^ ]以使用copytodatatable方法.我在CustomLINQtoDataSetMethods.内部的copytodatatable方法遇到错误,它说:

i used this link http://msdn.microsoft.com/en-us/library/bb386921[^] to use the copytodatatable method .I am getting an error at the copytodatatable method inside the CustomLINQtoDataSetMethods.it is saying that:

Extension method must be defined inside the top level static class

推荐答案

如此处http://msdn.microsoft.com/zh-CN/library/bb384228(v=vs.90) .aspx [ ^ ]当定义扩展方法的类是嵌套类时,会产生上述错误.因此,请检查您的课程并使其成为顶级静态课程.
As explained here http://msdn.microsoft.com/en-us/library/bb384228(v=vs.90).aspx[^] the above error is generated when the class in which extension methods are defined is a nested class. So please check your class and make it top level static class.


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

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