Hiiiii
I need store the data into database using EntityFramework Code first Approach ,but my data is Available within the List
Please Suggest me how to store using code first Approach in Asp.net MVC
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ramesh MaruthiRank #937 · 2.2K reputationPosted Nov 24, 2014, 5:42 AM EST
What kind of list it is ? A object or any data type ?
I would suggest you to write a class for that list objects and try to use that class
For an example I have a list which consists of student info like name, rollno and branch
So I will write a class as studentinfo in this way :
[DataContract]
public class studentinfo
{
[DataMember]
public string name{ get; set; }
[DataMember]
public int rollno{ get; set; }
[DataMember]
public string branch{ get; set; }
}
List