-
Notifications
You must be signed in to change notification settings - Fork 3
HOW TO : First mapping in Visual Studio
camous edited this page May 27, 2018
·
5 revisions
- Add
ACMEMAPPERnuget package to your Visual Studio project

- Create a subfolder called
Maps& create a newmyobjecttype.jsonfile

- Copy Paste following mapping definition into
myobjecttype.json
{
"$version" : "1.0",
"myobjecttype" : [
{
"systemA" : {
"property" : "systemAfield1"
},
"systemB" : {
"property" : "systemBfield1"
}
},
{
"systemA" : {
"property" : "systemAfield2"
},
"systemB" : {
"property" : "systemBfield2"
}
}
]
}- in your source code, instantiate
Mapperwith source systemsystemAand destination systemsystemB

- map an input
JObjectwith 2 propertysystemAfield1&systemAfield2
{
"systemAfield1" : "mystringvalue1",
"systemAfield2" : "mystringvalue2"
}- checkout the result 🥇
