This commit is contained in:
2022-03-06 23:49:54 +00:00
parent 0065e71501
commit 3bf22e1e07
3 changed files with 6 additions and 2 deletions

View File

@@ -150,7 +150,7 @@ namespace AyaNova.Api.Controllers
using (var cmd = ct.Database.GetDbConnection().CreateCommand())
{
await ct.Database.OpenConnectionAsync();
cmd.CommandText = $"select id, name, emailaddress from acustomer where active=true {custTagsWhere} order by name";
cmd.CommandText = $"select id, name, COALESCE(emailaddress,'') from acustomer where active=true {custTagsWhere} order by name";
using (var dr = await cmd.ExecuteReaderAsync())
{
while (dr.Read())