Click here to Skip to main content
16,016,076 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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!
Posted
Updated 3-Feb-14 22:45pm
v2

Hey Friend.
Please read this article first. This will give you basic idea about Entity Framework -

An Introduction to Entity Framework for Absolute Beginners[^]
 
Share this answer
 
v3
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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900