for ExecuteScalar and QuerySingleOrDefault methods DAP037 error is reported ("No settable members exist for user type"), when return type is an array like byte[] or string[].
public async Task<byte[]?> TryGetByteArray(NpgsqlConnection conn, long id)
{
var bytes = await conn.ExecuteScalarAsync<byte[]>(
"select blob from foo where id = @id",
param: new { id });
return bytes;
}
Hello,
for ExecuteScalar and QuerySingleOrDefault methods DAP037 error is reported ("No settable members exist for user type"), when return type is an array like
byte[]
orstring[]
.Expected behavior: No error.