多个项目未保存到我的数据库中 [英] Multiple items Are not saving into my database

查看:82
本文介绍了多个项目未保存到我的数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我正在开发一个asp.net mvc3应用程序.我创建了具有ID,名称,持续时间,培训年份,注释字段的表,并且当我以正在更新的形式提供值时,我使用名称,持续时间,培训年份,注释设计了表格在ID为0的数据库中.当我以表单的形式添加另一个值时,它不会更新.当同一项目在另一个系统上运行时,它正在使用默认值.这是系统的问题.能否告诉我解决方案请

问候
Prasanna

Helo,

Iam developing an asp.net mvc3 application.I created the table with fields id,name ,duration,training year,comments and i designed the form with name,duration,training year,comments when i give the values in the form it is updating in the database with id 0.When i add another values in the form it is not updating.When the same project is running on another system it is taking default values.So is this is the problem with the system .Can u tell me the solution please

Regards
Prasanna

推荐答案

检查ID列的身份专用性(身份应为Yes)
Check your ID column''s Identity Spefication (Is identity should be Yes)


这篇关于多个项目未保存到我的数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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