0

How to create sample entity class for Employee with following fields Name,Address,EmailId,PhoneNumber

3
  • your question is very obscure! please clearly define what you want! Commented May 24, 2011 at 6:18
  • Are you talking about the Entity Framework? Commented May 24, 2011 at 6:51
  • Ya , I want some simple example to understand the concept clearly Commented May 24, 2011 at 6:56

2 Answers 2

1

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!

Sign up to request clarification or add additional context in comments.

Comments

0
  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;
}

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.