How to create sample entity class for Employee with following fields Name,Address,EmailId,PhoneNumber
-
your question is very obscure! please clearly define what you want!Numan– Numan2011-05-24 06:18:33 +00:00Commented May 24, 2011 at 6:18
-
Are you talking about the Entity Framework?Numan– Numan2011-05-24 06:51:10 +00:00Commented May 24, 2011 at 6:51
-
Ya , I want some simple example to understand the concept clearlymahesh– mahesh2011-05-24 06:56:36 +00:00Commented May 24, 2011 at 6:56
Add a comment
|
2 Answers
Check these quick starters on MSDN http://msdn.microsoft.com/en-us/library/bb399182.aspx
It is not mandatory to create your own entity classes manually, MS provides a wizard to generate the model from an existing DB. So simply add a model to your project and it will generate the entities for you!
Comments
public class ClsCollegeData
{
public string CollegeName;
public string CollegePapularName;
public string CollegeShortName;
public string StreetAddrs;
public string CollegeMobileNo;
public string CollegePhone1;
public string CollegePhone2;
public string CollegeFaxNo;
public string CollegeEmailId;
public string YOS;
public string CollegeCityName;
public int CollegeCityId;
public int CollegeStateId;
public string CollegeImage;
public string CollegeManagement;
public string CollegeDescription;
public string CollegeNRISeats;
public string CollegeMQS;
public string CollegeTrust;
public int CourseId;
public string CollegeConatctPersonName;
public string CollegeConatctPersonMobile;
public string CollegeContactPersonEmail;
public string CollegeConatctPersonDesg;
public string CollegeHostalInfo;
public int StateId;
public string CollegeWebSite;
public int CollegeUniversity;
public string CollegeEligibilty;
}