MVC2中有关更新,编辑,删除选项的错误 [英] Errors in MVC2 regarding Update, Edit, Delete options

查看:70
本文介绍了MVC2中有关更新,编辑,删除选项的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿!



帮助我摆脱这些错误:

错误2

'系统.Data.Objects.ObjectSet< cruds.abc>'不包含'添加'的定义,也没有扩展方法'添加'



错误3

'CRUDs.CRUDsEntities'不包含'Entry'的定义,也没有扩展方法'Entry'



错误4

'System.Data.Objects.ObjectSet< cruds.abc>'不包含'Remove'的定义,也没有扩展方法'Remove'



THNKS! :)

解决方案

发布您的CRUDsEntityes问题,并且还提出您的观点


这些操作在MVC中不起作用版本(低于版本3)。所以尝试在MVC3或更高版本中使用它们,它们将正常工作。

(这些是你选择CRUD操作时自动生成的)



# HappyCoding!

Hey!

Help me in getting out of these errors:
Error 2
'System.Data.Objects.ObjectSet<cruds.abc>' does not contain a definition for 'Add' and no extension method 'Add'

Error 3
'CRUDs.CRUDsEntities' does not contain a definition for 'Entry' and no extension method 'Entry'

Error 4
'System.Data.Objects.ObjectSet<cruds.abc>' does not contain a definition for 'Remove' and no extension method 'Remove'

THNKS! :)

解决方案

post your CRUDsEntityes problem is ther and also put your view


These operations don't work in MVC lower version (Below version 3). So try using these in MVC3 or above, they will work fine.
(These are autogenerated when you do select CRUD operations)

#HappyCoding!


这篇关于MVC2中有关更新,编辑,删除选项的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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