You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// configure the constructor// the target constructor must have two paramters
builder.Constructor().WithParameters(2);// the target constructor must have a single parameter of type string
builder.Constructor().WithParameters(typeof(string));// configure the target constructor parameters with the source properties
builder.Constructor().Parameters(x => x.Name,x => x.Age);// configure the inner properties of a source property to be mapped to the constructor
builder.Map(x => x.SomeProp).ToConstructor();// or
builder.Constructor().MapInnerProperties(x => x.SomeProp);// configure a source property to be mapped to a parameter of the target constructor
builder.Map(x => x.Name).ToConstructor().ToParameter();// or
builder.Constructor().Map(x => x.Name);
The text was updated successfully, but these errors were encountered:
Samples:
The text was updated successfully, but these errors were encountered: