-
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: RepoDb.SqLite remove dependency on EntityFramework #486
Comments
Absolutely! We will do this. When do you need the fix for this? |
No rush at all. Thank you. |
We are working on this now. I am planning to upgrade the SqLite driver to use the Microsoft.Data.Sqlite.Core. Though, by upgrading it, 70% of the Integration Tests fail. We are fixing this as well. In anyway, do you have any comments before we do commit the changes? |
I don't feel qualified to comment. :) |
@dalebrubaker - this request is now a part of the latest deployment (RepoDb.SqLite (v1.0.15)). Would you be able to validate in your side?
Notes: Please be reminded that the upgrade from .NET Core: .NET Framework: |
How about installing the |
@dalebrubaker - a community complaints about moving from |
@dalebrubaker and @FutureTD - the new modified version of RepoDb.SqLite with Though, what I noticed with Question: Being you as the user of this, which library do you prefer to use moving forward? |
It doesn't matter to me. Either SDS or MDS is fine. |
I would prefer SDS |
Thank you both. I already have a working branch, so it will only take few minutes to push it. But I will first gather more feedback to the community. Will update you further here. Thanks for the patience. |
Since you are this far along, and since the MDS version may become more valuable over time, you might consider offering a parallel package, like RepoDb.SqLite.MDS, in addition to your current one, someday. FWIW |
Same goes to #497. 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. |
Pertaining to your package problem. @dalebrubaker - I would recommend if you can uninstall RepoDb.SqLite first and then reinstall it. It seems a problem happens on your side during the installation. Would you be able to do that and revert? |
This small zipped sln shows my problem with AutoIncrement using the current RepoDb.SqLite 1.0.16. This is a .Net Framework 4.8 project. You will have to install System.Data.SQLite from NuGet in order to get it to run. I've run this on 2 different PCs with the same result. Best regards, |
Will look at this issue later. Thanks Dale. |
I will create a separate issue for this later. EDIT: Btw, do you know that you can create your customized DB Helper and inject it in RepoDb? You can inject it via |
Ah, thanks for the tip. |
@dalebrubaker - I had tested your solution locally, it is not really a big bug. The table cannot be found if you are quoting the mappings. Removing the quote would work (from FluentMapper
.Entity<OrderEventArgsMapped>()
.Table("OrderEventArgs")
.Column(e => e.CommentToMap, "[Comment]"); EDIT: Though, I will fix it on the underlying solution. |
Here is the project that I used. I had created a fresh project from scratch, using .NET Framework 4.7.2 (the latest framework installed on my local machine) and copied over all your files here. By the way, I was able to debug it without interfering the actual RepoDb code. I simply created a copy of the DbHelperMapper.Add(typeof(SQLiteConnection), new CustomSqLiteDbHelper(), true); Note: It seems that the package has issue in in C# 7. |
Thank you! I'm very impressed with this package! |
@dalebrubaker - can we now close this User Story? Please advise and thanks. |
Yes! Thanks again. |
When I pull RepoDb.SqLite from NuGet I also get a large EntityFramework.dll along with other undesired files. I think this is because both RepoDb and System.Data.SQLite are dependencies.
Could the dependency be System.Data.SQLite.Core instead of System.Data.SQLite?
The text was updated successfully, but these errors were encountered: