Exemplo n.º 1
0
        private void DataPortal_Fetch()
        {
            bool rlce = RaiseListChangedEvents;

            RaiseListChangedEvents = false;
            IsReadOnly             = false;

            using (var dalManager = DalFactory.GetManager()) {
                IPersonDal        dal  = dalManager.GetProvider <IPersonDal>();
                IList <PersonDto> data = dal.Fetch();

                foreach (var item in data)
                {
                    Add(DataPortal.FetchChild <PersonInfo>(item));
                }
            }
        }