-
Notifications
You must be signed in to change notification settings - Fork 5
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
[Update] auto generated rowviewmodels and dialogviewmodel #670
base: development
Are you sure you want to change the base?
[Update] auto generated rowviewmodels and dialogviewmodel #670
Conversation
Kudos, SonarCloud Quality Gate passed! |
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.
Some comments added. Just wondering if everything is as expected.
@@ -73,6 +108,33 @@ public string Name | |||
set { this.RaiseAndSetIfChanged(ref this.name, value); } | |||
} | |||
|
|||
/// <summary> |
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.
3 added properties. Is that correct?
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.
yes
} | ||
else | ||
{ | ||
this.OwnerName = string.Empty; |
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.
not 100% backwards compatible
@@ -36,9 +57,28 @@ public partial class AndExpressionRowViewModel : BooleanExpressionRowViewModel<A | |||
/// <param name="containerViewModel">The <see cref="IViewModelBase{Thing}"/> that is the container of this <see cref="IRowViewModelBase{Thing}"/></param> | |||
public AndExpressionRowViewModel(AndExpression andExpression, ISession session, IViewModelBase<Thing> containerViewModel) : base(andExpression, session, containerViewModel) | |||
{ | |||
this.UpdateProperties(); |
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.
New code. Correct?
@@ -101,9 +121,8 @@ protected override void ObjectChangeEventHandler(ObjectChangedEvent objectChange | |||
/// </summary> | |||
private void UpdateProperties() | |||
{ | |||
this.ModifiedOn = this.Thing.ModifiedOn; |
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.
Are you sure that ModifiedOn should be removed from the code?
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.
yes, this has been moved to RowViewModelBase as it is a property of Thing
Prerequisites
Description
Update RowViewModel: