Entity框架入门 [英] Getting started with Entity framework

查看:88
本文介绍了Entity框架入门的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好先生,



我正在使用Entity框架并且是这个概念的新手。我创建了一个实体,说Contacts,其ID和NAME作为其属性。现在通过文本框在Web表单中,我获取属性的值。我想在按钮单击时将值添加到数据库中。我发现很难,在哪里为该实体编写方法并调用它。所以请建议一个解决方案。



谢谢和问候

Rajani

Hello Sir,

Am working with Entity framework and am new to this concept. I have created an entity, say "Contacts" which has ID and NAME as its property. Now in a web form through text boxes, am getting the values for the properties. I want to add the values into the database at the button click. Am finding it difficult, where to write the methods for that entity and also call it. So please suggest a solution.

Thanks & Regards
Rajani

推荐答案

我认为它可以帮到你。



绝对初学者实体框架简介 [ ^ ]
I think Its Help you better.

An Introduction to Entity Framework for Absolute Beginners[^]


点击这里.. !!

此链接提供使用LINQ连接数据库.. !!

:)...
Click Here..!!
This link provides to connect the database using LINQ..!!
:)...


这篇关于Entity框架入门的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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