这两部分主要是对Dal层的引用和初始化Dal层,代码量比较少。
的Dal层的改天再发吧~
BLL层:BllPageNav.cs
using System;
using System.Collections;
using System.Data;
using System.Web;
using System.Web.UI;
using SinaSNS.Dal;
using SinaSNS.Model;
namespace SinaSNS.InterService
{
/// <summary>
/// 逻辑类 BllPageNav
/// </summary>
public class BllPageNav
{
#region 输出分页
/// <summary>
/// 输出对应页码数据
/// </summary>
/// <returns></returns>
public DataTable OutDT(MPageNav mpn)
{
return (new DalPageNav()).OutDT(mpn);
}
#endregion
}
}
Interface层:IPageNav.cs
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using SinaSNS.Model;
namespace SinaSNS.Interface
{
/// <summary>
/// 接口层 IPageNav
/// </summary>
public interface IPageNav
{
DataTable OutDT(MPageNav mpn);
}
}