华为OpenGauss/ GaussDB .NET操作

用法和PGSQL一样 ,唯一区别 在连接字符串 后面加上

No Reset On Close=true

SqlSugar ORM用法

 var db=new SqlSugarClient(new ConnectionConfig()
            {
                DbType = SqlSugar.DbType.PostgreSQL,//选用PGSQL驱动
                ConnectionString = Config.ConnectionString,
                InitKeyType = InitKeyType.Attribute,
                IsAutoCloseConnection = true 
            });


文档:SqlSugar5.0