Ck Nitin

Ck Nitin

  • 250
  • 6.9k
  • 3.1m

How to call function postgresql? using Dapper

Jun 6 2021 5:07 AM

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)