Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Data.Linq.Mapping;
- namespace finalProject
- {
- [Table(Name="Customers")]
- class entityCustomer
- {
- private int _customerID;
- private string _firstName;
- private string _lastName;
- private string _homeAddress;
- private string _phoneNumb;
- private string _emailAddress;
- public entityCustomer()
- {
- }
- public entityCustomer(string custFirst, string custLast, string custAddress, string custPhone, string custEmail)
- {
- firstName = custFirst;
- lastName = custLast;
- homeAddress = custAddress;
- phoneNumb = custPhone;
- emailAddress = custEmail;
- }
- [Column(IsDbGenerated = true, IsPrimaryKey = true, AutoSync = AutoSync.OnInsert, Storage = "_customerID")]
- public int customerID {
- get
- {
- return _customerID;
- }
- set
- {
- _customerID = value;
- }
- }
- [Column(Storage = "_firstName")]
- public string firstName
- {
- get
- {
- return _firstName;
- }
- set
- {
- _firstName = value;
- }
- }
- [Column(Storage = "_lastName")]
- public string lastName
- {
- get
- {
- return _lastName;
- }
- set
- {
- _lastName = value;
- }
- }
- [Column(Storage = "_homeAddress")]
- public string homeAddress
- {
- get
- {
- return _homeAddress;
- }
- set
- {
- _homeAddress = value;
- }
- }
- [Column(Storage = "_phoneNumb")]
- public string phoneNumb
- {
- get
- {
- return _phoneNumb;
- }
- set
- {
- _phoneNumb = value;
- }
- }
- [Column(Storage = "_emailAddress")]
- public string emailAddress
- {
- get
- {
- return _emailAddress;
- }
- set
- {
- _emailAddress = value;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement