Why is compiler requesting reference to Entity Framework in User Interface project?
问题 I am trying to learn how to create a Winform C# app, that uses EF with repository pattern. From my understanding, UI layer should be independent from Entity Framework (it uses data through repository and it shouldn't care if there is an Entity framework or any other data provider), but compiler is showing and error if WinForms project is not having reference to Entity framework (when I add reference to EF, everything works fine) Error message No Entity Framework provider found for the ADO.NET