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

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -