Validating disconnected POCOs

Posted by jonathanconway on Stack Overflow See other posts from Stack Overflow or by jonathanconway
Published on 2010-03-03T04:07:49Z Indexed on 2010/04/06 3:03 UTC
Read the original article Hit count: 335

In my ASP.NET application I have separate projects for the Data, Business and UI layers.

My business layer is composed of plain objects with declarative validation, using DataAnnotations.

Problem is, when it comes to save them, I'm not sure how to process the validation, since they're not bound directly to any data context, but rather, are mapped to separate data-layer objects.

Is there a way to trigger validation on these kinds of objects?

© Stack Overflow or respective owner

Related posts about .net-3.5

Related posts about validation