fknx / linqpad-postgresql-driver

LINQPad PostgreSQL Driver
MIT License
43 stars 17 forks source link

Update to latest version of ngpsql #26

Closed idvorkin closed 7 years ago

idvorkin commented 7 years ago

I need to use linqpad with redshift. Support for Redshift is in recent versions of ngpsql, which (I believe) have not been imported into linqpad-postgresql-driver.

I started making the changes in my PR, but I don't know how to:

1) Run the tests (looks like I need to setup a local DB) 2) Test in linqpad (do i need to generate a lpx file??)

I'm happy if you fix, but can make the changes myself with your support.

teejay-87 commented 7 years ago
  1. Honestly, I didn't ever run unit tests. And even more honestly, I needed code to work, not to pass unit tests.
  2. No, the main Visual Studio project already copy the necessary files in the correct place: xcopy "$(ProjectDir)$(OutDir)*.*" "%LOCALAPPDATA%\LINQPad\Drivers\DataContext\4.6\DynamicLinqPadPostgreSqlDriver (b79463f4d947ddea)\" /y /u Once you compiled sources, open (or restart) LinqPad and you will find PostgreSQL (LINQ to DB) driver in the Add connection window.
idvorkin commented 7 years ago

:) on point 1.

Hymn, when I switched computers, building stopped working (I have LINQPAD_HOME set correctly). I'm getting the error:

c:\gits\flpd\DynamicLinqPadPostgreSqlDriver.sln" (default target) (1) ->
"c:\gits\flpd\DynamicLinqPadPostgreSqlDriver\DynamicLinqPadPostgreSqlDriver.csproj" (default target) (2) ->
"c:\gits\flpd\DynamicLinqPadPostgreSqlDriver.Shared\DynamicLinqPadPostgreSqlDriver.Shared.csproj" (default target) (3:2) ->
(_HandlePackageFileConflicts target) ->
  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.ConflictResolution.targets(30,5): error MSB4018:
The "ResolvePackageFileConflicts" task failed unexpectedly.\r [c:\gits\flpd\DynamicLinqPadPostgreSqlDriver.Shared\DynamicLinqPadPostgreSqlDriver.Shared.csproj]
teejay-87 commented 7 years ago

Sorry for being late. Honestly, I can't help with your error.

fknx commented 7 years ago

Hi, I don't know what is causing the error, but I've updated Npgsql to version 3.2.5, so feel free to download the newest version of the driver :)

idvorkin commented 7 years ago

Hooray - Thanks!!

On Sun, Nov 5, 2017 at 11:05 AM, Frederik Knust notifications@github.com wrote:

Closed #26 https://github.com/fknx/linqpad-postgresql-driver/issues/26.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fknx/linqpad-postgresql-driver/issues/26#event-1326618674, or mute the thread https://github.com/notifications/unsubscribe-auth/AARJlRtvEpKtb-6LJv9rAmEvwrSvIN8Pks5szgb5gaJpZM4QB9n1 .