tag:blogger.com,1999:blog-2629608947246129428.post6358752997658348162..comments2024-02-18T05:01:43.733-07:00Comments on Reference Bits: Custom Validation Step 2: Business Object ValidationRudy Lacovarahttp://www.blogger.com/profile/15639782534216467791noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-2629608947246129428.post-72649820748081149592012-12-21T08:23:05.502-07:002012-12-21T08:23:05.502-07:00In a recent project, I created a layer separating ...In a recent project, I created a layer separating the UI (ASP.NET MVC) from the business layer. This layer in between was responsible for translating web elements (form data, query strings, config. settings, session values, etc.) to business objects. Part of the transformation step was validation. This layer was also responsible for building view models used by the UI. This was a really nice break out because it allowed my business logic to be entirely focused on a single job (using a well-defined object model) and be reused by the web site and other services. The validation, in a sense, became its own set of independent business objects. It led to a lot of reuse. My MVC controllers had a very small job - they kicked off the task, got feedback and responded accordingly.Travis Parkshttps://www.blogger.com/profile/16291905047058770590noreply@blogger.comtag:blogger.com,1999:blog-2629608947246129428.post-58252219732971820602011-06-07T08:47:25.465-06:002011-06-07T08:47:25.465-06:00whoa!!!, you had a passion in blogging, thumbs up ...whoa!!!, you had a passion in blogging, thumbs up for your work of love.. Hehe very inspiring ideas,<br /><br /><br />anyway I'm william<br />mind if I put a link back to you?<br /><br /><br />see my works here ------> <a href="http://www.mensitaly.com" rel="nofollow"><b>Suits</b></a>trailmarkyhttps://www.blogger.com/profile/09817212585071822213noreply@blogger.comtag:blogger.com,1999:blog-2629608947246129428.post-65257592573866826352011-03-08T08:41:36.283-07:002011-03-08T08:41:36.283-07:00@saravana, the ValidationRules was my own custom c...@saravana, the ValidationRules was my own custom class. The code you're looking at is a little old. You may want to take a look at some of the more recent Agile ADO.Net Persistence Layer posts.Rudy Lacovarahttps://www.blogger.com/profile/04468668726156606923noreply@blogger.comtag:blogger.com,1999:blog-2629608947246129428.post-28199089655570216812011-03-02T03:46:29.440-07:002011-03-02T03:46:29.440-07:00Hi Rudy,
Could you give me some more info about th...Hi Rudy,<br />Could you give me some more info about the "ValidationRules"? is it a built in class in Dotnet or your custom implementation?<br /><br />I am using LLBLGen for DAL layer. I am creating a cusotm BL class which contains fields from more than one entity. This class will have some complex observable collection as it's property. For these kind of fields what is your suggested approach for validation?Unknownhttps://www.blogger.com/profile/17753693365988815443noreply@blogger.comtag:blogger.com,1999:blog-2629608947246129428.post-24247684505257078002011-03-02T03:42:20.717-07:002011-03-02T03:42:20.717-07:00This comment has been removed by the author.Unknownhttps://www.blogger.com/profile/17753693365988815443noreply@blogger.comtag:blogger.com,1999:blog-2629608947246129428.post-40005593018168051292011-03-02T01:54:45.777-07:002011-03-02T01:54:45.777-07:00Hi Rudy,
This is certainly a very useful article ...Hi Rudy,<br /><br />This is certainly a very useful article about validation. It gives me a direction about implementing a Validate() method in all my BO. I am interested to see what kind of code is inside the CommonBase,DTOBase. Could u please provide that?Unknownhttps://www.blogger.com/profile/17753693365988815443noreply@blogger.com