How can I get Entity Framework to work with Unity

I have a database, I’m use to generating a data model using Entity Framework in asp.net mvc applications, we’re wanting to use this data model in our Unity 3d application.

However, every time we add EntityFramework.dll to our project and update Unity to reload project it gets removed saying that there are unclear class objects that are being referenced are we missing a using namespace statement.

What can I do to my Unity 3d project to use a ADO.Net Entity Data Model in my project?

You might want to check out SQLite, it works with Mono:

http://www.mono-project.com/docs/database-access/providers/sqlite/

@csfinch , were you ever able to figure this out?

I have gotten as far as using pdb2mdb.exe to convert my .NET 3.5 dll into an mdb that I’m having issues referencing within my Unity Script code.

Copy your EntityFramework.dll into your Assets folder in your project.

Hey @csfinch

There is a simple solution. Just need to install the package into the project. And the integration is done, then just use it as usual EntityFrameworkCore solution in .NET project.

I know it is too late. But hopefully it would help “the future” you or someone else who found this topic.