Re: Asp.net 5 and EF6

From: Arjen Nienhuis <a(dot)g(dot)nienhuis(at)gmail(dot)com>
To: "FarjadFarid(ChkNet)" <farjad(dot)farid(at)checknetworks(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Asp.net 5 and EF6
Date: 2016-02-06 16:53:17
Message-ID: CAG6W84JaE1+4sSprZmPwFEJFuPwUJ5NLr24dSPnEOsYPQHxv1w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Feb 4, 2016 at 5:46 PM, FarjadFarid(ChkNet)
<farjad(dot)farid(at)checknetworks(dot)com> wrote:
>
>
> Hi I am trying to use certain features of Asp.net 5 using postgresql using
> EF6.
>

I think you can use EF6, but not with .NET Core. It's possible to use
Aap.net 5 without .NET Core.

>
>
> I have downloaded the latest unstable version of npgsql and tried to connect
> to my db.

I think you can use the stable version. EF6 support is very stable.

>
> But no luck.
>
>
>
> I have posted a request to stackoverflow.com but haven’t had any response at
> all.
>
>
>
> It is easy to connect to Sql Server using EF6 under asp.net 5.
>
>
>
> So I would have thought as an interim measure until EF7 is ready which will
> be quite some time to come,
>
> it should be possible to connect to postgresql using EF6.
>
>
>
> Any ideas how?
>

Just use this dependency in your project.json and "restore packages":

"dependencies": {
"EntityFramework6.Npgsql": "3.0.5",
...
}

The rest should be exactly the same as with SQL server.

>
>
> Many thanks.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alex Magnum 2016-02-06 22:21:23 Cannot install Extention plperl in 9.5
Previous Message Peter J. Holzer 2016-02-06 13:42:45 Re: strange sql behavior