SqlSugar icon indicating copy to clipboard operation
SqlSugar copied to clipboard

[Improvement] Reduce initial package dependency

Open aloksharma1 opened this issue 1 year ago • 7 comments

Hello, when adding sqlsugarcore package it adds additional packages by default for:

  • oracle
  • Oscar
  • SqlClient
  • MySql
  • NpgSql etc. while in practice users hardly use 1 or 2 types of databases in same project. this is unnecessary weight to the application, instead you should be like ef core or other standard libraries where additional connectors come with their own dependencies that are configured on service building and startup.

aloksharma1 avatar Oct 01 '24 16:10 aloksharma1

Nuget : SqlSugarCoreNoDrive
This will not load the default drivers.

DotNetNext avatar Oct 02 '24 05:10 DotNetNext

please add this info in readme

aloksharma1 avatar Oct 02 '24 06:10 aloksharma1

Nuget : SqlSugarCoreNoDrive This will not load the default drivers.

But, SqlSugarCoreNoDrive not support AOT

flier268 avatar Oct 02 '24 06:10 flier268

ok in that case, my issue is still valid. is it possible to reduce package dependencies without loosing AOT advantages?

aloksharma1 avatar Oct 02 '24 06:10 aloksharma1

ok in that case, my issue is still valid. is it possible to reduce package dependencies without loosing AOT advantages?

AOT cannot use sqlsugarcorenodirve, it is currently not supported

DotNetNext avatar Oct 02 '24 09:10 DotNetNext

in that case can you give instructions on how we can compile package on local machine with 1 or 2 packages instead of all these for AOT, as i said in my original post we generally use one (or two types of db hardly) in most projects.

aloksharma1 avatar Oct 04 '24 16:10 aloksharma1

I'm trying to come up with a simplified version recently.

DotNetNext avatar Oct 08 '24 14:10 DotNetNext

[Only support mysql pgsql sqlerver sqlite ]

NUGET:

SqlSugarCoreNoDrive.Aot

DotNetNext avatar Oct 25 '24 09:10 DotNetNext