Search code examples
.netentity-frameworkvisual-studiodatasource

Entity Framework generated classes not appearing in Data Sources wizard


I have successfully generated EF classes for a remote MySQL database, with a resulting .edmxobject that contains the Context and table-associated C# classes.

I built the application and tried to add the EF classes as object data sources, but the wizard only displays the Properties namespace and its contents.

DataSourceWizard

The same happens when I tried writing a static property that uses the generated classes. The data source wizard doesn't display any other namespace.

What am I missing? Thanks.


Solution

  • Apparently there's a bug in Visual Studio. I reverted to .NET framework 4.5.2 from 4.6 and the data sources reappeared.