Does not longer work with postgrsql for dotnet core : Npgsql 3.x removed support for ...
Does not longer work with postgrsql for dotnet core : Npgsql 3.x removed support for ...
magnus@greatlord.com
Posts: 16Questions: 6Answers: 0
in Bug reports
I am using DataTable.net editor for dotnet core with postgrsql
Npgsql 3.x removed support for writing a parameter with an IEnumerable value, use .ToList()/.ToArray() instead
This discussion has been closed.
Answers
Thank you - I wasn't aware of that. I've filed a bug internally so we get it fixed for the next release.
Allan
I've just been looking into this one and we actually use Npgsql 4.0.3 in our demo scripts and it appears to work okay.
You mention Npgsql 3, but 4.0 was released in 2018.
I realise this is an old post now, but using Npgsql 4.x should work no problem.
Allan
Hi sorry for late answers
<PackageReference Include="Dapper" Version="2.0.35" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="Npgsql" Version="4.1.3.1" />
<PackageReference Include="OrchardCore.Localization.Core" Version="1.0.0-rc1-10004" />
<PackageReference Include="Tortuga.Chain.PostgreSql" Version="3.3.2" />
as u can see I am using Npgsql and postgrsql 12, under debian 10
and datatable library 1.9.0 to 1.9.3 gives me follow error
Npgsql 3.x removed support for writing a parameter with an IEnumerable value, use .ToList()/.ToArray() instead
<
script>
jQuery(document).ready(function ($) {
the c# part
[Authorize(Roles = "Super Adminstrators")]
[Route("restapi/backend/GetUsers")]
[HttpGet]
[HttpPost]
public ActionResult GetUsers()
{
If you add
.TryCatch(false)
just before the.Process(...)
call does it tell you what line the error is happening on? Or is this a compile time error? In which case, does the compiler tell you the error?I don't understand why this would be happening unless Tortuga.Chain.PostgreSql is pulling in an old version?
Allan