Question

I have used code first method before, but somehow I could not think of a way in making my Code First works. I have developed the POCO and DbContext. But now I am stuck on how to get the database created and subsequently used in my application. Do I need to add something in the project?

Was it helpful?

Solution

Currently default provider System.Data.SQLite doesn't support database creation. To have ability to create database programatically from your POCO model objects you need to consider to use for example Devart's SQLite provide. But this is paid solution.

For more information see answer for the following stack overflow question.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top