huysentruitw / SapNwRfc

SAP NetWeaver RFC library for .NET 5, .NET Core and .NET Framework
MIT License
148 stars 43 forks source link

Deserialization to Dictionary<string,DataTable> or DataTable #33

Closed Timo-Weike closed 2 years ago

Timo-Weike commented 3 years ago

We are currently working on migrating from .Net 4.7 to .Net 5 and are searching for a way to replace the sapnco.dll. We need to deserialize data from a RfcServer connection in a generic way (not with a generic type parameter). This is because we have no definite compile time type we could serialize in. We get an unspecified amount of tables with different columns.

We currently use DataTable to hold the data and would need to be able to deserialize into a structure similar to Dictionary<string,DataTable>.

Could this be done with this package?

huysentruitw commented 3 years ago

Dynamic binding as requested in https://github.com/huysentruitw/SapNwRfc/issues/36 could probably solve this. Personally, I'm not a fan of 'not knowing what to send or what we will get back' and try to avoid this at all cost 🙂 This is the main reason why I've created this library, to be able to use typed models that get mapped by convention.