开发者

entity framework & web forms

I 开发者_开发百科have no experience with the entity framework and web forms... So far I've created the DB and the entity model in .net.

Now I have to create a form that inserts data into one of the tables of the DB. Is there a way to autogenerate the form using the entity model like in MVC?

EDIT: Also, is it possible to reference the field names of the database (eg. ProductId, Name,...) so I don't have to hardcode them in the form?

Cheers


The simplest way is to add DetailView control + EntityDataSource control and let the view autogenerate fields for you but it will make them all editable.


You could consider using Dynamic Data for ASP .NET. Check out the following;

http://www.dotnetcurry.com/ShowArticle.aspx?ID=232

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜