Ejemplo n.º 1
0
        public void AdoptionApplication()
        {
            Console.Write("Welcome to the adoption application. Pleae tell us some basic information about yourself so we can contact you. After filling out this form, you will be sent to the serch menu where you can find out everything you want to know about ever animal in our system");
            Console.Write("First Name:");
            adopter.firstName = Console.ReadLine();
            Console.Write("Last Name");
            adopter.lastName = Console.ReadLine();
            Console.Write("Phone number (no spaces, dashes, or peridos");
            adopter.phone = Int32.Parse(Console.ReadLine());
            Console.Write("What kind of animal do you want to adopt? One word");
            adopter.typeOfAnimalWanted = Console.ReadLine();

            DataClasses1DataContext db = new DataClasses1DataContext();

            AdopterProfile newAdopter = new AdopterProfile();

            newAdopter.FirstName        = adopter.firstName;
            newAdopter.LastName         = adopter.lastName;
            newAdopter.PhoneNUmber      = adopter.phone;
            newAdopter.typeAnimalWanted = adopter.typeOfAnimalWanted;

            db.AdopterProfiles.InsertOnSubmit(newAdopter);
            db.SubmitChanges();

            Console.Write("Thanks " + newAdopter.FirstName + "we'll contact you when we have an animal that you'd be interested in");
        }
Ejemplo n.º 2
0
 partial void UpdateAdopterProfile(AdopterProfile instance);
Ejemplo n.º 3
0
 partial void DeleteAdopterProfile(AdopterProfile instance);
Ejemplo n.º 4
0
 partial void InsertAdopterProfile(AdopterProfile instance);