Solved

C# class creation

Posted on 2013-06-27
5
350 Views
Last Modified: 2013-07-22
I need to create a C# class with the following properties.  I am a novice in C#

{

    //This class should have the following properties
    //ID, Firstname, Lastname, Collection of Addresses, Email Address, Password, LastPurchased
    //Please decorate with Data Annotations. 
    //FirstName max length is 50, mandatory
    //Lastname max length is 50, mandatory
    //Email Address max length is 150, not mandatory
    //Password max length is 50, mandatory
    //LastPurchased not mandatory

    public class Customer
    {






    }





    }

    //This class should have the following properties
    //ID, AddressLine1, AddressLine2, City, State, Zip, Address Type
    //Please decorate with Data Annotations. 
    //AddressLine1 max length is 250, mandatory
    //AddressLine2 max length is 250, not mandatory
    //City max length is 100, mandatory
    //State max length is 2, mandatory
    //Zip max length is 10, not mandatory
    //Address Type is an enum field (please create with enum value of Home Address, Work Address, Mailing Address
    public class Address
    {



   }

Open in new window

0
Comment
Question by:pensiongenius
  • 3
  • 2
5 Comments
 
LVL 74

Expert Comment

by:käµfm³d 👽
Comment Utility
Is this school work?
0
 

Author Comment

by:pensiongenius
Comment Utility
No, but it is a challenge from a friend, this is only the first part.  He said I could use any resources I had at my disposal.  I am putting a similar challenge out to him in VB.net.
0
 
LVL 74

Expert Comment

by:käµfm³d 👽
Comment Utility
OK. So then what is your question?
0
 

Accepted Solution

by:
pensiongenius earned 0 total points
Comment Utility
no assistance is further needed with this question.
0
 

Author Closing Comment

by:pensiongenius
Comment Utility
I figured it out.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now