[DataContract] public class StandardClass { [DataMember] public int Std_Id; [DataMember] public string Std_Name; } [DataContract] public class QuestionEntityClass { [DataMember] public int Quest_Id; [DataMember] public int? Std_Id; [DataMember] public string Question; [DataMember] public string Optn1; [DataMember] public string Optn2; [DataMember] public string Optn3; [DataMember] public string Optn4; [DataMember] public string Ans; } My Bussiness_Entity.cs [Serializable] public class Edulight_Entity { [Serializable] public class Standard : Edulight_Entity { public int Std_Id { get; set; } public string Std_Name { get; set; } } [Serializable] public class QuestionEntity : Edulight_Entity { public int Quest_Id { get; set; } public int? Std_Id { get; set; } public string Question { get; set; } public string Optn1 { get; set; } public string Optn2 { get; set; } public string Optn3 { get; set; } public string Optn4 { get; set; } public string Ans { get; set; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)