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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ramesh MaruthiPosted Nov 24, 2014, 10:42 AM
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