-
Notifications
You must be signed in to change notification settings - Fork 29
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
#101 add createdon etc attributes to context entity so they are avail… #104
Conversation
…able to post operation plugins
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.
Looks overall good. Only a single area were i believe we can generalize the solution a little
src/XrmMockupShared/Core.cs
Outdated
return; | ||
} | ||
|
||
item1["createdon"] = postImage.GetAttributeValue<DateTime>("createdon"); |
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.
The code handles these 4 attributes in the same way. Can we maybe generalize? Maybe move the attributes to a list that the code iterates over and adds them to the item1. This will also make it easier to extend with additional attributes. Both me and @magesoe has a suspicion that there are other system attributes we need to do this with as well.
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.
I've made the solution more generic, with a list of system attribute names which is iterated over.
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.
Could #92 be resolved via this as well ?
Added in 1.3.0 |
…able to post operation plugins