Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Improvement] Reduce initial package dependency #1291

Open
aloksharma1 opened this issue Oct 1, 2024 · 6 comments
Open

[Improvement] Reduce initial package dependency #1291

aloksharma1 opened this issue Oct 1, 2024 · 6 comments

Comments

@aloksharma1
Copy link

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.
@DotNetNext
Copy link
Owner

Nuget : SqlSugarCoreNoDrive
This will not load the default drivers.

@aloksharma1
Copy link
Author

please add this info in readme

@flier268
Copy link

flier268 commented Oct 2, 2024

Nuget : SqlSugarCoreNoDrive This will not load the default drivers.

But, SqlSugarCoreNoDrive not support AOT

@aloksharma1
Copy link
Author

aloksharma1 commented Oct 2, 2024

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

@DotNetNext
Copy link
Owner

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

@aloksharma1
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants