/// <summary> /// KhoaHT added 4/4/2008 /// Add a new stattic method /// </summary> /// <returns></returns> public static DataSet RetrieveAll() { ConnectionFactory Connection = InternalGlobal.MakeConnectionFactory(); PrArea area = new PrArea(Connection); try { Connection.Open(); return area.Search(); } catch (Exception exp) { throw exp; } finally { Connection.Close(); } }
/// <summary> /// @author : TrungMT /// @CreateDate:04/03/2008 /// @Description: Retrieves all area /// </summary> public DataSet Retrieves(Area pArea) { PrArea area = new PrArea(Connection); try { Open(); return area.Search(pArea); } catch (Exception exp) { throw exp; } finally { Close(); } }