模式mvvm和实体框架 [英] Pattern mvvm and Entity Framework

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

问题描述

我想知道如何使用实体框架将数据添加到数据库

我的代码Xaml:

< Label Content =Code Client/> ;

< Label Content =Adresse/>

< Label Content =Tel>

< textbox text ={Binding CClient}name =TxtCClient/>

< textbox text ={Binding Adresse}name =TxtAdress/>

< textbox text ={Binding RaisonSocial}name =TxtRaisonSocial/>

< Button Content =AjouterCommand ={Binding ajouter}/>

如何绑定数据并将其添加到基地!

我应该做什么之后!

Hi,I want to know how to add data to a database using entity framework
my code Xaml :
<Label Content="Code Client"/>
<Label Content="Adresse"/>
<Label Content="Tel">
<textbox text="{Binding CClient}" name="TxtCClient"/>
<textbox text="{Binding Adresse}" name="TxtAdress"/>
<textbox text="{Binding RaisonSocial}" name="TxtRaisonSocial"/>
<Button Content="Ajouter" Command="{Binding ajouter}"/>
How to bind data and added it to the base !
After what I should do!

推荐答案

嘿朋友。

请先阅读本文。这将为您提供有关实体框架的基本概念 -



绝对初学者实体框架简介 [ ^ ]


我在这里找到了一个很棒的WPF(XAML)样本和带有MVVM模型的EF,

http://waf.codeplex.com/。希望它对你有所帮助。
I found a great sample of WPF(XAML) and EF with MVVM model here,
http://waf.codeplex.com/. Hope it will be helpful to you.


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

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