-
Notifications
You must be signed in to change notification settings - Fork 558
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
Make consistent singlar/plural names of instances to avoid downstream… #193
Conversation
… ambiguous reference issues
Giving my personal opinion. This is of course always subject to individuals opinions... To put into perspective, when you are dealing with
Also I'm guessing there must be some Microsoft guidelines for these somewhere... Since this is Microsoft endorsed... Might as well take a look at it. |
Agreed with @David-Moreira and reverted ReSettings change since this is an internal object anyway. Also, found some text from one of the efcore contributors here. And more context in this thread which is the crux of the argument:
|
Hi @alexreich, I would like to share my opinion on the naming
Although we could replace
Coming back to EF model for with RuleName and ActionType acting as composite key. Although it would be a custom model. It should be fine for users trying to configure on their own. |
Good point with the workflow entity... I was only thinking about these in the context of pluralization, Workflowrule would be misleading, yea. If its a breaking change might as well do it well right away. 👍 |
Lots of simplification - EF now is only 2 tables with Actions column in Rules stored as Made a Data namepsace under RulesEngine with a generic RulesEngineContext which could be inherited for any provider (e.g. RulesEngineDemoContext has SQLite specifics). Incorporated Ids as non-required fields which acts as identity keys for EF and simplifies other issues. Put obsolete decoration on WorkflowRules with inheritance to Workflow. |
@abbasc52, @David-Moreira Plz let me know if there any other changes needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexreich PR looks good. Thanks for all the hard work!
Just gave some minor comment before we can close this 😄
… ambiguous reference issues
Convention is singular for instance and plural for lists and collections, to avoid code such as the following:
public DbSet<WorkflowRules> WorkflowRules { get; set; }
into
public DbSet<Workflow> Workflows { get; set; }
is now singular: