querybuilder icon indicating copy to clipboard operation
querybuilder copied to clipboard

Is SqlKata.Core AOT ready?

Open Tiktack opened this issue 11 months ago • 3 comments

Is SqlKata.Core AOT ready? I am getting trimming/AOT warnings with it. Is there any chance they can be addressed, since AOT becomes more and more valuable on .NET?

Image

Tiktack avatar Feb 18 '25 22:02 Tiktack

Is SqlKata.Core AOT ready?

I join the question. AOT becomes a very important technology.

gsrec avatar Apr 01 '25 06:04 gsrec

Absolutely. AOT will become very important. We would like to see the popular query builder SqlKata supporting AOT as well.

NazimMertBilgi avatar Apr 14 '25 14:04 NazimMertBilgi

I managed to make it work with AOT compilation, by using something like this to make the AOT trimming ignore these specific parts, which likely rely on reflection

    <ItemGroup>
        <TrimmerRootAssembly Include="SqlKata.Core" />
        <TrimmerRootAssembly Include="MySql.Data" />
        <TrimmerRootAssembly Include="System.Configuration.ConfigurationManager" />
    </ItemGroup>

iancucatalin1993 avatar Jun 21 '25 17:06 iancucatalin1993