在WPF应用程序中使用实体框架进行插入,删除和更新 [英] Insertion,Deletion And Updation Using Entity Frame Work In WPF Application

查看:101
本文介绍了在WPF应用程序中使用实体框架进行插入,删除和更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是实体框架新手.我正在尝试使用实体框架工作来开发我的第一个wpf应用程序.我不知道如何在WPF应用程序中使用实体框架工作来插入,删除和更新数据.我正在使用ado.net数据模型来绑定控件.

I am new on entity frame work. I am trying to developing my first wpf application using entity frame work. i don''t know how can i insert,delete and update data using entity frame work in wpf application. I am using ado.net data model for binding the controls.

推荐答案

如果您使用的是EF,则只需从绑定的集合中添加,更改或删除对象到数据库包装实例,然后调用SaveChanges保存所做的所有更改.
If you''re using EF, you just add, change or delete objects from the collections tied to your database wrapper instance, then call SaveChanges to save all changes you''ve made.


本文介绍了如何使用实体框架执行基本的CRUD操作.它包含启动和运行应用程序所需的一切.

绝对初学者实体框架简介 [ ^ ]
This article explains how to perform basic CRUD operations using entity framework. It contains everything you need to get your application up and running.

An Introduction to Entity Framework for Absolute Beginners[^]


这篇关于在WPF应用程序中使用实体框架进行插入,删除和更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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