Hello Everyone,
I have a table in database with some data. i have created "get & set" properties for that table in C# in a class. I wish to get the whole data from database and store that data first in my properties what i created.
Ex-: Have table with four columns EmployeeId, EmployeeName, EmployeeDepartment,Employee Salary. Now I created properties in C# for that table using Get & Set method.Now i wish to store that table data in our properties. Using GetAll() method.
Technology-: Asp.Net, C#, LinQ, EntityFramework, Sql Server 2008.

Srinivas Rao53 reputationPosted Oct 15, 2015, 7:06 AM EDT
class employee{
Mukesh KumarRank #119 · 18.2K reputationPosted Oct 15, 2015, 9:28 AM EDT
public static Person ReadPerson(xmlpath) { XDocument xd = XDocument.Load(xmlpath); XElement element = xd.Descendants("person").First(); return new Person { FirstName = element.Element("firstname").value, LastName = element.Element("lastname").value }); }Abhinav Pal13 reputationPosted Oct 15, 2015, 11:08 PM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts