コード例 #1
0
        public static Users GetUserByUserID(string username)
        {
            var dal = new UserDAL();

            DataRow row = dal.GetUserByUserID(username);

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

            return instance;
        }
コード例 #2
0
        public static List<Users> GetAllUserData()
        {
            var dal = new UserDAL();
            var collection = new List<Users>();

            foreach(DataRow row in dal.GetAllUserData().Rows){
                var instance = new Users();
                instance.Bind(row);
                collection.Add(instance);
            }

            return collection;
        }