master
editor 2 months ago
commit 518646e595

@ -0,0 +1,40 @@
ASP.NET三层结构入门示例源码
一、源码描述
环境VS2022 sql2019
二、功能介绍
默认帐号密码51aspx
连接数据库配置一下web.config的SQLServer
WebDAL节点是需要生成的抽象工厂实例
本例子是3层结构+反射抽象工厂
三、注意事项
1、在项目web.config修改数据库连接字符串附加数据库。
2、管理员账号与密码51aspx 51aspx 。
3、ctrl+F5运行即可。
作者: 阿滨
如需获得该源码的视频、更新等更多资料请访问: https://www.51aspx.com/Code/AspNet_sancengjiegou
------------------------------------------------------------------------------------------------
源码服务专家
官网: 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>{4FCCA661-BCE8-4A38-A921-701F7CDFCAC8}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Logindemo.BLL</RootNamespace>
<AssemblyName>Logindemo.BLL</AssemblyName>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using Logindemo.IDAL;
using Logindemo.Model;
using Logindemo.DALFactory;
namespace Logindemo.BLL
{
public class Login
{
//<2F><><EFBFBD>÷<EFBFBD><C3B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD><CAB5>
private static readonly ILogin denglu = Logindemo.DALFactory.DataAccess.CreateLogin();
//<2F><>½
public int denglula(Logininfo log)
{

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

@ -0,0 +1,11 @@
bin\Debug\Logindemo.BLL.dll
bin\Debug\Logindemo.BLL.pdb
obj\Debug\ResolveAssemblyReference.cache
obj\Debug\Logindemo.BLL.dll
obj\Debug\Logindemo.BLL.pdb
bin\Debug\Logindemo.DALFactory.dll
bin\Debug\Logindemo.IDAL.dll
bin\Debug\Logindemo.Model.dll
bin\Debug\Logindemo.DALFactory.pdb
bin\Debug\Logindemo.Model.pdb
bin\Debug\Logindemo.IDAL.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\5\20240516\AspNet_sancengjiegou\BLL\obj\Debug\Logindemo.BLL.dll
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\BLL\obj\Debug\Logindemo.BLL.pdb
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\BLL\bin\Debug\Logindemo.BLL.dll
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\BLL\bin\Debug\Logindemo.BLL.pdb
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\BLL\bin\Debug\Logindemo.DALFactory.dll
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\BLL\bin\Debug\Logindemo.IDAL.dll
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\BLL\bin\Debug\Logindemo.Model.dll
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\BLL\bin\Debug\Logindemo.DALFactory.pdb
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\BLL\bin\Debug\Logindemo.IDAL.pdb
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\BLL\bin\Debug\Logindemo.Model.pdb
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\BLL\obj\Debug\BLL.csproj.AssemblyReference.cache
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\BLL\obj\Debug\BLL.csproj.CoreCompileInputs.cache
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\BLL\obj\Debug\BLL.csproj.CopyComplete

@ -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>{4FCCA661-BCE8-4A38-A921-701F7CDFCAC8}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Logindemo.BLL</RootNamespace>
<AssemblyName>Logindemo.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 Logindemo.IDAL;
using Logindemo.Model;
using Logindemo.DALFactory;
namespace Logindemo.BLL
{
public class Login
{
//<2F><><EFBFBD>÷<EFBFBD><C3B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD><CAB5>
private static readonly ILogin denglu = Logindemo.DALFactory.DataAccess.CreateLogin();
//<2F><>½
public int denglula(Logininfo log)
{

@ -0,0 +1,15 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过下列属性集
// 控制。更改这些属性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("BLL")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("BLL")]
[assembly: AssemblyCopyright("版权所有 (C) 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>{F15BD5D4-AE34-4833-A3ED-54548A817725}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Logindemo.DALFactory</RootNamespace>
<AssemblyName>Logindemo.DALFactory</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.Configuration;
using System.Reflection;
namespace Logindemo.DALFactory
{
/// download from www.51aspx.com(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD>ֳ<EFBFBD><D6B3>󹤳<EFBFBD>ģʽȥ<CABD><C8A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݷ<EFBFBD><DDB7>ʲ<EFBFBD><CAB2>ʵ<EFBFBD><CAB5>
public sealed class DataAccess
{
private static readonly string path = System.Configuration.ConfigurationManager.AppSettings["WebDAL"];
//ʵ<><CAB5> CreateLogin <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD><DAB4><EFBFBD>Login<69><6E>ʵ<EFBFBD><CAB5>

@ -0,0 +1,15 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过下列属性集
// 控制。更改这些属性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("DALFactory")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("DALFactory")]
[assembly: AssemblyCopyright("版权所有 (C) 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>{830BBFAB-02BB-4459-A733-FFB53D9D46EA}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Logindemo.IDAL</RootNamespace>
<AssemblyName>Logindemo.IDAL</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 Logindemo.Model;
namespace Logindemo.IDAL
{
/// download from www.51aspx.com(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
/// <summary>
/// <20><>½<EFBFBD>û<EFBFBD><C3BB>ӿ<EFBFBD>
/// </summary>
public interface ILogin
{
/// <summary>
/// <20>û<EFBFBD><C3BB><EFBFBD>½

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

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Logindemo.Model
{
/// download from www.51aspx.com(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
/// <summary>
/// <20>û<EFBFBD>ʵ<EFBFBD><CAB5>
/// </summary>
public class Logininfo
{
private string _loginUser;
private string _loginPass;

@ -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>{8B2C252F-6BDD-4F0F-8CED-1D59E9660F62}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Logindemo.Model</RootNamespace>
<AssemblyName>Logindemo.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("")]
[assembly: AssemblyProduct("Model")]
[assembly: AssemblyCopyright("版权所有 (C) 2007")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

@ -0,0 +1,15 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过下列属性集
// 控制。更改这些属性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("SQLAccess")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("SQLAccess")]
[assembly: AssemblyCopyright("版权所有 (C) 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>{F60F4E79-A8DC-48C1-A33D-83AF6DC2D61D}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Logindemo.SQLAccess</RootNamespace>
<AssemblyName>Logindemo.SQLAccess</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 Logindemo.IDAL;
using Logindemo.Model;
using System.Data.SqlClient;
using System.Data;
namespace Logindemo.SQLserver
{
/// download from www.51aspx.com(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
/// <summary>
/// <20><>½<EFBFBD>û<EFBFBD>
/// </summary>
public class Login:ILogin
{

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

@ -0,0 +1,15 @@
using System;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Collections;
namespace Logindemo.SQLserver
{
/// download from www.51aspx.com(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
/// <summary>
/// SqlHelper<65><72><EFBFBD><EFBFBD>ר<EFBFBD><D7A8><EFBFBD><EFBFBD><E1B9A9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD>ڸ<EFBFBD><DAB8><EFBFBD><EFBFBD>ܡ<EFBFBD><DCA1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϰ<EFBFBD><CFB0>sql<71><6C><EFBFBD>ݲ<EFBFBD><DDB2><EFBFBD>
/// </summary>
public abstract class SqlHelper
{

@ -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>{8A593FCE-46E2-4CE3-86C7-3AF9209469C2}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Logindemo.SQLserver</RootNamespace>
<AssemblyName>Logindemo.SQLserver</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>

@ -0,0 +1 @@
{"RootPath":"C:\\Users\\coder\\Desktop\\2024Code\\5\\20240516\\AspNet_sancengjiegou\\DALFactory","ProjectFileName":"DALFactory.csproj","Configuration":"Debug|AnyCPU","FrameworkPath":"","Sources":[{"SourceFile":"DataAccess.cs"},{"SourceFile":"Properties\\AssemblyInfo.cs"},{"SourceFile":"obj\\Debug\\.NETFramework,Version=v4.0.AssemblyAttributes.cs"}],"References":[{"Reference":"C:\\Users\\coder\\Desktop\\2024Code\\5\\20240516\\AspNet_sancengjiegou\\IDAL\\bin\\Debug\\Logindemo.IDAL.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":true,"ProjectPath":""},{"Reference":"C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\mscorlib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\System.configuration\\v4.0_4.0.0.0__b03f5f7f11d50a3a\\System.configuration.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Core\\v4.0_4.0.0.0__b77a5c561934e089\\System.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Windows\\Microsoft.Net\\assembly\\GAC_64\\System.Data\\v4.0_4.0.0.0__b77a5c561934e089\\System.Data.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\System\\v4.0_4.0.0.0__b77a5c561934e089\\System.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Xml\\v4.0_4.0.0.0__b77a5c561934e089\\System.Xml.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""}],"Analyzers":[],"Outputs":[{"OutputItemFullPath":"C:\\Users\\coder\\Desktop\\2024Code\\5\\20240516\\AspNet_sancengjiegou\\DALFactory\\bin\\Debug\\Logindemo.DALFactory.dll","OutputItemRelativePath":"Logindemo.DALFactory.dll"},{"OutputItemFullPath":"C:\\Users\\coder\\Desktop\\2024Code\\5\\20240516\\AspNet_sancengjiegou\\DALFactory\\bin\\Debug\\Logindemo.DALFactory.pdb","OutputItemRelativePath":"Logindemo.DALFactory.pdb"}],"CopyToOutputEntries":[]}

@ -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>{F15BD5D4-AE34-4833-A3ED-54548A817725}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Logindemo.DALFactory</RootNamespace>
<AssemblyName>Logindemo.DALFactory</AssemblyName>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
using System.Reflection;
namespace Logindemo.DALFactory
{
/// download from www.51aspx.com(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD>ֳ<EFBFBD><D6B3>󹤳<EFBFBD>ģʽȥ<CABD><C8A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݷ<EFBFBD><DDB7>ʲ<EFBFBD><CAB2>ʵ<EFBFBD><CAB5>
public sealed class DataAccess
{
private static readonly string path = System.Configuration.ConfigurationManager.AppSettings["WebDAL"];
//ʵ<><CAB5> CreateLogin <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD><DAB4><EFBFBD>Login<69><6E>ʵ<EFBFBD><CAB5>

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

@ -0,0 +1,9 @@
bin\Debug\Logindemo.DALFactory.dll
bin\Debug\Logindemo.DALFactory.pdb
obj\Debug\ResolveAssemblyReference.cache
obj\Debug\Logindemo.DALFactory.dll
obj\Debug\Logindemo.DALFactory.pdb
bin\Debug\Logindemo.IDAL.dll
bin\Debug\Logindemo.Model.dll
bin\Debug\Logindemo.Model.pdb
bin\Debug\Logindemo.IDAL.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\5\20240516\AspNet_sancengjiegou\DALFactory\obj\Debug\Logindemo.DALFactory.dll
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\DALFactory\obj\Debug\Logindemo.DALFactory.pdb
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\DALFactory\bin\Debug\Logindemo.DALFactory.dll
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\DALFactory\bin\Debug\Logindemo.DALFactory.pdb
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\DALFactory\bin\Debug\Logindemo.IDAL.dll
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\DALFactory\bin\Debug\Logindemo.Model.dll
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\DALFactory\bin\Debug\Logindemo.IDAL.pdb
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\DALFactory\bin\Debug\Logindemo.Model.pdb
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\DALFactory\obj\Debug\DALFactory.csproj.AssemblyReference.cache
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\DALFactory\obj\Debug\DALFactory.csproj.CoreCompileInputs.cache
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\DALFactory\obj\Debug\DALFactory.csproj.CopyComplete

@ -0,0 +1 @@
{"RootPath":"C:\\Users\\coder\\Desktop\\2024Code\\5\\20240516\\AspNet_sancengjiegou\\IDAL","ProjectFileName":"IDAL.csproj","Configuration":"Debug|AnyCPU","FrameworkPath":"","Sources":[{"SourceFile":"ILogin.cs"},{"SourceFile":"Properties\\AssemblyInfo.cs"},{"SourceFile":"obj\\Debug\\.NETFramework,Version=v4.0.AssemblyAttributes.cs"}],"References":[{"Reference":"C:\\Users\\coder\\Desktop\\2024Code\\5\\20240516\\AspNet_sancengjiegou\\Model\\bin\\Debug\\Logindemo.Model.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":true,"ProjectPath":""},{"Reference":"C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\mscorlib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Core\\v4.0_4.0.0.0__b77a5c561934e089\\System.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Windows\\Microsoft.Net\\assembly\\GAC_64\\System.Data\\v4.0_4.0.0.0__b77a5c561934e089\\System.Data.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\System\\v4.0_4.0.0.0__b77a5c561934e089\\System.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Xml\\v4.0_4.0.0.0__b77a5c561934e089\\System.Xml.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""}],"Analyzers":[],"Outputs":[{"OutputItemFullPath":"C:\\Users\\coder\\Desktop\\2024Code\\5\\20240516\\AspNet_sancengjiegou\\IDAL\\bin\\Debug\\Logindemo.IDAL.dll","OutputItemRelativePath":"Logindemo.IDAL.dll"},{"OutputItemFullPath":"C:\\Users\\coder\\Desktop\\2024Code\\5\\20240516\\AspNet_sancengjiegou\\IDAL\\bin\\Debug\\Logindemo.IDAL.pdb","OutputItemRelativePath":"Logindemo.IDAL.pdb"}],"CopyToOutputEntries":[]}

@ -0,0 +1,40 @@
ASP.NET三层结构入门示例源码
一、源码描述
环境VS2022 sql2019
二、功能介绍
默认帐号密码51aspx
连接数据库配置一下web.config的SQLServer
WebDAL节点是需要生成的抽象工厂实例
本例子是3层结构+反射抽象工厂
三、注意事项
1、在项目web.config修改数据库连接字符串附加数据库。
2、管理员账号与密码51aspx 51aspx 。
3、ctrl+F5运行即可。
作者: 阿滨
如需获得该源码的视频、更新等更多资料请访问: https://www.51aspx.com/Code/AspNet_sancengjiegou
------------------------------------------------------------------------------------------------
源码服务专家
官网: 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>{830BBFAB-02BB-4459-A733-FFB53D9D46EA}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Logindemo.IDAL</RootNamespace>
<AssemblyName>Logindemo.IDAL</AssemblyName>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
using Logindemo.Model;
namespace Logindemo.IDAL
{
/// download from www.51aspx.com(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
/// <summary>
/// <20><>½<EFBFBD>û<EFBFBD><C3BB>ӿ<EFBFBD>
/// </summary>
public interface ILogin
{
/// <summary>
/// <20>û<EFBFBD><C3BB><EFBFBD>½

@ -0,0 +1,15 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过下列属性集
// 控制。更改这些属性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("IDAL")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("IDAL")]
[assembly: AssemblyCopyright("版权所有 (C) 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\5\20240516\AspNet_sancengjiegou\IDAL\obj\Debug\Logindemo.IDAL.dll
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\IDAL\obj\Debug\Logindemo.IDAL.pdb
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\IDAL\bin\Debug\Logindemo.IDAL.dll
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\IDAL\bin\Debug\Logindemo.IDAL.pdb
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\IDAL\bin\Debug\Logindemo.Model.dll
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\IDAL\bin\Debug\Logindemo.Model.pdb
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\IDAL\obj\Debug\IDAL.csproj.AssemblyReference.cache
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\IDAL\obj\Debug\IDAL.csproj.CoreCompileInputs.cache
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\IDAL\obj\Debug\IDAL.csproj.CopyComplete

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

@ -0,0 +1,15 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>三层登陆例子 |-51aspx.com</title>
<link href="StyleSheet.css" rel="Stylesheet" />
</head>
<body>
<form id="form1" runat="server">
<table>
<tr>

@ -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 Logindemo.Model;
using Logindemo.BLL;
public partial class _Default : System.Web.UI.Page
{
/// download from www.51aspx.com()

@ -0,0 +1,15 @@
.txtUser
{
margin-left:30%;
margin-top:30%;
background:green;
}
.txtPass
{
background:green;
}
.btnLogin
{

@ -0,0 +1,15 @@
<?xml version="1.0"?>
<!-- 注意: 除了手动编辑此文件以外,您还可以使用 Web 管理工具来
配置应用程序的设置。可以使用 Visual Studio 中的“网站”->“ASP.NET 配置”
选项。
设置和注释的完整列表在
machine.config.comments 中,该文件通常位于 \Windows\Microsoft.NET\Framework\v2.0.xxxxx\Config 中
-->
<configuration>
<appSettings>
<add key="WebDAL" value="Logindemo.SQLserver"/>
<!--实例化类型-->
<add key="SQLServer" value="Server=.;DataBase=Logindemo;user id=sa;password=51Aspx;"/>
</appSettings>
<connectionStrings/>
<!--

@ -0,0 +1 @@
{"RootPath":"C:\\Users\\coder\\Desktop\\2024Code\\5\\20240516\\AspNet_sancengjiegou\\Model","ProjectFileName":"Model.csproj","Configuration":"Debug|AnyCPU","FrameworkPath":"","Sources":[{"SourceFile":"Logininfo.cs"},{"SourceFile":"Properties\\AssemblyInfo.cs"},{"SourceFile":"obj\\Debug\\.NETFramework,Version=v4.0.AssemblyAttributes.cs"}],"References":[{"Reference":"C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\mscorlib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Core\\v4.0_4.0.0.0__b77a5c561934e089\\System.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Windows\\Microsoft.Net\\assembly\\GAC_64\\System.Data\\v4.0_4.0.0.0__b77a5c561934e089\\System.Data.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\System\\v4.0_4.0.0.0__b77a5c561934e089\\System.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Xml\\v4.0_4.0.0.0__b77a5c561934e089\\System.Xml.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""}],"Analyzers":[],"Outputs":[{"OutputItemFullPath":"C:\\Users\\coder\\Desktop\\2024Code\\5\\20240516\\AspNet_sancengjiegou\\Model\\bin\\Debug\\Logindemo.Model.dll","OutputItemRelativePath":"Logindemo.Model.dll"},{"OutputItemFullPath":"C:\\Users\\coder\\Desktop\\2024Code\\5\\20240516\\AspNet_sancengjiegou\\Model\\bin\\Debug\\Logindemo.Model.pdb","OutputItemRelativePath":"Logindemo.Model.pdb"}],"CopyToOutputEntries":[]}

@ -0,0 +1,40 @@
ASP.NET三层结构入门示例源码
一、源码描述
环境VS2022 sql2019
二、功能介绍
默认帐号密码51aspx
连接数据库配置一下web.config的SQLServer
WebDAL节点是需要生成的抽象工厂实例
本例子是3层结构+反射抽象工厂
三、注意事项
1、在项目web.config修改数据库连接字符串附加数据库。
2、管理员账号与密码51aspx 51aspx 。
3、ctrl+F5运行即可。
作者: 阿滨
如需获得该源码的视频、更新等更多资料请访问: https://www.51aspx.com/Code/AspNet_sancengjiegou
------------------------------------------------------------------------------------------------
源码服务专家
官网: 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 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Logindemo.Model
{
/// download from www.51aspx.com(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
/// <summary>
/// <20>û<EFBFBD>ʵ<EFBFBD><CAB5>
/// </summary>
public class Logininfo
{
private string _loginUser;
private string _loginPass;

@ -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>{8B2C252F-6BDD-4F0F-8CED-1D59E9660F62}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Logindemo.Model</RootNamespace>
<AssemblyName>Logindemo.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("")]
[assembly: AssemblyProduct("Model")]
[assembly: AssemblyCopyright("版权所有 (C) 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\5\20240516\AspNet_sancengjiegou\Model\obj\Debug\Logindemo.Model.dll
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\Model\obj\Debug\Logindemo.Model.pdb
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\Model\bin\Debug\Logindemo.Model.dll
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\Model\bin\Debug\Logindemo.Model.pdb
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\Model\obj\Debug\Model.csproj.AssemblyReference.cache
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\Model\obj\Debug\Model.csproj.CoreCompileInputs.cache

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

@ -0,0 +1 @@
{"RootPath":"C:\\Users\\coder\\Desktop\\2024Code\\5\\20240516\\AspNet_sancengjiegou\\SQLAccess","ProjectFileName":"SQLAccess.csproj","Configuration":"Debug|AnyCPU","FrameworkPath":"","Sources":[{"SourceFile":"Properties\\AssemblyInfo.cs"},{"SourceFile":"obj\\Debug\\.NETFramework,Version=v4.0.AssemblyAttributes.cs"}],"References":[{"Reference":"C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\mscorlib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Core\\v4.0_4.0.0.0__b77a5c561934e089\\System.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Windows\\Microsoft.Net\\assembly\\GAC_64\\System.Data\\v4.0_4.0.0.0__b77a5c561934e089\\System.Data.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\System\\v4.0_4.0.0.0__b77a5c561934e089\\System.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Xml\\v4.0_4.0.0.0__b77a5c561934e089\\System.Xml.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""}],"Analyzers":[],"Outputs":[{"OutputItemFullPath":"C:\\Users\\coder\\Desktop\\2024Code\\5\\20240516\\AspNet_sancengjiegou\\SQLAccess\\bin\\Debug\\Logindemo.SQLAccess.dll","OutputItemRelativePath":"Logindemo.SQLAccess.dll"},{"OutputItemFullPath":"C:\\Users\\coder\\Desktop\\2024Code\\5\\20240516\\AspNet_sancengjiegou\\SQLAccess\\bin\\Debug\\Logindemo.SQLAccess.pdb","OutputItemRelativePath":"Logindemo.SQLAccess.pdb"}],"CopyToOutputEntries":[]}

@ -0,0 +1,15 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过下列属性集
// 控制。更改这些属性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("SQLAccess")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("SQLAccess")]
[assembly: AssemblyCopyright("版权所有 (C) 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>{F60F4E79-A8DC-48C1-A33D-83AF6DC2D61D}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Logindemo.SQLAccess</RootNamespace>
<AssemblyName>Logindemo.SQLAccess</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,6 @@
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\SQLAccess\bin\Debug\Logindemo.SQLAccess.dll
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\SQLAccess\bin\Debug\Logindemo.SQLAccess.pdb
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\SQLAccess\obj\Debug\SQLAccess.csproj.AssemblyReference.cache
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\SQLAccess\obj\Debug\SQLAccess.csproj.CoreCompileInputs.cache
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\SQLAccess\obj\Debug\Logindemo.SQLAccess.dll
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\SQLAccess\obj\Debug\Logindemo.SQLAccess.pdb

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

@ -0,0 +1 @@
{"RootPath":"C:\\Users\\coder\\Desktop\\2024Code\\5\\20240516\\AspNet_sancengjiegou\\SQLserver","ProjectFileName":"SQLserver.csproj","Configuration":"Debug|AnyCPU","FrameworkPath":"","Sources":[{"SourceFile":"Login.cs"},{"SourceFile":"Properties\\AssemblyInfo.cs"},{"SourceFile":"SQLHelper.cs"},{"SourceFile":"obj\\Debug\\.NETFramework,Version=v4.0.AssemblyAttributes.cs"}],"References":[{"Reference":"C:\\Users\\coder\\Desktop\\2024Code\\5\\20240516\\AspNet_sancengjiegou\\IDAL\\bin\\Debug\\Logindemo.IDAL.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":true,"ProjectPath":""},{"Reference":"C:\\Users\\coder\\Desktop\\2024Code\\5\\20240516\\AspNet_sancengjiegou\\Model\\bin\\Debug\\Logindemo.Model.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":true,"ProjectPath":""},{"Reference":"C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\mscorlib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\System.configuration\\v4.0_4.0.0.0__b03f5f7f11d50a3a\\System.configuration.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Core\\v4.0_4.0.0.0__b77a5c561934e089\\System.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Windows\\Microsoft.Net\\assembly\\GAC_64\\System.Data\\v4.0_4.0.0.0__b77a5c561934e089\\System.Data.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\System\\v4.0_4.0.0.0__b77a5c561934e089\\System.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Windows\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Xml\\v4.0_4.0.0.0__b77a5c561934e089\\System.Xml.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""}],"Analyzers":[],"Outputs":[{"OutputItemFullPath":"C:\\Users\\coder\\Desktop\\2024Code\\5\\20240516\\AspNet_sancengjiegou\\SQLserver\\bin\\Debug\\Logindemo.SQLserver.dll","OutputItemRelativePath":"Logindemo.SQLserver.dll"},{"OutputItemFullPath":"C:\\Users\\coder\\Desktop\\2024Code\\5\\20240516\\AspNet_sancengjiegou\\SQLserver\\bin\\Debug\\Logindemo.SQLserver.pdb","OutputItemRelativePath":"Logindemo.SQLserver.pdb"}],"CopyToOutputEntries":[]}

@ -0,0 +1,40 @@
ASP.NET三层结构入门示例源码
一、源码描述
环境VS2022 sql2019
二、功能介绍
默认帐号密码51aspx
连接数据库配置一下web.config的SQLServer
WebDAL节点是需要生成的抽象工厂实例
本例子是3层结构+反射抽象工厂
三、注意事项
1、在项目web.config修改数据库连接字符串附加数据库。
2、管理员账号与密码51aspx 51aspx 。
3、ctrl+F5运行即可。
作者: 阿滨
如需获得该源码的视频、更新等更多资料请访问: https://www.51aspx.com/Code/AspNet_sancengjiegou
------------------------------------------------------------------------------------------------
源码服务专家
官网: 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 @@
using System;
using System.Collections.Generic;
using System.Text;
using Logindemo.IDAL;
using Logindemo.Model;
using System.Data.SqlClient;
using System.Data;
namespace Logindemo.SQLserver
{
/// download from www.51aspx.com(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
/// <summary>
/// <20><>½<EFBFBD>û<EFBFBD>
/// </summary>
public class Login:ILogin
{

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

@ -0,0 +1,15 @@
using System;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Collections;
namespace Logindemo.SQLserver
{
/// download from www.51aspx.com(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
/// <summary>
/// SqlHelper<65><72><EFBFBD><EFBFBD>ר<EFBFBD><D7A8><EFBFBD><EFBFBD><E1B9A9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD>ڸ<EFBFBD><DAB8><EFBFBD><EFBFBD>ܡ<EFBFBD><DCA1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϰ<EFBFBD><CFB0>sql<71><6C><EFBFBD>ݲ<EFBFBD><DDB2><EFBFBD>
/// </summary>
public abstract class SqlHelper
{

@ -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>{8A593FCE-46E2-4CE3-86C7-3AF9209469C2}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Logindemo.SQLserver</RootNamespace>
<AssemblyName>Logindemo.SQLserver</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,11 @@
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\SQLserver\obj\Debug\Logindemo.SQLserver.dll
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\SQLserver\obj\Debug\Logindemo.SQLserver.pdb
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\SQLserver\bin\Debug\Logindemo.SQLserver.dll
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\SQLserver\bin\Debug\Logindemo.SQLserver.pdb
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\SQLserver\bin\Debug\Logindemo.IDAL.dll
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\SQLserver\bin\Debug\Logindemo.Model.dll
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\SQLserver\bin\Debug\Logindemo.IDAL.pdb
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\SQLserver\bin\Debug\Logindemo.Model.pdb
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\SQLserver\obj\Debug\SQLserver.csproj.AssemblyReference.cache
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\SQLserver\obj\Debug\SQLserver.csproj.CoreCompileInputs.cache
C:\Users\coder\Desktop\2024Code\5\20240516\AspNet_sancengjiegou\SQLserver\obj\Debug\SQLserver.csproj.CopyComplete

@ -0,0 +1,9 @@
bin\Debug\Logindemo.SQLserver.dll
bin\Debug\Logindemo.SQLserver.pdb
obj\Debug\ResolveAssemblyReference.cache
obj\Debug\Logindemo.SQLserver.dll
obj\Debug\Logindemo.SQLserver.pdb
bin\Debug\Logindemo.IDAL.dll
bin\Debug\Logindemo.Model.dll
bin\Debug\Logindemo.Model.pdb
bin\Debug\Logindemo.IDAL.pdb
Loading…
Cancel
Save