[英]What do I need to reference to access CustomTextParagraphProperties?
[英]What do I need to reference here?
我使用ADO.NET實體框架用C#編寫了這段代碼。
我在這里發現錯誤
var departmentQuery = from d in schoolContext.Departments.Include("courses")
orderby d.Name // here
select d;
錯誤消息如下所示:
Cannot convert lambda expression to type 'string' because it is not a delegate type
我正在按照這篇文章做
http://msdn.microsoft.com/zh-CN/library/bb386884.aspx
請指出我需要修改什么?
提前致謝!
最好的問候,RedsDevils
確保代碼中使用了System.Linq 。 如果您無法在智能中找到它,請在項目中為其添加參考。
我的代碼和示例之間唯一的區別是,“課程”中有一個小的“ c”。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.