コード例 #1
0
ファイル: Employee.cs プロジェクト: aymanmirghani/SynTech
        public EmployeeCollection GetEmployeesCollection(string whereExpression, string orderByExpression)
        {
            EmployeeCollection col  = new EmployeeCollection();
            EmployeeData       data = new EmployeeData();

            try
            {
                col = data.GetEmployeeDynamicCollection(whereExpression, orderByExpression);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetEmployeesCollection");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(col);
        }
コード例 #2
0
ファイル: Employee.cs プロジェクト: aymanmirghani/SynTech
        public EmployeeCollection GetAllEmployeesCollection()
        {
            EmployeeCollection col  = new EmployeeCollection();
            EmployeeData       data = new EmployeeData();

            try
            {
                col = data.GetAllEmployeesCollection();
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetAllEmployeesCollection");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(col);
        }