Exemplo n.º 1
0
            private Task <string> GetEmployeeConcatTha(Command request, CancellationToken cancellationToken)
            {
                StringBuilder sql = new StringBuilder();

                sql.AppendLine(" select * from db_employee_concat(@Lang,@PreNameId,@FirstName,@LastName) ");
                return(_context.ExecuteScalarAsync <string>(sql.ToString(), new { Lang = "th", PreNameId = request.PreNameId, FirstName = request.tFirstName, LastName = request.tLastName }, cancellationToken));
            }