Closed eclipsed4utoo closed 8 years ago
This looks nice and I like the idea. I'm currently on vacation but I will take a look next week when I'm back :)
Thanks @oysteinkrog . I just noticed that I made the changes to the SQLite.Net solution and NOT the SQLite.Net.OSS solution. Is that going to be a problem?
@oysteinkrog will you be able to take a look at the pull request this week? Thanks
Sorry for the delays.
This looks good, my only complaint is that you did not use the same formatting as the rest of the code (tabs vs whitespace indentation etc), but I'll fix that.
Thank you :)
Awesome. Thanks. Is there a threshold that needs to be hit before releasing a new release on nuget? The last release was in November :(. I'm just looking forward to stop using my custom built DLL and back to using the nuget packages.
Would it be possible to get a new nuget package release? I want to switch our code back to using the nuget package instead of the built DLL we are using now(since the nuget package doesn't currently have the changes from this pull request). Thanks.
Is there any chance a new nuget package can be built and published? We would like to avoid using our locally built DLLs as we are reliant on the changes in this pull request. Thanks.
These changes allow for attributes(and other logic) from outside of the library to determine whether a column is a Primary Key, Auto Incremented, Indexed, etc.
Reason: I am writing data contracts that I want to be storage agnostic, meaning that I don't want to clutter my data contracts with attributes from many different storage technologies. These could be used by anybody in my company against any data storage technology(json or xml files, SQLite, EntityFramework, etc.). We have this working for the most part for EntityFramework and other storage techs. I am currently implementing storage in our Xamarin application and there are properties I want to ignore from the SQLite database.
For instance, let's say I have an interface and an implementation. Currently, if I wanted to ignore the EmployeeID property, I have to put in ignore attributes like below...
I want to be able to do something like this...
where we can use
MyIgnoreAttribute
to ignore the column in SQLite without having to have a reference to SQLite.This is what I have accomplished with my changes. By providing an instance of
IColumnInformationProvider
, an outside class can determine the information about the column. So for my case, my provider would look like...The changes made to the library are backwards compatible. Setting this property is not required. If an instance is not provided, an instance of the
DefaultColumnInformationProvider
class will be created and used. This default instance does exactly what the code previously did. So not giving a provider will make the library work exactly the same as before.