-
Notifications
You must be signed in to change notification settings - Fork 14
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
✨ [FEATURE] Add 'Enum.AsNoTracking' to all methods instead of using bool values #16
Comments
First of all, thank you for this great suggestion. |
@furkandeveloper - Its my pleasure! I have a bunch of libraries I create myself for my own development, and I needed a really good library for Generic Repository (I love repository pattern, many people say its not needed and overkill, I say to these people, obviously they have not had to work on large enterprise code bases before 🙃 ) I found your library, and its great! there are some things that I wanted to change and improve, and thank you for being so receptive to them. I have a few more changes / features I plan to suggest after I have more usage with your library, specifically around the I need to thank you as well for being so responsive and active on GitHub! I really appreciate it! |
In regards to:
What are your thoughts on this, currently I am just adding the overload method. ( Personally, i'd like to remove the I know that this is one of the most sensitive parts when it comes to maintaining libraries |
Definitely old methods should continue to be supported until 3.0.0 is released. |
Summary
I would like to add an overload that takes
Enum.AsNoTracking
to all of the methods. For example, currently there might be a method such as this:I would like to add an overload that takes an
enum
instead ofbool
In this enhancement I suggest we:
bool
parameterbool
parameterWhat do you suggest?
Advantage
Explicit parameters help the developer. using a bool of
true
orfalse
can mean anything. The developer must look at thexml
notes in order to see "Ah yes... this is for change tracking"Here are some articles about it:
Additional context
I will need your advice and suggestions on naming the classes and properties.
I suggest these, please let me know your input and feel free to rename or re-design
Enum
Extension Method
Outstanding Questions & Input required
bool
, or option 2 of add the overload and remove thebool
parameterenum class name and property names
extension method class name and method name
The text was updated successfully, but these errors were encountered: