c# - timestamp with timezone postgresql mapping -


how can map "timestamp time zone" datatype postgresql system.data.dbtype need pass parameter go column has "timestamp time zone"

following code:

var porderdate = cmdorder.createparameter(); porderdate.parametername = "orderdate"; porderdate.dbtype = system.data.dbtype.datetime; porderdate.value = objorder.orderdate; cmdorder.parameters.add(porderdate); 

following line causes problem:

porderdate.dbtype = system.data.dbtype.datetime; 

have considered trying datetimeoffset class in .net?

i'm unaware of how maps postgres "datetime timezone" type, has 1:1 correlation believe mssql equivalent (also called datetimeoffset).

note naming here quite poor - type represents datetime + offset, , not offset itself.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -