-
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
ACMEMAPPER
nuget package to your Visual Studio project
- Create a subfolder called
Maps
& create a newmyobjecttype.json
file
- 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
Mapper
with source systemsystemA
and destination systemsystemB
- map an input
JObject
with 2 propertysystemAfield1
&systemAfield2
{
"systemAfield1" : "mystringvalue1",
"systemAfield2" : "mystringvalue2"
}
- checkout the result 🥇