How do set up PostgreSQL + entity framweork? - c#

The npgsql ado.net provider claims to support the entity framework.
Is there any documentation/guide how to set this up, and get me jump started here ?

Look at this stackoveflow question
Entity framework PostgreSQL
You may have more luck using NHibernate with NHibernate Linq with PostgreSQL

Related

Read and write to Access DB with C#

I am making a very basic program for a friend of mine that will need a very basic DataBase. I will have about 3 tables at max, I was wondering if it is possible to use access database files easily in C# just like a normal SQL database and if so how? I have seen some tutorials using OLEDB but none really give me a clear way to do things.
It doesn't really go with the Access need but i throw this answer based on the OPs' intention to digg into SQLite.
So i would go for SQLite for its simplicity and efficiency.
See these posts on a very fast and easy way to work with SQLite and Entity Framework:
GETTING STARTED, USING SQLITE WITH .NET
USING SQLITE WITH ENTITY FRAMEWORK 6 AND THE REPOSITORY PATTERN
SQLITE WITH ENTITY FRAMEWORK CODE FIRST AND MIGRATION
Entity Framework 5 on SQLite
Portable databases (II): using SQLite with Entity Framework

Linq-Sql Oracale object relational data type, is it possible?

I have recently been trying to set up a .Net application which will connect to an oracle database using object relational data types, I would like to do this using the Linq-Sql framework, however when using tools such as DbLinq it does not seem to allow for the object relational data type.
So I was wondering if anyone knows a way to do this?
Thanks,
Alex.
Oracle has been working on, and is now beta-testing, their Entity Framework provider:
ODAC Entity Framework and LINQ Beta has arrived! Itincludes support for Entity Framework, LINQ to Entities, Model-First, Entity Data Model Wizard, and more.
They've even posted a tutorial using Model-First development.
According to their statement of direction, they plan to have this production-ready sometime in 2011.
I've been meaning to test this out but I haven't had the need to in any current projects. It's a shame -- a year or so back I would have really appreciated this ;-)
Let me know how it is!

Show Entity Framework generated SQL for Insert / Update

Is it possible, from code, to see the generated SQL for an insert/update ?
I need it by code because I am using a database that does not permit to show SQL queries.
Get a demo of the entity framework profiler
Entity Framework Profiler
http://efprof.com/
Maybe this might be of help..
http://blog.cincura.net/227674-how-to-show-sql-command-created-by-entity-framework/
This question may well help you as well...
Best way to show the SQL trace of a LINQ query to Entity Framework 3.5

Fluent Entity Framework Mapping

Is there any way to perform Fluent EF Mapping like Fluent NHibernate for NHibernate ?
Entity Framework v4.0 introduces the Code Only concept which is really close to Fluent NHibernate. More information is available here and here in the ADO.NET team blog

How do I use an Embedded database with the Entity framework?

I was wondering about the use of the .NET entity framework with an embedded database solution. Right now, I only use the EF with SQL Server but for a new project I'm looking for alternate solutions. SQL Server Compact would be one solution, but are there other alternatives that I can use with EF? Preferably solutions that don't require complex installations?
The actual (although not the full one) list of ADO.NET Entity Framework providers is available here.
There is a couple of providers supporting Embedded MySQL - dotConnect for MySQL and MySQL Connector/NET and SQLite - dotConnect for SQLite and System.Data.SQLite.
If there is an EF provider for the embedded database, you should be able to plug it right into EF. Check with your embedded database provider to see if they have support for EF.
Third Party Provider Support for the Entity Frameworkhttp://blogs.msdn.com/adonet/archive/2008/08/11/third-party-provider-support-for-the-entity-framework-rtm.aspx

Categories

Resources