Can't perform Create, Update or Delete operations on 'Table(@TableName)' because it is read-only.

原创 2007年10月07日 10:54:00

今天在应用Linq,在添加数据,出现了一个error:

Can't perform Create, Update or Delete operations on 'Table(@TableName)' because it is read-only.

上以的"@TableName" 是你在动作时的表名。

我在网站找过许多网站,很多人都有出现过这error,看来这个是常例错误,但一直没有找到解决的答案。

一时找不到问题的所在,所以我把xxxDataClasses.dbml文件删除,再重新新建一个。

Error既然消除,程式能正常Run了。

 

版权声明:本文为博主原创文章,未经博主允许不得转载。

If I have been able to see further, it was only because I stood on the shoulders of giants.

Quite elegant languages: to learn, to write an essay . As love... 我不知道在别人看来,我是什么样的人;但在我自己看来,我...

Oracle与jdbc增删改查CRUD(Create-Read-Update-Delete)

一、创建oracle数据库用户并建表,插入测试数据 1.启动oracle监听程序并连接oracle数据库的服务 打开我的电脑--管理--服务和应用程序--服务,找到服务 OracleOraDb1...

The MySQL server is running with the --read-only option so it cannot execute this statement

1、错误描述Caused by: java.sql.SQLException: The MySQL server is running with the --read-only option so i...

Caused by: java.sql.SQLException: The MySQL server is running with the --read-only option so it cann

1、错误描述### Cause: java.sql.SQLException: The MySQL server is running with the --read-only option so i...

Error 'Table './csf/tmp_excel_data' is marked as crashed and should be repaired' on opening tables

主从同步出错了,从库里面的show slave status中报错如下: Error 'Table './csf/tmp_excel_data' is marked as crashed and s...

3.数据库操作相关术语,Oracle认证,insert into,批量插入,update tablename set,delete和truncate的区别,sql文件导入

1相关术语 语句 含义 操作 DML语句 (Data Manipulation Language) 数据库操作语言 insert up...

安装ActiveX控件时,提示控件未验证:Windows has blocked this software because it can't verify the publisher

连公司SSL VPN访问内网的服务器,浏览器输入ssl.xxxxx.com,输入邮箱帐号登录,安装ActiveX控件时失败, 错误关键字:Windows has blocked this softw...
  • csdsxsx
  • csdsxsx
  • 2013年04月21日 15:00
  • 2027

Transaction rolled back because it has been marked as rollback-only

http://hsyd.iteye.com/blog/586772 错误信息: Transaction rolled back because it has been marked as rollb...

operations are not allowed in read-only mode

operations are not allowed in read-only mode   org.springframework.dao.InvalidDataAccessApiUsa...
  • lzxvip
  • lzxvip
  • 2012年06月27日 18:04
  • 473
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:Can't perform Create, Update or Delete operations on 'Table(@TableName)' because it is read-only.
举报原因:
原因补充:

(最多只允许输入30个字)