Beispiel #1
0
        async Task <bool> IsUsed(string p_keyword)
        {
            int cnt = await AtPublish.GetScalar <int>("发布-关键字引用数", new { keyword = p_keyword });

            if (cnt > 0)
            {
                Kit.Warn("关键字已被引用,无法修改或删除!");
                return(true);
            }
            return(false);
        }
Beispiel #2
0
        async Task <bool> IsUsed(long p_id)
        {
            int cnt = await AtPublish.GetScalar <int>("发布-专辑引用数", new { AlbumID = p_id });

            if (cnt > 0)
            {
                Kit.Warn("专辑已被引用,无法修改或删除!");
                return(true);
            }
            return(false);
        }