DapperAOT
DapperAOT copied to clipboard
System.NullReferenceException: Object reference not set to an instance of an object. - error
I have a Roslyn Source Code Generators examples with code on GitHub - https://github.com/ignatandrei/rsCG_examples
The code is pretty simple , but it gives the error System.NullReferenceException: Object reference not set to an instance of an object.
The line is
__dapper__result = global::Dapper.TypeReader.TryGetReader<global::DapperExampleDAL.Person[]>()!.Read(__dapper__reader, ref __dapper__tokenBuffer);
You can find the example at https://github.com/ignatandrei/rsCG_examples , folder later_aotdapper\src\dapperexample
Please help
this code
global::Dapper.TypeReader.TryGetReader<global::DapperExampleDAL.Person[]>();
gives null
closing because taking new direction: https://github.com/DapperLib/Dapper/issues/1909