Open J031PC opened 1 year ago
Sorry, I don't understand any English..
Upgrade a project from .net6 to .net7, when executing this query it gives me an error.
var vm = await _context.Users .Where(e => e.Id == request.Id) //.ProjectTo<GetUserDetailVm>(_mapper.ConfigurationProvider) SingleOrDefaultAsync(cancellationToken);
I think it is related to MySqlConnector:
System.InvalidCastException: Unable to cast object of type 'System.DBNull' to type 'System.String'.
MySQL version: 5.7.33 Operating system: Mac M1 Pomelo.EntityFrameworkCore.MySql version: 7.0.0-alpha.1
Other details about my project setup: The project use Mediatr (commands/queries) for ddd and clear architecture.
Your English is good. Please use code blocks instead of posting screenshots. See https://github.com/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql/issues/1571 regarding your issue.
Steps to reproduce
Sorry, I don't understand any English..
Upgrade a project from .net6 to .net7, when executing this query it gives me an error.
The issue
I think it is related to MySqlConnector:
System.InvalidCastException: Unable to cast object of type 'System.DBNull' to type 'System.String'.
Further technical details
MySQL version: 5.7.33 Operating system: Mac M1 Pomelo.EntityFrameworkCore.MySql version: 7.0.0-alpha.1
Other details about my project setup: The project use Mediatr (commands/queries) for ddd and clear architecture.