I am trying to generate a model that will combine two classes (named MainContext and TechContext).
So I've created another class that contains two properties of this classes:
public class CombinedContext
{
public MainContext MainContext { get; set; }
public TechContext TechContext { get; set; }
}
like in the bottom of mapping instructions page
so, when I run dotnet mapster model -a "assembly.dll" I got an error:
Allow only first level member access (eg. obj => obj.Name) (Parameter 'lambda')
How can I do this correctly?
Thank you for help and for this product!
I am trying to generate a model that will combine two classes (named
MainContext
andTechContext
). So I've created another class that contains two properties of this classes:and this is my config:
like in the bottom of mapping instructions page so, when I run
dotnet mapster model -a "assembly.dll"
I got an error:Allow only first level member access (eg. obj => obj.Name) (Parameter 'lambda')
How can I do this correctly? Thank you for help and for this product!