Trying to make a serializable class in ASP.NET vNext Class Library Project. Not able to give my class items [DataContract] or [DataMember] Attributes. As I just started exploring vNext so I am little confused. If some one can guide me whether I am doing the right thing or not. My little sample code.
using System;
using System.Runtime.Serialization;
namespace Schlouds.Business.Entities
{
[DataContract]
public class Student
{
[DataMember]
public Guid StudentId { get; set; }
}
}