Page 1 of 2
Sample for building forms based on a Postgres DB
Posted: Thu May 27, 2021 7:39 am
by RGreim4XS
Hi,
I have now a working environment with a Postgres Server running on a IMac .
I can connect to DB with Visual Studio via npgsql.
There are many samples using C#.
But what is the best way to do it with XIDE/ VS ?
Do I need extra paid libs / runtimes ?
I remember from my past, everytime I say enterprise or server I have to spent extra money.
This is one of the reasons why.I’m still using DBFs .
Thx for pointing me to PostgressSQL in my last post ( database question)
Rainer
Sample for building forms based on a Postgres DB
Posted: Thu May 27, 2021 5:06 pm
by wriedmann
Hi Rainer,
for a new SQL based application there is a basic question: what GUI? WPF or Windows Forms?
I'm build my new applications nearly entirely using WPF and MVVM - and using XIDE, building the forms in code and not in XAML as most others. This is because I prefer XIDE over VS, and second because I feel that building forms code based gives me more flexibility.
And if you find code using C#: why not transport that to X#?
Wolfgang
Sample for building forms based on a Postgres DB
Posted: Thu May 27, 2021 5:55 pm
by RGreim4XS
Hallo Wolfgang, when I start with x# I want to use the x# Infrastructure and tools.
As Im an old FoxPro and Java dude, I have tools for doing most of my work , as I worked for a long time with datadriven frameworks , code generators, ORM mappers and more.
If.taking c# code to adapt it to x# why not.
Thanks again., also for the hint about MVVM.
Rainer
Sample for building forms based on a Postgres DB
Posted: Fri May 28, 2021 4:09 am
by wriedmann
Hi Rainer,
unfortunately there are no such things in the X# language.
But - and this is the real great thing: you can use any C# library you like as it were a X# library.
Personally, I like the X# language as it is easy to read and understand (much easier than C#), and because there are things like the macro engine and the RDDs (and not to forget the tons of legacy code I have to maintain and to move forward).
Wolfgang
Sample for building forms based on a Postgres DB
Posted: Fri May 28, 2021 6:32 am
by RGreim4XS
Hallo Wolfgang, da gehts mir besser, VFP lass ich’s wies ist, und fang neu an,
Ist schon cool, das Robert soviel Energie in X#,steckt.
In meinen News heists immer, nimm .net und Java und blos kein / VFP, /…
6:00 , schläfst Du eigentlich auch…
VG Rainer
Sample for building forms based on a Postgres DB
Posted: Fri May 28, 2021 8:07 am
by wriedmann
Hi Rainer,
fortunately my VO applications are critical for my customers businesses, so I need to keep them running and need also to modernize the base.
And using X# you are effectively using .NET - and you can use all the tools and libraries and code samples that are available.
Wolfgang
P.S. my working day starts at 5:30 and normally ends at 19:00 - my home and my office are in the same building
Sample for building forms based on a Postgres DB
Posted: Fri May 28, 2021 11:29 am
by ic2
Hello Wolfgang,
RGreim4XS wrote:
If.taking c# code to adapt it to x# why not.
Why not? Because, even using ILSpy, I am often unable to translate more elaborate C# code to working X# code. So I end up asking it here, which always gives me the requested reply.
But, as it is very easy to have C# code and X# code in one solution and then call methods from the C# code from X#, I found that I prefer to keep the code in C#. C# is a terrible program language compared to X# but when I find a working starting point in C# it is often easier and less time consuming to continue in C# than to try to translate it first.
Dick
Sample for building forms based on a Postgres DB
Posted: Sun May 30, 2021 11:00 am
by RGreim4XS
Hello Wolfgang,with all the. work, don’t forget worklife balance..
Stay healthy Rainer
Sample for building forms based on a Postgres DB
Posted: Sun May 30, 2021 1:54 pm
by wriedmann
Hi Rainer,
I'm so lucky to live in a place where other people comes to pass their holidays.
So, even if I'm now back to work, today I was on the first mountains peak for this year.
Wolfgang
- SpitzigeLun.png (1.33 MiB) Viewed 1837 times
Sample for building forms based on a Postgres DB
Posted: Mon Jun 21, 2021 10:04 am
by RGreim4XS
Hello Wolfgang,
im living at Swabian Alb near Ulm. Also a very nice place. Sometimes I can also see the Alps.
This is my summer home office..
BR Rainer
- 284D03DE-9803-4904-AE64-DB79BC8B03E8.jpeg (89.45 KiB) Viewed 1837 times