I love this, it becomes really useful for Dapper(or any other raw SQL) statements to guarantee properly mapped objects.
varsql=$@" SELECT CustomerId AS {nameof(Customer.Id)} , CustomerName AS {nameof(Customer.Name)} , CustomerBalance AS {nameof(Customer.Balance)} FROM dbo.Customers WHERE CustomerId = @CustomerId;";
I love this, it becomes really useful for Dapper(or any other raw SQL) statements to guarantee properly mapped objects.
Oh that's fantastic. I hadn't even thought of that use case. Love it!