• 大小: 14.47MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-01
  • 语言: C#
  • 标签: aspnet  

资源简介

一套不错的微博系统,asp.net+sql2005

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using Weibo.Entity;
using Weibo.Data;
using Weibo.Config;
using Weibo.Common;

namespace Weibo.Business
{
public class BlackLists
{
public static long CreateBlackList(BlackList blackList )
{
try
{
if (blackList == null)
return -1;
return Data.BlackLists.CreateBlackList(blackList);
}
catch (Exception ex)
{
                Logs.WriteErrorLog(ex);
return -1;
}
}

public static bool DelBlackList(long id)
{
try
{
if (id<=0)
return false;
return Data.BlackLists.DelBlackList(id);
}
catch (Exception ex)
{
                Logs.WriteErrorLog(ex);
return false;
                
}
}

        public static bool DelBlackListByUID(long uidlong pulledUid)
        {
            try
            {
                if (uid <= 0||pulledUid<=0)
                    return false;
                return Data.BlackLists.DelBlackListByUID(uidpulledUid);
            }
            catch (Exception ex)
            {
                Logs.WriteErrorLog(ex);
                return false;
              
            }
        }

public static bool IsInBlackList(long uidlong pulledUid)
{
try
{
if (uid <= 0||pulledUid<=0)
return false;
return Data.BlackLists.IsInBlackList(uidpulledUid);
}
catch (Exception ex)
{
                Logs.WriteErrorLog(ex);
return false;
                
}
}

public static IList GetBlackListByUID(long uid)
{
try
{
if (uid <= 0)
return null;
return Data.BlackLists.GetBlackListByUID(uid);
}
catch (Exception ex)
{
                Logs.WriteErrorLog(ex);
return null;
                
}
}

public static IList GetMyBlackList(int pageIndex int pageSizelong uidref int rowCount)
{
try
{
string where = “UID=“ + uid.ToString();
return Data.BlackLists.GetBlackListByPager(pageIndexpageSizewhereref rowCount);
}
catch (Exception ex)
{
                Logs.WriteErrorLog(ex);
return null;
                
}
}


}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件        2192  2012-04-20 10:20  51Aspx源码必读.txt
     文件        4945  2012-04-20 10:20  from.gif
     文件        5946  2012-04-20 10:20  Weibo.sln
     文件      304128  2012-04-20 10:20  Weibo.suo
     文件         125  2012-04-20 10:20  最新Asp.Net源码下载.url
     文件     4194304  2012-04-20 10:20  DB_51aspx\Weibo.mdf
     文件     1048576  2012-04-20 10:20  DB_51aspx\Weibo_log.ldf
     文件        2233  2012-04-20 10:20  Weibo.Business\BlackLists.cs
     文件        2658  2012-04-20 10:20  Weibo.Business\Careers.cs
     文件       12646  2012-04-20 10:20  Weibo.Business\Comments.cs
     文件        1810  2012-04-20 10:20  Weibo.Business\Companies.cs
     文件         639  2012-04-20 10:20  Weibo.Business\Complaints.cs
     文件        2649  2012-04-20 10:20  Weibo.Business\Educations.cs
     文件        8292  2012-04-20 10:20  Weibo.Business\Emails.cs
     文件        1166  2012-04-20 10:20  Weibo.Business\expressions.cs
     文件        1648  2012-04-20 10:20  Weibo.Business\Froms.cs
     文件        4689  2012-04-20 10:20  Weibo.Business\Groups.cs
     文件        2149  2012-04-20 10:20  Weibo.Business\Logs.cs
     文件        7687  2012-04-20 10:20  Weibo.Business\Messages.cs
     文件       25038  2012-04-20 10:20  Weibo.Business\MiniBlogs.cs
     文件        3477  2012-04-20 10:20  Weibo.Business\Musics.cs
     文件        5921  2012-04-20 10:20  Weibo.Business\Notices.cs
     文件       15232  2012-04-20 10:20  Weibo.Business\Pics.cs
     文件        1782  2012-04-20 10:20  Weibo.Business\Schools.cs
     文件        5415  2012-04-20 10:20  Weibo.Business\Tags.cs
     文件        2724  2012-04-20 10:20  Weibo.Business\Themes.cs
     文件        4470  2012-04-20 10:20  Weibo.Business\Topics.cs
     文件        2398  2012-04-20 10:20  Weibo.Business\Types.cs
     文件        6563  2012-04-20 10:20  Weibo.Business\Urls.cs
     文件       26048  2012-04-20 10:20  Weibo.Business\Users.cs
     文件        4776  2012-04-20 10:20  Weibo.Business\Videos.cs
............此处省略2100个文件信息

评论

共有 条评论