public IList <T> GetList <T>(CoreBase _Core) { //_Core = (CoreBase) HttpContext.Current.Session["Core"]; DMLManager dml; try { dml = new DMLManager(_BLLCore); dml.invoke(); _BLLCoreList = dml.DMLCoreList; dml.DMLCoreList = null; dml = null; if (_BLLCoreList != null) { return(CastList <T>(_BLLCoreList)); } else { return(new List <T>()); } } catch (Exception) { throw; } finally { // } }
public T GetObjectByID <T>(CoreBase _Core) { DMLManager dml; if (_BLLCore.Action == InvokeOperation.Type.GS) { dml = new DMLManager(_BLLCore); dml.invoke(); _BLLCore = dml.DMLCore; dml.DMLCore = null; return(Cast <T>(_BLLCore)); } // by shalin on 03.02.2011 else if (_BLLCore.Action == InvokeOperation.Type.CQ) { dml = new DMLManager(_BLLCore); dml.invoke(); _BLLCore = dml.DMLCore; dml.DMLCore = null; return(Cast <T>(_BLLCore)); } else { throw new Exception("Action is not Defined for the current Operation");; } //return _BLLCore; }
public virtual void invoke() { DMLManager dml; if (_BLLCore != null && _BLLCore.Action != null) { //createParameterSet(); dml = new DMLManager(_BLLCore); dml.invoke(); } else { throw new Exception(this.ToString() + ":" + MethodBase.GetCurrentMethod().Name + ";" + " Object Missing"); } }