efcore.pg icon indicating copy to clipboard operation
efcore.pg copied to clipboard

Can't map array to List<T>

Open z-tc opened this issue 8 years ago • 1 comments

Regarding closed issue https://github.com/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/issues/266, I tried 2.1.0-rc1 - encountered blocking scaffolding problem. When i tried to install unstable version from nuget, i got error from PM:

Install-Package : NU1102: Unable to find package Microsoft.EntityFrameworkCore with version (>= 2.1.0-rtm-30736)

  • Found 25 version(s) in nuget.org [ Nearest version: 2.1.0-rc1-final ]
  • Found 0 version(s) in Microsoft Visual Studio Offline Packages At line:1 char:1
  • Install-Package Npgsql.EntityFrameworkCore.PostgreSQL -Version 2.1.0- ...
  •   + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
      + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
    
    

Install-Package : NU1102: Unable to find package Microsoft.EntityFrameworkCore.Abstractions with version (>= 2.1.0-rtm-30736)

  • Found 2 version(s) in nuget.org [ Nearest version: 2.1.0-rc1-final ]
  • Found 0 version(s) in Microsoft Visual Studio Offline Packages At line:1 char:1
  • Install-Package Npgsql.EntityFrameworkCore.PostgreSQL -Version 2.1.0- ...
  •   + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
      + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
    
    

Install-Package : NU1102: Unable to find package Microsoft.EntityFrameworkCore.Relational with version (>= 2.1.0-rtm-30736)

  • Found 25 version(s) in nuget.org [ Nearest version: 2.1.0-rc1-final ]
  • Found 0 version(s) in Microsoft Visual Studio Offline Packages At line:1 char:1
  • Install-Package Npgsql.EntityFrameworkCore.PostgreSQL -Version 2.1.0- ...
  •   + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
      + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
    
    

Install-Package : Package restore failed. Rolling back package changes for 'PodunavljeHR'. At line:1 char:1

  • Install-Package Npgsql.EntityFrameworkCore.PostgreSQL -Version 2.1.0- ...
  •   + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
      + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
    
    

At least for me, still not possible to map array from db to List, or maybe there is few more steps in between to set up environment to work with this unstable version?

z-tc avatar May 18 '18 06:05 z-tc

I intend to release an rc2 soon, which should make everything much easier.

If you want to use the unstable packages from the myget feed, you also need to add the myget feeds for .NET Core daily builds. Try dropping the following in your NuGet.Config:

<add key="DotnetCore" value="https://dotnet.myget.org/f/dotnet-core" />
<add key="AspNetCoreDev" value="https://dotnet.myget.org/f/aspnetcore-dev" />
<add key="NpgsqlUnstable" value="https://www.myget.org/F/npgsql-unstable/api/v3/index.json" />

roji avatar May 18 '18 07:05 roji