Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
156 views

I am just starting to learn about concurrent processing in EF Core to make consistent applications and I have some questions, Microsoft documentation says the following: using var context = new ...
Riyaz Vagapov's user avatar
1 vote
2 answers
292 views

Problem Statement I am using Entity Framework (EF) Core and PostgreSQL. In my target table, there is a JSONB column that might contain a version number. My goal is to sort the query by this version ...
Masoomian's user avatar
  • 752
1 vote
1 answer
633 views

I'm upgrading Npgsql from 7.0.11 to 8.0.2/8.0.3. There are a couple of types in PostgreSQL declared like this: CREATE TYPE my_type AS ENUM (...) In SQL, we try to insert or read these types like this:...
Nikita Kalimov's user avatar
2 votes
1 answer
986 views

I have a legacy Entity Framework application running on .NET Framework 4.8. Until recently, it connected well to Postgresql 11. Now we upgraded Postgresql to 16. We also upgraded the packages Npgsql, ...
LTR's user avatar
  • 1,402
1 vote
1 answer
116 views

I'm seeing strange load balancing behaviour when using Npgsql. I have one primary and three standby servers. As the primary can change (if it goes down and a standby is promoted), I've included all ...
Andy's user avatar
  • 7,866
1 vote
0 answers
92 views

Background I am currently writing the server-side application for an online turn-based in-browser game. I have set up a PostgreSQL database with a variety of tables within the default public schema ...
zai-turner's user avatar
0 votes
1 answer
95 views

I am currently migrating my .net application to PostgreSQL 15. Thus, I need to move all my tables from the public schema to a custom schema. My __EFMigrationHistory table, also needs to be moved to ...
MikeJ82's user avatar
  • 352
0 votes
1 answer
271 views

I have a table defined to have exactly one row, by using a boolean primary key and a unique constraint. The idea behind this was based on this post from ten years ago: One-Row by Brandstetter. This is ...
Joe Ballard's user avatar
1 vote
1 answer
76 views

I worked with EF Core and SQL Server using database first approach. It is Ok for me to use dotnet-ef CLI for reverse engineering both tables and views. It preserves nullability of select columns from ...
Nguyễn Kỳ Dương Trường's user avatar
0 votes
1 answer
631 views

I am running a service locally with existing migrations. When applying one of the migrations, I get an error 'column cannot be cast automatically to type bigint.' What could be the issue if the ...
fast3r9k's user avatar
0 votes
2 answers
2k views

How can I query the Employees and Holidays collections so that even if no holidays are found matching their specified criteria, the employees matching their criteria are still returned? Entities: ...
devklick's user avatar
  • 2,698
1 vote
0 answers
970 views

I have the following type definition and function that consumes it: create type my_type as ( id bigint, value character varying(100) ); create or replace function my_function ( my_array ...
Bagus Tesa's user avatar
  • 1,715
0 votes
1 answer
137 views

I'm using C# Npgsql library to make some calls and operations into a PostgreSQL Database (the one from Supabase). I know that Supabase has it's own SDK, but I can't use it. So far so good all my ...
Lotan's user avatar
  • 4,313
0 votes
1 answer
111 views

In an ASP.NET Core 8 Web API, I need to store a C# DateOnly entity property in a PostgreSQL text column after encrypting using Npgsql.EntityFrameworkCore.PostgreSQL (8.0.2) and EntityFrameworkCore....
dwdjo's user avatar
  • 11
1 vote
2 answers
507 views

I’m trying to send a (very) long query to a PostGreSQL V15 Database using NPGSQL with a code that look like that : string Connection_string = "Host=--:5432;Username=postgres;Password=--;Database=-...
Ced_90's user avatar
  • 11
1 vote
1 answer
695 views

I need to connect powerquery to a postgres database in order to clean and have automated access to the data for excel reports. I've tried: Get Data - From Database - From PostgreSQL database This ...
Jack Shone's user avatar
0 votes
1 answer
444 views

We have migrated from Npgsql 5 to version 8, and now query from the example below is returning time in UTC, whereas previously it returned local time. The SQL function Now itself returns "...
Viliam's user avatar
  • 788
1 vote
1 answer
470 views

I am in the process of setting up full text search on a PostgresSql table, and I am using Entity Framework Core. I have followed the instructions here to set up the generated tsvector column and ...
Dan O'Leary's user avatar
  • 2,892
0 votes
1 answer
531 views

I am trying to migrate a previously nullable json column to a non-nullable column in EF Core using a PostgreSQL 16 database. The generated MigrationBuilder fragment looks like this: migrationBuilder....
fwinterl's user avatar
  • 105
0 votes
0 answers
273 views

We are using Npgsql to access a Postgres database. We recently upgrade Npgsql from 7.0.4 to 8.0.1 and since then we are experiencing irregular problems when calling stored procedures that take arrays ...
Linda's user avatar
  • 1
1 vote
2 answers
3k views

I'm trying to enable my application to be able to use SQL Server or Postgresql. My application is using Npgsql.EntityFrameworkCore.PostgreSQL version 8 and EF Core version 8.01. When I am using ...
LanceM's user avatar
  • 2,008
0 votes
1 answer
438 views

I'm trying to create a .Net and Postgresql's docker container, but it throws the error when I started to build: 8.578 System.ArgumentException: Host can't be null This is how I settled the Dockerfile: ...
Gr22's user avatar
  • 11
1 vote
1 answer
586 views

I know that Npgsql is not and OLEDB connector. But it's an ADO.NET one. I tried to set it up to make it a new type of Data Source for connection to Postgres (on the same level with ODBC, OLEDB or ...
StrangerV's user avatar
0 votes
0 answers
92 views

I have this problem reading "character varying" field data through a C# program from a PostgreSQL version 12 database table using npgsql. This is the code I use: NpgsqlDataSource ...
Claudio Venturoli's user avatar
2 votes
2 answers
922 views

I encountered an issue while attempting to modify my SQL query to address warnings about potential SQL injection. I aimed to parameterize the query and use raw string literals, but I received an error ...
Fatorin's user avatar
  • 77

1 2
3
4 5
44