What's a good local database with Entity Framework - entity-framework

What would be a good choice for a local database to use with Entity Framework for an WPF application that needs local database.
I dont want to use MSSQL Server cos that'd be an overkill and or MSSQL CE cos few days back I was using SQL CE 3.5 and had all sorts of issues of it not supporting server generated IDs.
I've read MS Access has issues as well. and dont want to use SQLite either.
TIA

SQL Server Express sounds a good fit to me.

What about MySQL Embedded?
You can use either EF provider by Devart (it is a part of dotConnect for MySQL Professional), or the provider integrated into MySQL Connector /NET.

Related

Executing raw SQL using EntityFrameworkCore and SQLite on .NET Core

I am working on some security illustrations and therefore need to purposefully write insecure SQL queries.
The environment I am looking at is .NET Core (not full .NET), the driver used is EntityFrameworkCore and the database type is SQLite.
Regular connections using the built in lookup and query functions work without any issue. However there seems to be no function that would allow me to execute a raw SQL statement.
Several online resources recommend using the .FromSql() and .SqlQuery() methods on the database / context, but neither of these methods seems to exist in the .NET Core driver.
Is there any way to execute a raw SQL query in this setting?
As pointed at comment:
Check if there is Microsoft.EntityFrameworkCore.Relational reference on your project references(if you use sqllite it should be in the Microsoft.EntityFrameworkCore.Sqlite reference).
You could use the Nuget Package:
Microsoft.EntityFrameworkCore.Sqlite
and
db.Database.ExecuteSqlCommand("YOUR SQLITE SQL COMMAND");
where db is an instance of a class derived from DbContext

SQLite or SQL Server CE for Entity Framework migrations?

I'm starting a project and I will need to use the migrations provided by Entity Framework 6.
I found that SQLite does not have support for migrations.
SQL Server CE is the better option if I need to use the code-first migrations, or do I have other choices?
Remembering, I need a self-contained database engine.
No other choices, as far as I know

Entity Framework and ODBC

I have been working with Entity Framework with Microsoft SQL Server (via SqlClient) and recently required to connect to an external database via ODBC connection.
Here are my questions:
Is EF on ODBC doable?
IF yes, how? or If No, what other option if OBDC is a must.
Any sample EF on OBDC project for reference?
Thanks.

Connect EntityFramework to Lotus Notes

theoretically I should be able to connect EntityFramework to any Db I can access through ODBC drivers, is this correct? So if I use a library like the one mentioned at http://www.connectionstrings.com/lotus-notes it should be possible to connect EF to Lotus Notes?
I know this is something one should avoid ;) It's a one time only migration.
Theoretically yes, but I would look here for the latest driver:
https://www.ibm.com/developerworks/lotus/documentation/notessql/

How to Access Peachtree Database in Zend Framework?

I want to access Peachtree Database into Zend Framework. I have installed Zend Framework and Peachtree Premium Trial Version. Now I want to access the database of Peachtree into Zend Framework. Please provide some link or code to do the same.
According to its website, Peachtree uses the Pervasive PSQL embedded database.
To access Pervasive PSQL from PHP, one could try PHP's ODBC extension. This is the recommended connection solution mentioned on http://ww1.pervasive.com/developerzone/development_env/php.asp
Zend Framework tracked a feature request to implement an ODBC adapter for Zend_Db, chiefly to support Microsoft SQL Server. The hope was that this would also allow connecting to any RDBMS that had an ODBC driver.
But work on the ODBC adapter feature was abandoned after a specific Microsoft SQL Server adapter was written for Zend_Db, about July 2009.
So I don't think there is any path to integrate the Peachtree database with Zend Framework classes.