3
Answers

How to call function postgresql? using Dapper

Ck Nitin

Ck Nitin

3y
7.1k
1

Is this right wy to cll function in postgresl?

 

var procedure = "vamp.SearchQuestion";
using (var connection = new NpgsqlConnection(_connectionString))
{
result = await connection.QueryAsync<QuestionSearchModel>(procedure, new { searchtext = searchText }, commandType: CommandType.StoredProcedure);
}

 

Answers (3)