コード例 #1
0
        public static Employee SelectEmployeeByID(string id)
        {
            var     dal = new EmployeeDAL();
            DataRow row = dal.SelectEmployeeByID(id);

            var ins = new Employee();

            ins.Bind(row);

            return(ins);
        }
コード例 #2
0
        public static Employee GetEmployeeByUsername(string username)
        {
            var dal = new EmployeeDAL();

            DataRow row = dal.GetEmployeeByUsername(username);

            var instance = new Employee();

            instance.Bind(row);

            return(instance);
        }
コード例 #3
0
        public static Employee SelectEmployeeByID(string id)
        {
            var dal = new EmployeeDAL();
            DataRow row = dal.SelectEmployeeByID(id);

            var ins = new Employee();
            ins.Bind(row);

            return ins;
        }
コード例 #4
0
        public static Employee GetEmployeeByUsername(string username)
        {
            var dal = new EmployeeDAL();

            DataRow row = dal.GetEmployeeByUsername(username);

            var instance = new Employee();
            instance.Bind(row);

            return instance;
        }