Reputation: 3207
How to create sample entity class for Employee with following fields Name,Address,EmailId,PhoneNumber
Upvotes: 0
Views: 1077
Reputation: 3948
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!
Upvotes: 1
Reputation: 1413
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;
}
Upvotes: 0