System.ComponentModel.DataAnnotations.Schema not found

I'm running into an problem in Visual Studio 2012 that involves the System.ComponentModel.DataAnnotations.Schema namespace. It says me that the ForeignKeyAttribute can't be resolved the solution in the past was to add the using statement that is commented out following. VS2012 can not resolve the Schema namespace as VS2010 was capable to. Has anything Updated in current .Net releases that would be causing this issue? If so How can i work around them?

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
// using System.ComponentModel.DataAnnotations.Schema;
namespace Data
public class AffiliateUser
Key ForeignKey("User")
public int UserId { get; set; }
public string AffiliateUserKey { get; set; }
public Guid ApiKey { get; set; }
public string PasswordHash { get; set; }
public bool IsDeleted { get; set; }

Get Source Code

  Views 307   Posted on : Thursday, March 21, 2013 10:41:35 AM
Related Tags:

Replies on "System.ComponentModel.DataAnnotations.Schema not found" :

Nobody has replied on this post , be first to post answer.

Post Your Answer/Comment:

Please Login first to post Reply !

Note: Please Put Code into <code></code> block.

Also See: