-
Notifications
You must be signed in to change notification settings - Fork 6
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
BHoM_Adapter: refactoring-remove NextId and AssignId #115
Labels
Milestone
Comments
NextId
methodNextId
method - id assignment to be done always in the Create()
NextId
method - id assignment to be done always in the Create()
17 tasks
After chat with @adecler and @kThorsager :
|
Action needed for Toolkits:
|
An issue is that it becomes difficult to live with this: BHoM_Adapter/BHoM_Adapter/HelperMethods/CRUD.cs Lines 83 to 89 in 7b6e246
that should be either done in all cases (slow because you need to check if Ids have been assigned for each object) or altogether removed. I need to experiment with the Adapter ID dictionary. |
Strategy changed in #164 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Proposed actions
AssignId
method completely.Create
method.NextId
method completely.Explanation
The
AssignId
andNextId
methods enforce on the user an additional structure that may not be needed.We propose a shift of the Id assignment to the Create method in all cases.
This leads to simplification of the NextId method that can be removed as well.
This also helps clarifying the responsibility of the Create action.
The text was updated successfully, but these errors were encountered: