C# How to connect PostgreSql database | C# CRUD | PostGreSql Function
#CSharp, #PostgreSql, #Connect, #CRUD
This tutorial show how to connect C# PostgreSql, using Postgres Function. C# CRUD
CRUD function:
1. Select function
CREATE OR REPLACE FUNCTION (
)
RETURNS TABLE(id integer, firstname character varying, midname character varying, lastname character varying)
LANGUAGE ’plpgsql’
COST 100
VOLATILE
ROWS 1000
AS $BODY$
begin
return query
select st_id, st_firstname, st_midname, st_lastname from Students order by st_id;
end
$BODY$;
2. Insert function:
CREATE OR REPLACE FUNCTION (
_firstname character varying,
_midname character varying,
_lastname character varying)
RETURNS integer
LANGUAGE ’plpgsql’
COST 100
VOLATILE
AS $BODY$
begin
insert into Students(st_firstname, st_midname, st_lastname)
values(_firstname, _midname, _lastnam
1 view
725
320
5 months ago 01:02:24 1
Golden Heart (888 Hz) | 1 hour handpan music | Malte Marten
5 months ago 00:23:02 1
Making a Dog-Sized Furby Robot (and taking it on a walk)
5 months ago 00:03:06 1
BOYNEXTDOOR (보이넥스트도어) ’Earth, Wind & Fire’ Official MV
5 months ago 00:15:00 2
дробовик Калашникова какие моды золотые поставить в Warface+небольшой обзор
5 months ago 00:01:54 1
Write the Letter R - ABC Writing for Kids - Alphabet Handwriting by 123ABCtv
5 months ago 00:04:02 3
Suicidal Tendencies - How Will I Laugh Tomorrow (Acoustic Remix)
5 months ago 00:00:34 1
Легендарная анти-ловушка в Counter-Strike 2
5 months ago 00:03:53 1
Erasure - Love To Hate You (Official HD Video)
5 months ago 00:38:24 1
Ironmouse Reacts to Her Most Insane Fan Art
5 months ago 00:15:44 1
Why Simps Won’t Listen
5 months ago 00:04:52 1
Couple rescues wild sparrow. Now she refuses to leave.
5 months ago 00:01:10 1
How To Do 90s - Beginner Tutorial
5 months ago 00:03:56 1
Jordan Peterson - Describes Women’s Hottest Sexual Fantasy
5 months ago 00:03:38 1
Powerman 5000 - How To Be A Human
5 months ago 00:01:25 1
Naruto: The Movie - (2024) Live Action - Teaser Trailer | Shueisha Concept
5 months ago 00:24:34 1
The Duran: Russia is DESTROYING Ukraine’s Army and Macron, NATO Want WWIII
5 months ago 00:03:27 2
No Doubt - Just A Girl
5 months ago 00:00:00 6
Live Global Earthquake Monitoring
5 months ago 00:26:21 1
How Much Memory for 1,000,000 Threads in 7 Languages | Go, Rust, C#, Elixir, Java, Node, Python
5 months ago 00:14:18 1
Introducing the Shadow
5 months ago 00:03:02 1
Josh Rubin - Black and White | Future Bass | NCS - Copyright Free Music
5 months ago 00:21:52 1
Tanks! - Allied tanks of WW2 - Sabaton History 127 [Official]
5 months ago 00:06:32 1
Professional Baker Teaches You How To Make CHOCOLATE TART!
5 months ago 00:04:07 1
Как сделать космическую ракету из бумаги #оригами How to make a space rocket out of paper # origami