資源簡介
一個簡單的項目架構,使用MVC模式,實現了增刪改查。
VS 2010 旗艦版 +SQL Server 2008 R2

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
using?System.Threading.Tasks;
using?Model;
using?DAL;
using?System.Data;
namespace?BLL
{
????public?class?BLL_Admin
????{
????????private?readonly?DAL.DAL_Admin?dal?=?new?DAL.DAL_Admin();
????????public?BLL_Admin()?{?}
????????///?
????????///?增加一條數據
????????///?
????????public?int?Add(Model.Model_Admin?Model)
????????{
????????????return?dal.Add(Model);
????????}
????????///?
????????///?更新一條數據
????????///?
????????public?bool?Update(Model.Model_Admin?Model)
????????{
????????????return?dal.Update(Model);
????????}
????????///?
????????///?刪除一條數據
????????///?
????????public?bool?Delete(int?A_Id)
????????{
????????????return?dal.Delete(A_Id);
????????}
????????///?
????????///?獲得數據列表
????????///?
????????public?DataSet?GetList(string?strWhere)
????????{
????????????return?dal.GetList(strWhere);
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????4608??2015-10-12?18:05??Reports\BLL\bin\Debug\BLL.dll
?????文件??????11776??2015-10-12?18:05??Reports\BLL\bin\Debug\BLL.pdb
?????文件???????6656??2015-10-12?18:05??Reports\BLL\bin\Debug\DAL.dll
?????文件??????13824??2015-10-12?18:05??Reports\BLL\bin\Debug\DAL.pdb
?????文件???????5120??2015-10-12?18:05??Reports\BLL\bin\Debug\Model.dll
?????文件??????15872??2015-10-12?18:05??Reports\BLL\bin\Debug\Model.pdb
?????文件??????10240??2015-10-12?18:05??Reports\BLL\bin\Debug\SqlHelp.dll
?????文件??????26112??2015-10-12?18:05??Reports\BLL\bin\Debug\SqlHelp.pdb
?????文件???????2792??2015-10-12?11:21??Reports\BLL\BLL.csproj
?????文件???????1093??2015-10-12?11:19??Reports\BLL\BLL_Admin.cs
?????文件???????1250??2015-10-12?18:05??Reports\BLL\obj\Debug\BLL.csproj.FileListAbsolute.txt
?????文件??????11147??2015-10-12?18:05??Reports\BLL\obj\Debug\BLL.csprojResolveAssemblyReference.cache
?????文件???????4608??2015-10-12?18:05??Reports\BLL\obj\Debug\BLL.dll
?????文件??????11776??2015-10-12?18:05??Reports\BLL\obj\Debug\BLL.pdb
?????文件???????5766??2015-10-12?18:05??Reports\BLL\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件??????????0??2015-08-21?07:45??Reports\BLL\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
?????文件??????????0??2015-08-21?07:45??Reports\BLL\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
?????文件??????????0??2015-08-21?07:45??Reports\BLL\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
?????文件???????1354??2015-08-20?22:03??Reports\BLL\Properties\AssemblyInfo.cs
?????文件???????6656??2015-10-12?18:05??Reports\DAL\bin\Debug\DAL.dll
?????文件??????13824??2015-10-12?18:05??Reports\DAL\bin\Debug\DAL.pdb
?????文件???????5120??2015-10-12?18:05??Reports\DAL\bin\Debug\Model.dll
?????文件??????15872??2015-10-12?18:05??Reports\DAL\bin\Debug\Model.pdb
?????文件??????10240??2015-10-12?18:05??Reports\DAL\bin\Debug\SqlHelp.dll
?????文件??????26112??2015-10-12?18:05??Reports\DAL\bin\Debug\SqlHelp.pdb
?????文件???????2854??2015-10-12?11:21??Reports\DAL\DAL.csproj
?????文件???????4423??2015-10-12?11:20??Reports\DAL\DAL_Admin.cs
?????文件???????1134??2015-10-12?18:05??Reports\DAL\obj\Debug\DAL.csproj.FileListAbsolute.txt
?????文件???????7911??2015-10-12?18:05??Reports\DAL\obj\Debug\DAL.csprojResolveAssemblyReference.cache
?????文件???????6656??2015-10-12?18:05??Reports\DAL\obj\Debug\DAL.dll
............此處省略116個文件信息
- 上一篇:ASP+Dreamweaver數據庫網站開發與教程
- 下一篇:一個簡單的在線考試系統
評論
共有 條評論