All Questions
32 questions
0
votes
1
answer
194
views
How can I fill up my page with data located in PostgreSQL as opposed from the hardcoded dummy/template info found in my ViewModel?
In my application, I am trying to practice the MVVM format (although I probably violated it at a few points and I’m refactoring as I catch it). I have a UserControl where it is a “recipe screen” that ...
0
votes
1
answer
2k
views
How can I retrieve data from my PostgreSQL database? WPF/C#
For reference, I am new to C#/WPF/PostgreSQL and I am trying to create a project for practice, however I've hit a bit of a roadblock. I found this earlier and tried following along with the answers (I ...
0
votes
0
answers
209
views
C# / WPF - How should I save user-typed data all at once after a submit button click?
I'm learning WPF/C# via self-teaching and am currently building a small WPF app for practice instead of following tutorials, and so far it's been great; however, I have hit a roadblock that I've spent ...
0
votes
1
answer
134
views
WPF application exe causes problems on C:
I have a very strange problem. I have written a program in WPF & C# with a postgres database. I start the exe on my pc the program works fine. Then I copy the debug folder to a USB. Install all ...
-3
votes
1
answer
228
views
System.StackOverflowException when calling MainWindow
First, I have a MainWindow(obviously), and then created a new xaml page called LoginWindow.
I have a class file called Server_setup, to store database access data.
Server_setup
public class ...
-1
votes
1
answer
39
views
Accessing postgresql database country-wide
How can I access my postgres database remotely?
I found some info about activating remote access, but it is hard to understand and mostly for linux (i'm using windows 10/postgresql version 13.2).
How ...
0
votes
0
answers
152
views
Nullable enabled, but 'Value cannot be null' [duplicate]
I'm creating a database with PostgreSQL in C#.
My database should be able to import a CSV file and export its data to a CSV file.
The Favorite column should allow empty (null) data.
For example, the ...
1
vote
0
answers
115
views
Switch Database model EDMX in Entity framework in WPF
I generated EDMX model by Visual studio and i get connection string
<add name="TuttyPOSEntities" connectionString="metadata=res://*/ModelTuttyPOS.csdl|res://*/ModelTuttyPOS.ssdl|...
2
votes
3
answers
5k
views
Reference assemblies should not be loaded for execution. They can only be loaded in the Reflection-only loader context
ok I have a wpf app that interacts with a postgresql database, I'm using Npgsql for that matter, when testing everything works great with no exceptions, but when I made a setup.exe to my app and ran ...
-1
votes
1
answer
406
views
Tuning autovacuum to run when database schema changes?
Whenever i upgrade my database schema from software(code) via multiple migrations, some database operations takes lot of time to complete. I understood pgstats that, something was messed up and query ...
2
votes
0
answers
216
views
How to make new queries with the info in NpgsqlConnection.Notification
I have "Element" objects in my application which are stored in Postgres DB Tables.
These elements are edited via various editors in the user interface and the users can open multiple editors at the ...
0
votes
1
answer
699
views
Restore DataBase PostgreSQL duplicate lines
I making Backup and Restore to system.
For make Backup im using this code:
textInformacao.Text = "";
Environment.SetEnvironmentVariable("PGPASSWORD", ConfiguracaoSistema.Password);
...
0
votes
0
answers
91
views
Process started from C# that invokes a PowerShell script is not able to run Postgres database queries
I have a WPF application that starts powershell.exe as process (code in C#) with my script as argument. My PowerShell script restarts a Windows service and updates the result into a Postgres database. ...
0
votes
0
answers
190
views
Replicating Changes from Advantage Database Server to PostgreSQL
I am looking to create a WPF application that can perform the following:
Monitor tables in Advantage Database Server (ADS) or PostgreSQL
Replicate changes from ADS to Postgres, or Postgres to Postgres
...
5
votes
3
answers
6k
views
Linq2db insertion with identity not working as expected
To keep working in an application with data from database, I'm using linq2db.
The insertion of an object in DB was expected to insert WITH ID if that object has one, and to create new ID in DB for ...