Click here to Skip to main content
15,902,777 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hai

This is Tarun

I want to do CRUD Operations in Windows Forms Using Entity Framework.

Would you please tell me how to do this.

I already tried this article Entity Framework in WinForms[^] But Here It did n't enable entitydatasource control in this.

Kindly Reply me
Posted
Updated 29-Jan-15 0:10am

1 solution

Install "EF Tools for appropriate Visual Studio version.

Follow this link http://dev.mysql.com/doc/connector-net/en/connector-net-tutorials-entity-framework-winform-data-source.html[^]
 
Share this answer
 
Comments
TarunKumarSusarapu 28-Jan-15 2:31am    
Thank you for your information I already tried this but i want to do crud operations using EntityDataSource Control.
Atish K. Singh 28-Jan-15 4:33am    
Download the sample. You will get 2 projects;
1. Sample
2. EF6Winforms

Add the reference of ef6winforms in your project. After adding you will be able to see EF6WinformComponents in the Toolbox. Add EntityDataSource in your winform and follow the steps provided in the article.

It is working fine for me.
TarunKumarSusarapu 28-Jan-15 5:01am    
K Its Working Thank you for your information.But They have created classes for entity datasource and navigator.I want to take from toolbox by default.How to enable that in toolbox.
Atish K. Singh 28-Jan-15 5:06am    
Those are user controls. EntityDataSource is available only for ASP .net as Nuget package. It is not for Winforms.
What is the problem using the given solution? Can you please elaborate?
TarunKumarSusarapu 28-Jan-15 5:35am    
Sorry to disturb you. I added Entity Data Source control to toolbox in my project. I have taken that into form but it is showing only none not showing any datasource in property ObjectContextType in EntityDataSource Control Properties.Can u Please solve this

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