Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 789941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T21:36:20+00:00 2026-05-14T21:36:20+00:00

I am developing an ASP.NET MVC app and I’ve been looking into using Data

  • 0

I am developing an ASP.NET MVC app and I’ve been looking into using Data Annotations on my POCO’s which are defined in my Service Layer. As long as I have a reference to System.ComponentModel & System.ComponentModel.DataAnnotations this is no problem and what I like about this is that it allows me to reuse my Service Layer in a Win Forms app.

I’m now looking to do some Remote Validation using Data Annotations and have taken a look at this article: http://msdn.microsoft.com/en-us/library/ff398048(VS.100).aspx

However, to use the Data Annotations in this context I need to reference System.Web.MVC,
System.Web and System.Web.Routing. This introduces a dependency on the Web DLL’s, which
limits me somewhat.

Can anyone recommend a good clean way to implement Remote Data Validation using Data Annotations that isn’t coupled with ASP.NET MVC or maybe suggest a better alternative.

Thanks for the help !

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T21:36:21+00:00Added an answer on May 14, 2026 at 9:36 pm

    I resolved this in the end by backing away from putting DataAnnotations on my POCO’s and instead I put them on my ViewModels and use AutoMapper to Map between my ViewModel and POCO (which saves me some time doing tedious mapping). There’s a great video on Automapper here http://perseus.franklins.net/dnrtvplayer/player.aspx?ShowNum=0155

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing an asp.net MVC web app in which I am using Linq
I am developing an e-commerce app using asp.net mvc. After user successfully logged into
I am developing asp.net mvc web app with MongoDB as the data storage. I
I'm developing a mobile app using ASP.Net MVC to generate HTML 5 pages. The
I am developing an asp.net mvc application where user1 could delete data records which
I'm developing an web app using asp.net mvc. I have a List in Cache
I'm developing a web app in asp.net mvc using jquery, the language of application
Does anyone have an experience with developing a big web app using ASP.NET MVC
I'm developing an ASP.NET MVC 2 app using Windows Authentication. When I run it
I am developing an app in asp.net mvc 2.0 in which I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.