Good day! While working with EF and WinForms, it was difficult to add the Entity Data Source element.

enter image description here

I connected to ADO.NET EDM using Code First. And standard type operations:

db.Tools.Load(); dataGridView1.DataSource = db.Tools.Local.ToBindingList(); 

are performed.

  • there was a difficulty when adding the Entity Data Source element - so, and then what? What is the difficulty? What is the essence of the question? - Denis Bubnov
  • Maybe it makes sense to read some manuals, if you have a description of the reason on the screenshot ? I do not think that in the tooltip it is just written about ADO.NET . - Denis Bubnov
  • @DenisBubnov, thanks for the advice! But I did, before asking a question. I installed DynamicData and EntityDataSource , but I still can't add a component. Also it is impossible to add a link to this library. - Tibomso
  • If possible, I will try to reproduce your problem if the question is relevant. But so that I do not ask additional questions, make a clarifying edit in the question. What are you doing in steps and what did not work out? Then it will be easier to answer. As I understand it, I cannot create a WinForms project and add an EntityDataSource to it. - Denis Bubnov
  • Also, there is the question of whether you have the 'ADO.NET Entity Data Model' and how well you are doing everything. Why am I doing this? Why, that's what: Entity Framework in WinForms is very detailed. You can understand, albeit in English. Just based on your question, it is not at all clear what exactly you have and how you do it. - Denis Bubnov

0