You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
usingSystem;usingSystem.Data.SQLite;usingDapper;[module:DapperAot]varconnection=newSQLiteConnection("Data Source=:memory:");usingvarconn=connection.OpenAndReturn();
#pragma warning disable DAP037// must disable the error to runvarresults=conn.Query<Enum>("select * from (VALUES (1), ('c'));");
#pragma warning enable DAP037// should print out:// b// cforeach(variteminresults){Console.WriteLine($"{item}");}enumEnum{a,b,c}
Expected behavior
No error should be reported
Additional context
As shown in the example, disabling the error let's the query run anyways with the expected enum values returned
This also works with normal Dapper just fine.
Activity