模式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.