Comments (11)
Hey Julie.
Not sure what is wrong, but I'm working on releasing Npgsql 3.1.0 and the EFCore provider, should be out in an hour or two! Hang on until then, I'll also try to run your test here before pushing to nuget.org
from efcore.pg.
So it's 3 hours later, 3AM over here and everything is finally released :/
No need for the npgsql-unstable feed, everything is on nuget.org. I did a test and managed to restore, build and run. I'm pretty sure netcoreapp1.0 requires you to depend on Microsoft.NETCore.App, here's what my project.json looks like:
"netcoreapp1.0": {
"imports": [
"dotnet5.6",
"dnxcore50",
"portable-net45+win8+wp8"
],
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.0.0-*",
"type": "platform"
}
}
}
Let me know if you run into any problems!
from efcore.pg.
Congratulations, @roji!!
You are awesome!!!
from efcore.pg.
Thanks @franciscojunior, let's see what people report though :)
from efcore.pg.
wow... I hope you have gone to bed! I got some wierd notfound errors on some of the dependencies but I don't think they were problematic for this package. I have some more migrating to do before I can run my sample and find out. :)
This is what I replaced the unstable myget source with:
from efcore.pg.
@julielerman you may want to totally clear your local nuget cache, you may be using some unstable rc3 packages which are already in there...
from efcore.pg.
given that I'm getting a stackoverflow when my app tries to open a connection to the postgresql db, I thought I would revisit the caching. I deleted the nuget.org cache folder and re-ran dotnet restore. Looks the same as last night. I cant judge if this is okay or not so sharing here:
log : Restoring packages for /Users/julialerman/Documents/MyEF7A/EF7WebAPI/src/project.json...
info : CACHE https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-cli/nuget/v3/flatcontainer/microsoft.netcore.dotnethostresolver/index.json
info : CACHE https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-core/nuget/v3/flatcontainer/microsoft.netcore.dotnethostresolver/index.json
info : CACHE https://myget-2e16.kxcdn.com/artifacts/aspnetvnext/nuget/v3/flatcontainer/microsoft.netcore.dotnethostresolver/index.json
info : CACHE https://www.myget.org/F/xunit/FindPackagesById()?id='Microsoft.NETCore.DotNetHostResolver'
info : GET https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-cli/nuget/v3/flatcontainer/npgsql.entityframeworkcore.postgresql/index.json
info : GET https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-core/nuget/v3/flatcontainer/npgsql.entityframeworkcore.postgresql/index.json
info : GET https://myget-2e16.kxcdn.com/artifacts/aspnetvnext/nuget/v3/flatcontainer/npgsql.entityframeworkcore.postgresql/index.json
info : CACHE https://www.myget.org/F/xunit/FindPackagesById()?id='Npgsql.EntityFrameworkCore.PostgreSQL'
info : GET https://api.nuget.org/v3-flatcontainer/microsoft.netcore.dotnethostresolver/index.json
info : GET https://api.nuget.org/v3-flatcontainer/npgsql.entityframeworkcore.postgresql/index.json
info : NotFound https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-core/nuget/v3/flatcontainer/npgsql.entityframeworkcore.postgresql/index.json 608ms
info : NotFound https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-cli/nuget/v3/flatcontainer/npgsql.entityframeworkcore.postgresql/index.json 663ms
info : OK https://api.nuget.org/v3-flatcontainer/microsoft.netcore.dotnethostresolver/index.json 342ms
info : CACHE https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-cli/nuget/v3/flatcontainer/microsoft.netcore.dotnethost/index.json
info : CACHE https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-core/nuget/v3/flatcontainer/microsoft.netcore.dotnethost/index.json
info : CACHE https://myget-2e16.kxcdn.com/artifacts/aspnetvnext/nuget/v3/flatcontainer/microsoft.netcore.dotnethost/index.json
info : CACHE https://www.myget.org/F/xunit/FindPackagesById()?id='Microsoft.NETCore.DotNetHost'
info : GET https://api.nuget.org/v3-flatcontainer/microsoft.netcore.dotnethost/index.json
info : OK https://api.nuget.org/v3-flatcontainer/npgsql.entityframeworkcore.postgresql/index.json 376ms
info : OK https://api.nuget.org/v3-flatcontainer/microsoft.netcore.dotnethost/index.json 242ms
info : NotFound https://myget-2e16.kxcdn.com/artifacts/aspnetvnext/nuget/v3/flatcontainer/npgsql.entityframeworkcore.postgresql/index.json 1070ms
from efcore.pg.
@julielerman I can see the aspnetvnext feed in there, that's not good - it probably means you're getting post-rc2 packages.
Here are some things to do:
- I'd make sure your application's NuGet.Config is clean - you should only getting stable packages from nuget.org.
- You've deleted the nuget HTTP cache, but try cleaing the package cache as well (%USERPROFILE%.nuget\packages).
- Make sure don't have old version of the runtime and tools themselves, delete %LOCALAPPDATA%\Microsoft\dotnet and uninstall anything undesirable in the Windows programs list.
- Finally, I'd also re-delete both the nuget HTTP cache as you've done before (%LOCALAPPDATA%\NuGet).
from efcore.pg.
oh! I see it. Guess I should have been more careful when copying someone else's nuget.config. Gonna go clean things up and restore again. FWIW, migrations seem to be connecting, so possibly the stackoverflow is from my code as I'm still trying to shift the sample from RC1 to RC2.
oh p.s. on a mac :)
from efcore.pg.
ahhh much better. Clean restore. Migrations are working. Now to get to the bottom of the stackoverflow when my app is opening the connection to the database ... totally different problem and I think a conflict with the old code and the new behavior. Just have to find the source... :)
THANKS and thanks for whipping the new provider up so quickly
Update: the stackoverflow was unrelated to the driver. Just coincidentally around the connection.
from efcore.pg.
Great! Give it hell and let me know if any problems.
from efcore.pg.
Related Issues (20)
- Scaffold generates integer[] as List<int> HOT 2
- Jsonb[] mapping not working HOT 5
- Injecting a DBContext with AddDbContext and UseNpgsql causes it to remain in memory after the scope has been disposed of HOT 6
- GenerateNonNullSqlLiteral not supported on NpgsqlRowValueTypeMapping after ef core 8 upgrade HOT 2
- migration on changed includedPropertyNames for IsGeneratedTsVectorColumn creates up/down code in wrong order
- "integer out of range" error when using date_part in where clause with another conditional HOT 1
- Writing values of 'NpgsqlTypes.NpgsqlRange`1[[System.TimeSpan, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]][]' is not supported for parameters having NpgsqlDbType '-2147483608'. HOT 3
- Error : ''failure to parse near offset 7489. expected an ascii digit,, when runing from EF core .Net 8 HOT 2
- Error : ''failure to parse near offset 7489. expected an ascii digit,, when runing from EF core .Net 8 HOT 5
- Feature Request: protect connection string literal in memory HOT 2
- Support value conversion with generated properties HOT 4
- Running simultaneous queries on different DbContext instances leads to `NpgsqlOperationInProgressException` HOT 3
- Map User Defined Function return table value with parameter timestamp without time zone HOT 3
- Cannot rename system column "xmin" HOT 3
- Reverse engineering for view does not preserve nullability of columns HOT 4
- ISSUE: A PostgreSQL type with the oid '0' was not found in the current database info HOT 1
- SQL translation error when using LEFT JOIN in `Where` HOT 6
- Upgrading INpgsqlArrayConverter to PrimitiveCollection
- EF.Functions support for json_array_length HOT 2
- Npgsql.PostgresException (0x80004005): 42883: function st_contains(deployment.geometry, deployment.geometry) does not exist HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from efcore.pg.