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); } }
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); } }
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); } }