master
editor 3 weeks ago
commit 3dbd51c388

@ -0,0 +1,39 @@
MVC多层分页演示程序源码
一、源码描述
环境VS2022 sql2019
二、功能介绍
该程序通过socan代码生成器生成底层DAL、BLL、Model、IDAL等通过该示例对研究三层的使用很有帮助,关于详细说明请参照代码佩文
数据库操作使用SqlHelper
该程序原本采用VS2005+Sql2000数据库(DB_51Aspx下为数据库文件附加即可)
现已升级至VS2022+sql2019
三、注意事项
1、在项目web.config修改数据库连接字符串附加数据库。
2、ctrl+F5运行即可。
作者: socan
如需获得该源码的视频、更新等更多资料请访问: https://www.51aspx.com/Code/mvcPager
------------------------------------------------------------------------------------------------
源码服务专家
官网: https://www.51aspx.com
讨论圈: https://club.51aspx.com/
平台声明:
1.51Aspx平台上提供下载的资源为免费、共享、商业三类源码,其中免费和共享源码仅供个人学习和研究使用,商业源码请在相应的授权许可条件下使用;
2.51Aspx平台对提供下载的软件及其它资源不拥有任何权利,其版权归属源码合法拥有者所有;
3.著作权人发现本网站载有侵害其合法权益的内容或作品,请与我们联系( 登录官网与客服反馈或发送邮件到support@51Aspx.com
4.51Aspx平台不保证提供的下载资源的准确性、安全性和完整性;
友情提示:
一般数据库文件默认在 DB_51Aspx 文件夹下
默认账号密码一般均为51Aspx
关于源码使用常见问题及解决方案,请参阅: https://www.51aspx.com/Help

@ -0,0 +1,15 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{95739FF5-08BA-4639-90AA-DFBCC2E3921F}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>BLL</RootNamespace>
<AssemblyName>BLL</AssemblyName>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Web;
using System.Web.Caching;
namespace BLL
{
public class Caches
{
/// <summary>
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
/// </summary>
public static object TryAddCache(string key, object value, CacheItemPriority priority)

@ -0,0 +1,15 @@
//SocanCode 代码生成器自动生成
//作者:廖勇军 QQ:123156272
//生成时间:2007-7-26 21:59:29
using System;
using System.Data;
using DALFactory;
using IDAL;
using Model;
using System.Collections.Generic;
using System.Text;
using System.Web;
namespace BLL
{

@ -0,0 +1,15 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过下列属性集
// 控制。更改这些属性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("BLL")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("YZ")]
[assembly: AssemblyProduct("BLL")]
[assembly: AssemblyCopyright("版权所有 (C) YZ 2007")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

@ -0,0 +1,11 @@
bin\Debug\BLL.dll
bin\Debug\BLL.pdb
bin\Debug\DALFactory.dll
bin\Debug\IDAL.dll
bin\Debug\Model.dll
bin\Debug\Model.pdb
bin\Debug\IDAL.pdb
bin\Debug\DALFactory.pdb
obj\Debug\ResolveAssemblyReference.cache
obj\Debug\BLL.dll
obj\Debug\BLL.pdb

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.0", FrameworkDisplayName = ".NET Framework 4")]

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]

@ -0,0 +1,13 @@
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\BLL\bin\Debug\BLL.dll
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\BLL\bin\Debug\BLL.pdb
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\BLL\bin\Debug\DALFactory.dll
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\BLL\bin\Debug\IDAL.dll
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\BLL\bin\Debug\Model.dll
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\BLL\bin\Debug\DALFactory.pdb
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\BLL\bin\Debug\IDAL.pdb
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\BLL\bin\Debug\Model.pdb
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\BLL\obj\Debug\BLL.csproj.AssemblyReference.cache
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\BLL\obj\Debug\BLL.csproj.CoreCompileInputs.cache
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\BLL\obj\Debug\BLL.csproj.CopyComplete
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\BLL\obj\Debug\BLL.dll
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\BLL\obj\Debug\BLL.pdb

@ -0,0 +1,15 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{95739FF5-08BA-4639-90AA-DFBCC2E3921F}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>BLL</RootNamespace>
<AssemblyName>BLL</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Web;
using System.Web.Caching;
namespace BLL
{
public class Caches
{
/// <summary>
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
/// </summary>
public static object TryAddCache(string key, object value, CacheItemPriority priority)

@ -0,0 +1,15 @@
//SocanCode 代码生成器自动生成
//作者:廖勇军 QQ:123156272
//生成时间:2007-7-26 21:59:29
using System;
using System.Data;
using DALFactory;
using IDAL;
using Model;
using System.Collections.Generic;
using System.Text;
using System.Web;
namespace BLL
{

@ -0,0 +1,15 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过下列属性集
// 控制。更改这些属性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("BLL")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("YZ")]
[assembly: AssemblyProduct("BLL")]
[assembly: AssemblyCopyright("版权所有 (C) YZ 2007")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

@ -0,0 +1,15 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{4EAABE68-E8A3-4D35-9743-09468EB44C29}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>DALFactory</RootNamespace>
<AssemblyName>DALFactory</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>

@ -0,0 +1,15 @@
//SocanCode 代码生成器自动生成
//作者:廖勇军 QQ:123156272
//生成时间:2007-7-22 15:58:20
using System;
using System.Configuration;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using IDAL;
namespace DALFactory
{
public class DataAccess
{

@ -0,0 +1,15 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过下列属性集
// 控制。更改这些属性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("DALFactory")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("YZ")]
[assembly: AssemblyProduct("DALFactory")]
[assembly: AssemblyCopyright("版权所有 (C) YZ 2007")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

@ -0,0 +1,15 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{BADDC2BE-DD90-49F7-88CD-A21E93663172}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>DBUtility</RootNamespace>
<AssemblyName>DBUtility</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>

@ -0,0 +1,15 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过下列属性集
// 控制。更改这些属性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("DBUtility")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("YZ")]
[assembly: AssemblyProduct("DBUtility")]
[assembly: AssemblyCopyright("版权所有 (C) YZ 2007")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Data;
using System.Text;
using System.Data.SqlClient;
using System.Configuration;
using System.Collections;
namespace DBUtility
{
/// <summary>
/// <20><><EFBFBD>ݷ<EFBFBD><DDB7>ʻ<EFBFBD><CABB><EFBFBD><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>SQLServer)
/// </summary>
public abstract class SqlHelper

@ -0,0 +1,15 @@
//SocanCode 代码生成器自动生成
//作者:廖勇军 QQ:123156272
//生成时间:2007-7-26 21:59:29
//该源码下载自www.51aspx.com()
using System;
using System.Data;
using System.Collections;
using System.Collections.Generic;
namespace IDAL
{
/// <summary>
/// 接口层 ICategory
/// </summary>

@ -0,0 +1,15 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{39D002DA-E074-4237-9069-87B47297C02D}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>IDAL</RootNamespace>
<AssemblyName>IDAL</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>

@ -0,0 +1,15 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过下列属性集
// 控制。更改这些属性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("IDAL")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("YZ")]
[assembly: AssemblyProduct("IDAL")]
[assembly: AssemblyCopyright("版权所有 (C) YZ 2007")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

@ -0,0 +1,15 @@
//SocanCode 代码生成器自动生成
//作者:廖勇军 QQ:123156272
//生成时间:2007-7-22 15:58:20
using System;
namespace Model
{
/// <summary>
/// 实体类 Category
/// </summary>
public class Category
{
public Category()
{ }

@ -0,0 +1,15 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{80106719-8219-4348-91FD-493DAA19B5A3}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Model</RootNamespace>
<AssemblyName>Model</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>

@ -0,0 +1,15 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过下列属性集
// 控制。更改这些属性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Model")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("YZ")]
[assembly: AssemblyProduct("Model")]
[assembly: AssemblyCopyright("版权所有 (C) YZ 2007")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

@ -0,0 +1,15 @@
//SocanCode 代码生成器自动生成
//作者:廖勇军 QQ:123156272
//生成时间:2007-7-26 21:59:29
using System;
using System.Data;
using System.Text;
using System.Data.SqlClient;
using IDAL;
using DBUtility;
using System.Collections;
using System.Collections.Generic;
//该源码下载自www.51aspx.com()

@ -0,0 +1,15 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过下列属性集
// 控制。更改这些属性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("SqlServerDAL")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("YZ")]
[assembly: AssemblyProduct("SqlServerDAL")]
[assembly: AssemblyCopyright("版权所有 (C) YZ 2007")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

@ -0,0 +1,15 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{17691D95-B5E5-421A-A9E1-2658774C6789}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>SQLServerDAL</RootNamespace>
<AssemblyName>SQLServerDAL</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>

@ -0,0 +1,15 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{4EAABE68-E8A3-4D35-9743-09468EB44C29}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>DALFactory</RootNamespace>
<AssemblyName>DALFactory</AssemblyName>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>

@ -0,0 +1,15 @@
//SocanCode 代码生成器自动生成
//作者:廖勇军 QQ:123156272
//生成时间:2007-7-22 15:58:20
using System;
using System.Configuration;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using IDAL;
namespace DALFactory
{
public class DataAccess
{

@ -0,0 +1,15 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过下列属性集
// 控制。更改这些属性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("DALFactory")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("YZ")]
[assembly: AssemblyProduct("DALFactory")]
[assembly: AssemblyCopyright("版权所有 (C) YZ 2007")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

@ -0,0 +1,9 @@
bin\Debug\DALFactory.dll
bin\Debug\DALFactory.pdb
bin\Debug\IDAL.dll
bin\Debug\Model.dll
bin\Debug\Model.pdb
bin\Debug\IDAL.pdb
obj\Debug\ResolveAssemblyReference.cache
obj\Debug\DALFactory.dll
obj\Debug\DALFactory.pdb

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.0", FrameworkDisplayName = ".NET Framework 4")]

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]

@ -0,0 +1,11 @@
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\DALFactory\bin\Debug\DALFactory.dll
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\DALFactory\bin\Debug\DALFactory.pdb
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\DALFactory\bin\Debug\IDAL.dll
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\DALFactory\bin\Debug\Model.dll
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\DALFactory\bin\Debug\IDAL.pdb
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\DALFactory\bin\Debug\Model.pdb
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\DALFactory\obj\Debug\DALFactory.csproj.AssemblyReference.cache
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\DALFactory\obj\Debug\DALFactory.csproj.CoreCompileInputs.cache
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\DALFactory\obj\Debug\DALFactory.csproj.CopyComplete
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\DALFactory\obj\Debug\DALFactory.dll
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\DALFactory\obj\Debug\DALFactory.pdb

@ -0,0 +1,15 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{BADDC2BE-DD90-49F7-88CD-A21E93663172}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>DBUtility</RootNamespace>
<AssemblyName>DBUtility</AssemblyName>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>

@ -0,0 +1,15 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过下列属性集
// 控制。更改这些属性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("DBUtility")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("YZ")]
[assembly: AssemblyProduct("DBUtility")]
[assembly: AssemblyCopyright("版权所有 (C) YZ 2007")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Data;
using System.Text;
using System.Data.SqlClient;
using System.Configuration;
using System.Collections;
namespace DBUtility
{
/// <summary>
/// <20><><EFBFBD>ݷ<EFBFBD><DDB7>ʻ<EFBFBD><CABB><EFBFBD><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>SQLServer)
/// </summary>
public abstract class SqlHelper

@ -0,0 +1,5 @@
bin\Debug\DBUtility.dll
bin\Debug\DBUtility.pdb
obj\Debug\ResolveAssemblyReference.cache
obj\Debug\DBUtility.dll
obj\Debug\DBUtility.pdb

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.0", FrameworkDisplayName = ".NET Framework 4")]

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]

@ -0,0 +1,6 @@
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\DBUtility\bin\Debug\DBUtility.dll
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\DBUtility\bin\Debug\DBUtility.pdb
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\DBUtility\obj\Debug\DBUtility.csproj.AssemblyReference.cache
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\DBUtility\obj\Debug\DBUtility.csproj.CoreCompileInputs.cache
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\DBUtility\obj\Debug\DBUtility.dll
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\DBUtility\obj\Debug\DBUtility.pdb

@ -0,0 +1,15 @@
//SocanCode 代码生成器自动生成
//作者:廖勇军 QQ:123156272
//生成时间:2007-7-26 21:59:29
//该源码下载自www.51aspx.com()
using System;
using System.Data;
using System.Collections;
using System.Collections.Generic;
namespace IDAL
{
/// <summary>
/// 接口层 ICategory
/// </summary>

@ -0,0 +1,15 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{39D002DA-E074-4237-9069-87B47297C02D}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>IDAL</RootNamespace>
<AssemblyName>IDAL</AssemblyName>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>

@ -0,0 +1,15 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过下列属性集
// 控制。更改这些属性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("IDAL")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("YZ")]
[assembly: AssemblyProduct("IDAL")]
[assembly: AssemblyCopyright("版权所有 (C) YZ 2007")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.0", FrameworkDisplayName = ".NET Framework 4")]

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]

@ -0,0 +1,9 @@
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\IDAL\bin\Debug\IDAL.dll
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\IDAL\bin\Debug\IDAL.pdb
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\IDAL\bin\Debug\Model.dll
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\IDAL\bin\Debug\Model.pdb
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\IDAL\obj\Debug\IDAL.csproj.AssemblyReference.cache
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\IDAL\obj\Debug\IDAL.csproj.CoreCompileInputs.cache
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\IDAL\obj\Debug\IDAL.csproj.CopyComplete
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\IDAL\obj\Debug\IDAL.dll
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\IDAL\obj\Debug\IDAL.pdb

@ -0,0 +1,7 @@
bin\Debug\IDAL.dll
bin\Debug\IDAL.pdb
bin\Debug\Model.dll
bin\Debug\Model.pdb
obj\Debug\ResolveAssemblyReference.cache
obj\Debug\IDAL.dll
obj\Debug\IDAL.pdb

@ -0,0 +1,15 @@
//SocanCode 代码生成器自动生成
//作者:廖勇军 QQ:123156272
//生成时间:2007-7-22 15:58:20
using System;
namespace Model
{
/// <summary>
/// 实体类 Category
/// </summary>
public class Category
{
public Category()
{ }

@ -0,0 +1,15 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{80106719-8219-4348-91FD-493DAA19B5A3}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Model</RootNamespace>
<AssemblyName>Model</AssemblyName>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>

@ -0,0 +1,15 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过下列属性集
// 控制。更改这些属性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Model")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("YZ")]
[assembly: AssemblyProduct("Model")]
[assembly: AssemblyCopyright("版权所有 (C) YZ 2007")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.0", FrameworkDisplayName = ".NET Framework 4")]

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]

@ -0,0 +1,6 @@
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\Model\bin\Debug\Model.dll
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\Model\bin\Debug\Model.pdb
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\Model\obj\Debug\Model.csproj.AssemblyReference.cache
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\Model\obj\Debug\Model.csproj.CoreCompileInputs.cache
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\Model\obj\Debug\Model.dll
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\Model\obj\Debug\Model.pdb

@ -0,0 +1,5 @@
bin\Debug\Model.dll
bin\Debug\Model.pdb
obj\Debug\ResolveAssemblyReference.cache
obj\Debug\Model.dll
obj\Debug\Model.pdb

@ -0,0 +1,15 @@
//SocanCode 代码生成器自动生成
//作者:廖勇军 QQ:123156272
//生成时间:2007-7-26 21:59:29
using System;
using System.Data;
using System.Text;
using System.Data.SqlClient;
using IDAL;
using DBUtility;
using System.Collections;
using System.Collections.Generic;
//该源码下载自www.51aspx.com()

@ -0,0 +1,15 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过下列属性集
// 控制。更改这些属性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("SqlServerDAL")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("YZ")]
[assembly: AssemblyProduct("SqlServerDAL")]
[assembly: AssemblyCopyright("版权所有 (C) YZ 2007")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

@ -0,0 +1,15 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{17691D95-B5E5-421A-A9E1-2658774C6789}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>SQLServerDAL</RootNamespace>
<AssemblyName>SQLServerDAL</AssemblyName>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.0", FrameworkDisplayName = ".NET Framework 4")]

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]

@ -0,0 +1,13 @@
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\SqlServerDAL\bin\Debug\SQLServerDAL.dll
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\SqlServerDAL\bin\Debug\SQLServerDAL.pdb
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\SqlServerDAL\bin\Debug\DBUtility.dll
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\SqlServerDAL\bin\Debug\IDAL.dll
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\SqlServerDAL\bin\Debug\Model.dll
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\SqlServerDAL\bin\Debug\DBUtility.pdb
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\SqlServerDAL\bin\Debug\IDAL.pdb
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\SqlServerDAL\bin\Debug\Model.pdb
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\SqlServerDAL\obj\Debug\SQLServerDAL.csproj.AssemblyReference.cache
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\SqlServerDAL\obj\Debug\SQLServerDAL.csproj.CoreCompileInputs.cache
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\SqlServerDAL\obj\Debug\SQLServerDAL.csproj.CopyComplete
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\SqlServerDAL\obj\Debug\SQLServerDAL.dll
C:\Users\coder\Desktop\2024Code\6\20240613\mvcPager\SqlServerDAL\obj\Debug\SQLServerDAL.pdb

@ -0,0 +1,11 @@
bin\Debug\SQLServerDAL.dll
bin\Debug\SQLServerDAL.pdb
bin\Debug\DBUtility.dll
bin\Debug\IDAL.dll
bin\Debug\Model.dll
bin\Debug\DBUtility.pdb
bin\Debug\Model.pdb
bin\Debug\IDAL.pdb
obj\Debug\ResolveAssemblyReference.cache
obj\Debug\SQLServerDAL.dll
obj\Debug\SQLServerDAL.pdb

@ -0,0 +1,15 @@
<!DOCTYPE html>
<!-- saved from url=(0014)about:internet -->
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt"><head><meta content="en-us" http-equiv="Content-Language" /><meta content="text/html; charset=utf-16" http-equiv="Content-Type" /><title _locID="ConversionReport0">
Migration Report
</title><style>
/* Body style, for the entire document */
body
{
background: #F3F3F4;
color: #1E1E1F;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
padding: 0;
margin: 0;
}

@ -0,0 +1,39 @@
MVC多层分页演示程序源码
一、源码描述
环境VS2022 sql2019
二、功能介绍
该程序通过socan代码生成器生成底层DAL、BLL、Model、IDAL等通过该示例对研究三层的使用很有帮助,关于详细说明请参照代码佩文
数据库操作使用SqlHelper
该程序原本采用VS2005+Sql2000数据库(DB_51Aspx下为数据库文件附加即可)
现已升级至VS2022+sql2019
三、注意事项
1、在项目web.config修改数据库连接字符串附加数据库。
2、ctrl+F5运行即可。
作者: socan
如需获得该源码的视频、更新等更多资料请访问: https://www.51aspx.com/Code/mvcPager
------------------------------------------------------------------------------------------------
源码服务专家
官网: https://www.51aspx.com
讨论圈: https://club.51aspx.com/
平台声明:
1.51Aspx平台上提供下载的资源为免费、共享、商业三类源码,其中免费和共享源码仅供个人学习和研究使用,商业源码请在相应的授权许可条件下使用;
2.51Aspx平台对提供下载的软件及其它资源不拥有任何权利,其版权归属源码合法拥有者所有;
3.著作权人发现本网站载有侵害其合法权益的内容或作品,请与我们联系( 登录官网与客服反馈或发送邮件到support@51Aspx.com
4.51Aspx平台不保证提供的下载资源的准确性、安全性和完整性;
友情提示:
一般数据库文件默认在 DB_51Aspx 文件夹下
默认账号密码一般均为51Aspx
关于源码使用常见问题及解决方案,请参阅: https://www.51aspx.com/Help

@ -0,0 +1,15 @@
<%--SocanCode 代码生成器自动生成
作者:廖勇军 QQ:123156272
生成时间:2007-7-22 14:49:48--%>
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CategoryListControl.ascx.cs"
Inherits="Controls_CategoryListControl" %>
<asp:Repeater ID="rptCategory" runat="server" OnItemCommand="rptCategory_ItemCommand">
<HeaderTemplate>
<table id="CategoryList" style="width: 100%;">
<tr>
<td style="text-align: left;">
<input id="chkChooseAllCategory" type="checkbox" onclick="ChooseAll('CategoryList','chkChooseAllCategory')" />
名称
</td>
<td style="text-align: left;">
创建时间

@ -0,0 +1,15 @@
//SocanCode 代码生成器自动生成
//作者:廖勇军 QQ:123156272
//生成时间:2007-7-22 14:49:48
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;

@ -0,0 +1,8 @@
<%@ Control Language="C#" AutoEventWireup="true" Inherits="Controls_PageControl" CodeFile="PageControl.ascx.cs" %>
<asp:Literal ID="ltStatus" runat="server" Text="第0页/共0页,共0条记录"></asp:Literal>
<asp:HyperLink ID="hlFirstPage" runat="server">首页</asp:HyperLink>
<asp:HyperLink ID="hlPreviousPage" runat="server">上一页</asp:HyperLink>
<asp:HyperLink ID="hlNextPage" runat="server">下一页</asp:HyperLink>
<asp:HyperLink ID="hlLastPage" runat="server">末页</asp:HyperLink>
<asp:DropDownList ID="ddlGo" runat="server" >
</asp:DropDownList>

@ -0,0 +1,15 @@
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Security.Policy;
using System.Collections.Generic;
public partial class Controls_PageControl : System.Web.UI.UserControl
{

@ -0,0 +1,15 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Src="Controls/PageControl.ascx" TagName="PageControl" TagPrefix="uc2" %>
<%@ Register Src="Controls/CategoryListControl.ascx" TagName="CategoryListControl"
TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>MVC多层分页演示程序</title>
<script type="text/javascript" src="Include/Js/SocanCode.js"></script>
</head>
<body>

@ -0,0 +1,15 @@
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
//using System.Web.UI.MobileControls;
using System.Collections.Generic;
//<2F><>Դ<EFBFBD><D4B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>www.51aspx.com(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
public partial class _Default : System.Web.UI.Page

@ -0,0 +1,15 @@
// 颜色加深
function Fuscous(obj)
{
obj.style.backgroundColor='#D3DEEF';
}
//颜色恢复为白色
function Undertone(obj)
{
obj.style.backgroundColor='#ffffff';
}
//全选及全不选
function ChooseAll(sel,check)
{
var objtb=document.getElementById(sel);
var num=objtb.getElementsByTagName("input");

@ -0,0 +1,15 @@
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings>
<add key="WebDAL" value="SQLServerDAL"/>
<add key="pageSize" value="15"/>
</appSettings>
<connectionStrings>
<clear/>
<add name="LocalSqlServer" connectionString="Data Source=.;Initial Catalog=socanTest;Persist Security Info=True;User ID=sa;Password=51Aspx" providerName="System.Data.SqlClient"/>
</connectionStrings>
<!--
For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.
The following attributes can be set on the <httpRuntime> tag.
<system.Web>
Loading…
Cancel
Save