nunomaia / NwRfcNet

An easy way of making SAP RFC calls from .NET Core
Apache License 2.0
96 stars 28 forks source link

Async & Mapping with attributes request #56

Open harunemre opened 3 years ago

harunemre commented 3 years ago

Hi,

Thats the only one libray ever that i found over the web which using netweaver and supporting .net core. Thanks for all.

I'd like to use it on some asp.net core app as an integration. Adding async support would be great.

Also if possible, could you add some attribute mapping ?

Instead:

mapper.Parameter<SomeOutputClass>().Property(x => x.SomeProp)
        .HasParameterName("SOME_MAPPED_FIELD")
        .HasParameterType(RfcFieldType.SomeType);

Using attribute mapping like:

public class SomeOutputClass
{
[RfcParam("SOME_MAPPED_FIELD", RfcFieldType.SomeType, "Maybe some description here")]
 public string SomeProp {get; set;}
}
nunomaia commented 3 years ago

I don't have plans for such feature. But please, feel free to make a pull request of such functionality.