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
Hi, I'm having some problems with reusing expressions and stumbled upon this really nice library!
Now I wonder if the following is already possible with NeinLinq and if not if it would be possible to implement (I guess it might be tricky).
I have a DTO class that is display in a list, some of the properties in the DTO should be featched from diffrent places depending on selections of the users so I have done this now:
This works but I would like to do this: Override the first Name mapping with the second one like this:
publicclassDTO{publicGuidId{get;set;}publicstringName{get;set;}}Expression<Func<Education,StaticEducation,DTO>>base=(e,_)=>new DTO {Id= e.Id,Name= e.Name};Expression<Func<Education,StaticEducation,DTO>>extended=(e,es)=>new DTO {Name= es.Name};//Here Id is from Education and Name is from StaticEducationvarcombined=base.Apply(extended);
So my two questions:
Is this possible with NeinLinq today somehow? (I have looked long at the documentation and code but could not figure it out)
If not would it be hard to implement as a feature?
The text was updated successfully, but these errors were encountered:
SpaceOgre
changed the title
[Question/Feature Request]
[Question/Feature Request] Overwrite member/property mapping
Sep 21, 2022
Hi, I'm having some problems with reusing expressions and stumbled upon this really nice library!
Now I wonder if the following is already possible with NeinLinq and if not if it would be possible to implement (I guess it might be tricky).
I have a DTO class that is display in a list, some of the properties in the DTO should be featched from diffrent places depending on selections of the users so I have done this now:
This works but I would like to do this: Override the first Name mapping with the second one like this:
So my two questions:
The text was updated successfully, but these errors were encountered: