Esempio n. 1
0
        public DataPortalResult Update(object obj, DataPortalContext context)
        {
            try
            {
                SetContext(context);

                var portal = DataPortalFactory.Factory();
                var result = portal.Update(obj, context);

                return(result);
            }
            finally
            {
                ClearContext(context);
            }
        }
Esempio n. 2
0
        public DataPortalResult Action(Type objectType, string methodName, object criteria, DataPortalContext context)
        {
            try
            {
                SetContext(context);

                var portal = DataPortalFactory.Factory();
                var result = portal.Action(objectType, methodName, criteria, context);

                return(result);
            }
            finally
            {
                ClearContext(context);
            }
        }
Esempio n. 3
0
        public DataPortalResult Fetch(Type objectType, object criteria, DataPortalContext context)
        {
            try
            {
                SetContext(context);

                var portal = DataPortalFactory.Factory();
                var result = portal.Fetch(objectType, criteria, context);

                return(result);
            }
            finally
            {
                ClearContext(context);
            }
        }