Example #1
0
        public void phoneNumberTypesTest()
        {
            var context             = new Entities();
            var phoneNumberTypes    = new PhoneNumberTypes(context);
            var typesOfPhoneNumbers = phoneNumberTypes.phoneNumberTypes().ToList();

            foreach (var item in typesOfPhoneNumbers)
            {
                Console.WriteLine(item.Name);
            }
        }
Example #2
0
 private void loadPhoneNumberTypes()
 {
     using (var context = new Entities())
     {
         var PhoneNumberTypes = new PhoneNumberTypes(context);
         var phoneNumberTypes = PhoneNumberTypes.phoneNumberTypes().ToList();
         this.cellPhoneTypes.DataSource = phoneNumberTypes;
     }
     this.cellPhoneTypes.DisplayMember = "Name";
     this.cellPhoneTypes.ValueMember   = "PhoneNumberTypeID";
 }