-
Notifications
You must be signed in to change notification settings - Fork 126
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
Request: The switch from System.Data.SQLite.Core to Microsoft.Data.SQLite.Core is a pretty big breaking change #497
Comments
The old version is using only the Yes, you may be able to use the But since the RepoDb version will be defaulted to How to initialize the By default, you use to call the // Map the DbSetting
DbSettingMapper.Add(typeof(SQLiteConnection), new SqLiteDbSetting(), true);
// Map the DbHelper
DbHelperMapper.Add(typeof(SQLiteConnection), new SqLiteDbHelper(), true);
// Map the Statement Builder
StatementBuilderMapper.Add(typeof(SQLiteConnection), new SqLiteStatementBuilder(), true); Such calls equate the bootstrapper calls. |
Yes I am fine with that as dependency as long as I am still able to use System.Data.SQLite.Core which seems to be the case however, I am getting a exception on this line:
Exception: System.NullReferenceException: 'The database setting cannot be null.' I do have a custom SqliteDbSetting class
|
@FutureTD - I am now simulating your use-case. Few moment please :) Thanks! |
@FutureTD - I think, it requires you to call the |
I think, I need to revert to use the |
Ah ok I just changed the line to:
and the exception was gone |
Yes, I would be able to wait, thank you |
I saw that, but the problem is |
My project seems to work based on the little testing I did, However SDS is probably used more MDS so I don't know. However, Im not sure how switching to MDS will effect other users. |
A new release has been pushed. Please install the RepoDb.SqLite (v1.0.16).
Both the 'SDS' and 'MDS' are referenced on the package. The same strategy has been made with RepoDb.SqlServer package. Up until the community decided in the near future, one may be eliminated soon. That's still unclear when. |
Have you tested your solution based on the latest release? Planning to close this ticket soon. Thanks |
Yes it works fine, Thanks for your hard work. |
@FutureTD , thank you for verifying the fix. |
As soon as I tried to upgrade to RepoDb 1.0.15 and had to downgrade as I started to break stuff. Microsoft.Data.SQLite.Core is not as mature as System.Data.SQLite.Core and does not support some of its features at the moment such as (Case-sensitive parameter names) dotnet/efcore#18861 nor does it support (Connection Pooling) dotnet/efcore#13837 among other things.
Its just missing things that I and others are used to having, System.Data.SQLite.Core is just more mature and supports things not implemented in Microsoft.Data.SQLite.Core yet.
Was just wondering the reason for this change and If there was a way I could use System.Data.SQLite.Core without having a dependency on Microsoft.Data.SQLite.Core?
The text was updated successfully, but these errors were encountered: