-
Notifications
You must be signed in to change notification settings - Fork 158
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
add datamodificationexception class #914
base: release-8.x
Are you sure you want to change the base?
add datamodificationexception class #914
Conversation
/// Identifies a container for holding instance annotations. A default implementation is provided. | ||
/// Customers can have their own implementation. | ||
/// </summary> | ||
public interface IODataInstanceAnnotationContainer |
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.
Actually, I don't like this interface and the methods defined.
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.
What do you suggest it be replaced with?
/// <summary> | ||
/// Gets or sets the annotation container to hold transient instance annotations. | ||
/// </summary> | ||
IODataInstanceAnnotationContainer TransientInstanceAnnotationContainer { get; set; } |
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.
where and how can customer set this interface?
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.
when they are creating the response. If there are operations in the DeltaSet
that failed then you need to create DataModificationExceptions. This is the time customers will need this interface.
@@ -21,6 +21,9 @@ public abstract class Delta : DynamicObject, IDelta | |||
/// </summary> | |||
public abstract DeltaItemKind Kind { get; } | |||
|
|||
/// <inheritdoc/> | |||
public IODataInstanceAnnotationContainer TransientInstanceAnnotationContainer { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } |
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.
Can we mark it abstract and remove NotImplementedException()?
or at least the exception contains the message
dc650e0
to
d73d3af
Compare
Please add a description of what this Pr does and what problem it is trying to address. |
No description provided.