savechanges()不可用为什么?请帮忙 [英] savechanges() is not available why? Please help

查看:209
本文介绍了savechanges()不可用为什么?请帮忙的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我创建了ASP.NETproject和一个DAL项目。在DAL中,我添加了新的EDM prject,它向我显示了所有表及其属性,而不是savechanges()方法。你能帮我解释为什么它没有显示这种方法吗?

感谢,


软件工程师

解决方案

< blockquote>究竟什么不显示方法? 它应该是ObjectContext的实例方法。

表格(我认为你的意思是实体)没有SaveChanges方法。


Hi all,

I created ASP.NETproject and a DAL project. In DAL I added new EDM prject and its showing me all the tables and their properties axcept the savechanges() method. Can you help me why it's not showing this method?

thanks,


Software Engineer

解决方案

What exactly is not showing the method?  It should be an instance method of an ObjectContext.

The tables (I think you mean Entities) do not have a SaveChanges method.


这篇关于savechanges()不可用为什么?请帮忙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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