Automapper: How to ignore a member in VB.NET -
i'm using automapper in vb.net project, , trying make ignore member. can see how in c#, not in vb.net. have quick example of using formember method.
thanks,
paul
here's how :)
mapper.createmap(of incomingmodel, outgoingmodel)().formember(function(x) x.fieldtoignore, sub(y) y.ignore())
the thing important, , messed sub instead of function second part.
this works in vs2010. older versions can't it.
Comments
Post a Comment