Пример #1
0
        /// <summary>
        /// Select all contacts
        /// </summary>
        private void SelectAllContact()
        {
            if (Contacts == null || !Contacts.Any())
            {
                return;
            }

            Contacts.All(x => x.IsChecked = SelectAll);
        }
        public List<dynamic> GetAll()
        {
            //var table = new DynamicModel("AdventureWorks", "Person.Contact", "ContactID");
            var table = new Contacts();
            return table.All().ToList();
            //return table.Query("SELECT * FROM Person.Contact").ToList();

            //dynamic table = new Contacts();
            //return (table.Find() as IEnumerable<dynamic>).ToList();
        }
Пример #3
0
        public async Task OnGetAsync()
        {
            ContactList = await _contacts.All();

            System.Console.WriteLine("Contact List Count: {0}", ContactList.Count());
        }
Пример #4
0
 protected override bool OnSaveCanExecute()
 {
     return(Customer != null && !Customer.HasErrors && Contacts.All(x => !x.HasErrors) && HasChanges);
 }