ado.net entitydata模型 [英] ado.net entitydata model
本文介绍了ado.net entitydata模型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hi
i有一个网站,当我添加ado.net entitydata模型时,设计师不完整,并且没有任何类。名称是my_dbentities,当我添加此代码时:
my_dbentities c = new my_dbentities()
c.table1.addobject中没有addobject
精灵中我错了什么?
请帮帮我。
非常感谢
hi
i have a website,when i add an "ado.net entitydata model",the designer is not complete and there is not any classes in this.the name is my_dbentities,and when i add this code:
my_dbentities c=new my_dbentities()
there is not addobject in c.table1.addobject
what do i wrong in wizard?
please help me.
thanks alot
推荐答案
您是否选择了必须包含在模型中的DataBase对象(Tables)?
尝试使用实体数据模型向导。
参考
http://www.asp.net/web-forms/tutorials/getting-开始使用-ff / the-entity-framework-and-aspnet-getting-started-part-1 [ ^ ]
http://msdn.microsoft.com/en-us/library/vstudio /bb738677(v=vs.100).aspx [ ^ ]
Have you selected the DataBase objects ( Tables) which has to include in the Model?
Try with Entity Data Model Wizard .
Refer
http://www.asp.net/web-forms/tutorials/getting-started-with-ef/the-entity-framework-and-aspnet-getting-started-part-1[^]
http://msdn.microsoft.com/en-us/library/vstudio/bb738677(v=vs.100).aspx[^]
这篇关于ado.net entitydata模型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文