Skip to content
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

Revisit EntityState behaviour with CRUD operations #93

Open
4 tasks
jordimontana82 opened this issue Mar 22, 2023 · 1 comment
Open
4 tasks

Revisit EntityState behaviour with CRUD operations #93

jordimontana82 opened this issue Mar 22, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jordimontana82
Copy link
Contributor

jordimontana82 commented Mar 22, 2023

It seems EntityState is ignored when performing CRUD operations.

Review permutations of CRUD operations and the different entity states:

  • EntityState: null (should perform the default operation) ?
  • EntityState : Changed (should update) ?
  • EntityState: Created (should create) ?
  • EntityState: Unchanged (should ignore changes) ?

More info at: jordimontana82/fake-xrm-easy#255

@khoait
Copy link

khoait commented Sep 5, 2024

hi @jordimontana82, we're heavily using OrganizationServiceContext to perform create/update on related records in relationships in plugins. currently the library is always creating new related records causing There is already a record of entity xxx with id 8c170298-xxxx-xxxx-xxxx-0022489a2fb3, can't create with this Id. So we need to ignore affected tests for now.

Adding this feature will bring the faked context closely aligned with the runtime context making testing more efficient and reliable.

Thanks for the amazing library!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants