-
Notifications
You must be signed in to change notification settings - Fork 585
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
Is there a technical reason why the generics need to be constrained by class/reference types? #294
Comments
Hi @grofit , we didn't implemented any support for structs. Do you have any examples of this use? |
Hey, not exactly but other orms do not enforce the generics are reference types so it was immediately noticable when I dropped in this one and all the generics required extra constraints. While I imagine most people would be using classes, I do not find it super crazy that people may be representing their data as value types. I thought originally maybe the issues were down to lack of nulls for value types but couldn't see any major issues when I looked in the source around that. Given that both value and reference types for the most part are the same in terms of reflection based interactions, it just felt like it was a constraint that may not be needed, as ideally I wouldn't want the cascading generic constraints etc at repository level. What specifically do you see as needing adding to the source to support structs? As from a brief look it seemed like you could pretty much just remove the generic constraints and most of the existing code base would work without much changing. |
Hi @grofit , I really need help with this repository. I'm not the owner, as you may noticed. Feel free please to update the code and submit a PR. The most important rule I follow to approve the PR is that the unit tests need to be running OK and new code has to be covered. I'm still working with coverage for some existing code. |
I am sorry but I don't have loads of free time to put into other open source projects, as I have plenty of my own to work with and this was just a test run for the library for a scenario. This all being said I did a quick fork and removed all references to |
I just noticed when trying this out on a library that the generics NEED to be reference types, but is there any technical reason why it cant support struct/value types too?
The text was updated successfully, but these errors were encountered: