コード例 #1
0
        public static IEnumerable <UserPermissionModel> SelectAllUserPermission()
        {
            var dt = DALUserPermission.SelectAllUserPermission();

            if (dt == null || dt.Rows.Count <= 0)
            {
                return(new UserPermissionModel[0]);
            }
            return(dt.Rows.Cast <DataRow>().Select(row => new UserPermissionModel(row)));
        }