public virtual PermissionRow GetByPrimaryKey(int permission_ID)
        {
            string     whereSql = "[Permission_ID]=" + _db.CreateSqlParameterName("Permission_ID");
            IDbCommand cmd      = CreateGetCommand(whereSql, null);

            AddParameter(cmd, "Permission_ID", permission_ID);
            PermissionRow[] tempArray = MapRecords(cmd);
            return(0 == tempArray.Length ? null : tempArray[0]);
        }
        public virtual User_CategoryRow GetByPrimaryKey(int uc_id)
        {
            string     whereSql = "[UC_ID]=" + _db.CreateSqlParameterName("UC_ID");
            IDbCommand cmd      = CreateGetCommand(whereSql, null);

            AddParameter(cmd, "UC_ID", uc_id);
            User_CategoryRow[] tempArray = MapRecords(cmd);
            return(0 == tempArray.Length ? null : tempArray[0]);
        }
Exemple #3
0
        public virtual ChannelRow GetByPrimaryKey(int channel_ID)
        {
            string     whereSql = "[Channel_ID]=" + _db.CreateSqlParameterName("Channel_ID");
            IDbCommand cmd      = CreateGetCommand(whereSql, null);

            AddParameter(cmd, "Channel_ID", channel_ID);
            ChannelRow[] tempArray = MapRecords(cmd);
            return(0 == tempArray.Length ? null : tempArray[0]);
        }