Ejemplo n.º 1
0
        private void DataPortal_Fetch()
        {
            using (var ctx = ContextManager <EFDataContext> .GetManager(Database.EFramework))
            {
                var i = from p in ctx.DataContext.UP_ISBTypeCLT
                        select UP_ISBTypeCLTFactory.Fetch(p);

                this.RaiseListChangedEvents = false;
                this.IsReadOnly             = false;
                this.AddRange(i);
                this.IsReadOnly             = true;
                this.RaiseListChangedEvents = true;
            }
        }
Ejemplo n.º 2
0
        private void DataPortal_Fetch(Common.Business.LambdaExpression lambda)
        {
            using (var ctx = ContextManager <EFDataContext> .GetManager(Database.EFramework))
            {
                var exp = lambda.Resolve <UP_ISBTypeCLT>();
                var i   = from p in ctx.DataContext.UP_ISBTypeCLT.Where(exp)
                          select UP_ISBTypeCLTFactory.Fetch(p);

                this.RaiseListChangedEvents = false;
                this.IsReadOnly             = false;
                this.AddRange(i);
                this.IsReadOnly             = true;
                this.RaiseListChangedEvents = true;
            }
        }