-
Notifications
You must be signed in to change notification settings - Fork 62
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
Automapper issue #3137
Automapper issue #3137
Conversation
@@ -356,6 +317,29 @@ private void CopyCustomizedVariableConfigurations(VariableBase customizedVar, Va | |||
originalVar.Publish = originalCopy.Publish; | |||
} | |||
|
|||
private void AutoMapVariableData(VariableBase customizedVar, ref VariableBase originalVar) | |||
{ | |||
string varType = customizedVar.GetType().Name; |
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.
we said to have the Switch for all Variables types and place it on generic class to be used for any future need, no?
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.
ok, i'll move this function to some generic class but for Selection List, List variable the values are getting deleted after automap. if we map these variable with VariableBase class then its working fine.
|
||
switch (varType) | ||
{ | ||
case "VariableDateTime": |
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.
let's not do switch case by strings, use nameof(classType)
Thank you for your contribution.
Before submitting this PR, please make sure: