在好例子网,分享、交流、成长!
您当前所在位置:首页Others 开发实例一般编程问题 → MVC+三层+EF(新手)

MVC+三层+EF(新手)

一般编程问题

下载此实例
  • 开发语言:Others
  • 实例大小:3.11M
  • 下载次数:11
  • 浏览次数:83
  • 发布时间:2021-11-03
  • 实例类别:一般编程问题
  • 发 布 人:js2021
  • 文件格式:.zip
  • 所需积分:2
 

实例介绍

【实例简介】
1.源代码重点设计在于三层。 2.代码源自传智(学生作品),属于教学资料。 3.虽然网站设计不好,但作为学习,借鉴的地方还是很多,譬如:单例+泛型+接 口设计+工厂模式+基本三层等(注:只适合新手,vs2012,) 4.EF设计为最最最简单的模型.学习EF请绕道。 本人稍微修改代码并奉上。
【实例截图】
【核心代码】
4744302542940533795.zip
└── MyHotelWeb
├── Backup
│   ├── Hotel
│   │   ├── Content
│   │   │   ├── Site.css
│   │   │   └── themes
│   │   │   └── base
│   │   │   ├── images
│   │   │   │   ├── ui-bg_flat_0_aaaaaa_40x100.png
│   │   │   │   ├── ui-bg_flat_75_ffffff_40x100.png
│   │   │   │   ├── ui-bg_glass_55_fbf9ee_1x400.png
│   │   │   │   ├── ui-bg_glass_65_ffffff_1x400.png
│   │   │   │   ├── ui-bg_glass_75_dadada_1x400.png
│   │   │   │   ├── ui-bg_glass_75_e6e6e6_1x400.png
│   │   │   │   ├── ui-bg_glass_95_fef1ec_1x400.png
│   │   │   │   ├── ui-bg_highlight-soft_75_cccccc_1x100.png
│   │   │   │   ├── ui-icons_222222_256x240.png
│   │   │   │   ├── ui-icons_2e83ff_256x240.png
│   │   │   │   ├── ui-icons_454545_256x240.png
│   │   │   │   ├── ui-icons_888888_256x240.png
│   │   │   │   └── ui-icons_cd0a0a_256x240.png
│   │   │   ├── jquery.ui.accordion.css
│   │   │   ├── jquery.ui.all.css
│   │   │   ├── jquery.ui.autocomplete.css
│   │   │   ├── jquery.ui.base.css
│   │   │   ├── jquery.ui.button.css
│   │   │   ├── jquery.ui.core.css
│   │   │   ├── jquery.ui.datepicker.css
│   │   │   ├── jquery.ui.dialog.css
│   │   │   ├── jquery.ui.progressbar.css
│   │   │   ├── jquery.ui.resizable.css
│   │   │   ├── jquery.ui.selectable.css
│   │   │   ├── jquery.ui.slider.css
│   │   │   ├── jquery.ui.tabs.css
│   │   │   └── jquery.ui.theme.css
│   │   ├── Controllers
│   │   │   ├── Customer1Controller.cs
│   │   │   └── CustomerController.cs
│   │   ├── Global.asax
│   │   ├── Global.asax.cs
│   │   ├── Hotel.csproj
│   │   ├── Hotel.csproj.user
│   │   ├── Models
│   │   │   └── CustomerVM.cs
│   │   ├── packages.config
│   │   ├── Properties
│   │   │   └── AssemblyInfo.cs
│   │   ├── Scripts
│   │   │   ├── jquery-1.5.1.js
│   │   │   ├── jquery-1.5.1.min.js
│   │   │   ├── jquery-1.5.1-vsdoc.js
│   │   │   ├── jquery-ui-1.8.11.js
│   │   │   ├── jquery-ui-1.8.11.min.js
│   │   │   ├── jquery.unobtrusive-ajax.js
│   │   │   ├── jquery.unobtrusive-ajax.min.js
│   │   │   ├── jquery.validate.js
│   │   │   ├── jquery.validate.min.js
│   │   │   ├── jquery.validate.unobtrusive.js
│   │   │   ├── jquery.validate.unobtrusive.min.js
│   │   │   ├── jquery.validate-vsdoc.js
│   │   │   ├── MicrosoftAjax.debug.js
│   │   │   ├── MicrosoftAjax.js
│   │   │   ├── MicrosoftMvcAjax.debug.js
│   │   │   ├── MicrosoftMvcAjax.js
│   │   │   ├── MicrosoftMvcValidation.debug.js
│   │   │   ├── MicrosoftMvcValidation.js
│   │   │   ├── modernizr-1.7.js
│   │   │   └── modernizr-1.7.min.js
│   │   ├── Views
│   │   │   ├── Customer
│   │   │   │   ├── Detail.cshtml
│   │   │   │   ├── Edit.cshtml
│   │   │   │   └── Index.cshtml
│   │   │   ├── Customer1
│   │   │   │   ├── Edit.cshtml
│   │   │   │   └── Index.cshtml
│   │   │   ├── Shared
│   │   │   │   ├── Error.cshtml
│   │   │   │   └── _Layout.cshtml
│   │   │   ├── _ViewStart.cshtml
│   │   │   └── Web.config
│   │   ├── Web.config
│   │   ├── Web.Debug.config
│   │   └── Web.Release.config
│   ├── MyHotelWeb.sln
│   └── MyHotelWeb.v11.suo
├── Hotel
│   ├── bin
│   │   ├── EntityFramework.dll
│   │   ├── EntityFramework.xml
│   │   ├── Hotel.BLL.dll
│   │   ├── Hotel.BLL.pdb
│   │   ├── Hotel.DAL.dll
│   │   ├── Hotel.DAL.pdb
│   │   ├── Hotel.dll
│   │   ├── Hotel.IBBL.dll
│   │   ├── Hotel.IBBL.pdb
│   │   ├── Hotel.IDAL.dll
│   │   ├── Hotel.IDAL.pdb
│   │   ├── Hotel.Model.dll
│   │   ├── Hotel.Model.pdb
│   │   └── Hotel.pdb
│   ├── Content
│   │   ├── Site.css
│   │   └── themes
│   │   └── base
│   │   ├── images
│   │   │   ├── ui-bg_flat_0_aaaaaa_40x100.png
│   │   │   ├── ui-bg_flat_75_ffffff_40x100.png
│   │   │   ├── ui-bg_glass_55_fbf9ee_1x400.png
│   │   │   ├── ui-bg_glass_65_ffffff_1x400.png
│   │   │   ├── ui-bg_glass_75_dadada_1x400.png
│   │   │   ├── ui-bg_glass_75_e6e6e6_1x400.png
│   │   │   ├── ui-bg_glass_95_fef1ec_1x400.png
│   │   │   ├── ui-bg_highlight-soft_75_cccccc_1x100.png
│   │   │   ├── ui-icons_222222_256x240.png
│   │   │   ├── ui-icons_2e83ff_256x240.png
│   │   │   ├── ui-icons_454545_256x240.png
│   │   │   ├── ui-icons_888888_256x240.png
│   │   │   └── ui-icons_cd0a0a_256x240.png
│   │   ├── jquery.ui.accordion.css
│   │   ├── jquery.ui.all.css
│   │   ├── jquery.ui.autocomplete.css
│   │   ├── jquery.ui.base.css
│   │   ├── jquery.ui.button.css
│   │   ├── jquery.ui.core.css
│   │   ├── jquery.ui.datepicker.css
│   │   ├── jquery.ui.dialog.css
│   │   ├── jquery.ui.progressbar.css
│   │   ├── jquery.ui.resizable.css
│   │   ├── jquery.ui.selectable.css
│   │   ├── jquery.ui.slider.css
│   │   ├── jquery.ui.tabs.css
│   │   └── jquery.ui.theme.css
│   ├── Controllers
│   │   └── CustomerController.cs
│   ├── Global.asax
│   ├── Global.asax.cs
│   ├── Hotel.csproj
│   ├── Hotel.csproj.user
│   ├── Models
│   │   └── CustomerModel.cs
│   ├── obj
│   │   └── Debug
│   │   ├── DesignTimeResolveAssemblyReferences.cache
│   │   ├── DesignTimeResolveAssemblyReferencesInput.cache
│   │   ├── Hotel.csproj.FileListAbsolute.txt
│   │   ├── Hotel.csprojResolveAssemblyReference.cache
│   │   ├── Hotel.dll
│   │   ├── Hotel.pdb
│   │   ├── ResolveAssemblyReference.cache
│   │   └── TempPE
│   │   └── Models.Model1.Designer.cs.dll
│   ├── packages.config
│   ├── Properties
│   │   └── AssemblyInfo.cs
│   ├── Scripts
│   │   ├── jquery-1.5.1.js
│   │   ├── jquery-1.5.1.min.js
│   │   ├── jquery-1.5.1-vsdoc.js
│   │   ├── jquery-ui-1.8.11.js
│   │   ├── jquery-ui-1.8.11.min.js
│   │   ├── jquery.unobtrusive-ajax.js
│   │   ├── jquery.unobtrusive-ajax.min.js
│   │   ├── jquery.validate.js
│   │   ├── jquery.validate.min.js
│   │   ├── jquery.validate.unobtrusive.js
│   │   ├── jquery.validate.unobtrusive.min.js
│   │   ├── jquery.validate-vsdoc.js
│   │   ├── MicrosoftAjax.debug.js
│   │   ├── MicrosoftAjax.js
│   │   ├── MicrosoftMvcAjax.debug.js
│   │   ├── MicrosoftMvcAjax.js
│   │   ├── MicrosoftMvcValidation.debug.js
│   │   ├── MicrosoftMvcValidation.js
│   │   ├── modernizr-1.7.js
│   │   └── modernizr-1.7.min.js
│   ├── Views
│   │   ├── Customer
│   │   │   ├── Edit.cshtml
│   │   │   └── Index.cshtml
│   │   ├── Shared
│   │   │   ├── Error.cshtml
│   │   │   └── _Layout.cshtml
│   │   ├── _ViewStart.cshtml
│   │   └── Web.config
│   ├── Web.config
│   ├── Web.Debug.config
│   └── Web.Release.config
├── Hotel.BLL
│   ├── BaseBLL.cs
│   ├── bin
│   │   ├── Debug
│   │   │   ├── Hotel.BLL.dll
│   │   │   ├── Hotel.BLL.pdb
│   │   │   ├── Hotel.DAL.dll
│   │   │   ├── Hotel.DAL.pdb
│   │   │   ├── Hotel.IBBL.dll
│   │   │   ├── Hotel.IBBL.pdb
│   │   │   ├── Hotel.IDAL.dll
│   │   │   ├── Hotel.IDAL.pdb
│   │   │   ├── Hotel.Model.dll
│   │   │   └── Hotel.Model.pdb
│   │   └── Release
│   ├── CustomerBLL.cs
│   ├── Hotel.BLL.csproj
│   ├── obj
│   │   └── Debug
│   │   ├── DesignTimeResolveAssemblyReferencesInput.cache
│   │   ├── Hotel.BLL.csproj.FileListAbsolute.txt
│   │   ├── Hotel.BLL.csprojResolveAssemblyReference.cache
│   │   ├── Hotel.BLL.dll
│   │   ├── Hotel.BLL.pdb
│   │   ├── ResolveAssemblyReference.cache
│   │   └── TempPE
│   ├── OrderBLL.cs
│   └── Properties
│   └── AssemblyInfo.cs
├── Hotel.DAL
│   ├── BaseDAL.cs
│   ├── bin
│   │   ├── Debug
│   │   │   ├── Hotel.DAL.dll
│   │   │   ├── Hotel.DAL.pdb
│   │   │   ├── Hotel.IDAL.dll
│   │   │   ├── Hotel.IDAL.pdb
│   │   │   ├── Hotel.Model.dll
│   │   │   └── Hotel.Model.pdb
│   │   └── Release
│   ├── CustomerDAL.cs
│   ├── DBSession.cs
│   ├── DBSessionFactory.cs
│   ├── Hotel.DAL.csproj
│   ├── obj
│   │   └── Debug
│   │   ├── DesignTimeResolveAssemblyReferencesInput.cache
│   │   ├── Hotel.DAL.csproj.FileListAbsolute.txt
│   │   ├── Hotel.DAL.csprojResolveAssemblyReference.cache
│   │   ├── Hotel.DAL.dll
│   │   ├── Hotel.DAL.pdb
│   │   ├── ResolveAssemblyReference.cache
│   │   └── TempPE
│   ├── ObjectContextFactory.cs
│   ├── OrderDAL.cs
│   └── Properties
│   └── AssemblyInfo.cs
├── Hotel.IBBL
│   ├── bin
│   │   ├── Debug
│   │   │   ├── Hotel.DAL.dll
│   │   │   ├── Hotel.DAL.pdb
│   │   │   ├── Hotel.IBBL.dll
│   │   │   ├── Hotel.IBBL.pdb
│   │   │   ├── Hotel.IDAL.dll
│   │   │   ├── Hotel.IDAL.pdb
│   │   │   ├── Hotel.Model.dll
│   │   │   └── Hotel.Model.pdb
│   │   └── Release
│   ├── Hotel.IBBL.csproj
│   ├── IBaseBLL.cs
│   ├── ICustomerBLL.cs
│   ├── IOrderBLL.cs
│   ├── obj
│   │   └── Debug
│   │   ├── DesignTimeResolveAssemblyReferencesInput.cache
│   │   ├── Hotel.IBBL.csproj.FileListAbsolute.txt
│   │   ├── Hotel.IBBL.csprojResolveAssemblyReference.cache
│   │   ├── Hotel.IBBL.dll
│   │   ├── Hotel.IBBL.pdb
│   │   ├── ResolveAssemblyReference.cache
│   │   └── TempPE
│   └── Properties
│   └── AssemblyInfo.cs
├── Hotel.IDAL
│   ├── bin
│   │   ├── Debug
│   │   │   ├── Hotel.IDAL.dll
│   │   │   ├── Hotel.IDAL.pdb
│   │   │   ├── Hotel.Model.dll
│   │   │   └── Hotel.Model.pdb
│   │   └── Release
│   ├── Hotel.IDAL.csproj
│   ├── IBaseDAL.cs
│   ├── ICustomerDAL.cs
│   ├── IDBSession.cs
│   ├── IDBSessionFactory.cs
│   ├── IObjectContextFactory.cs
│   ├── IOrderDAL.cs
│   ├── obj
│   │   └── Debug
│   │   ├── DesignTimeResolveAssemblyReferencesInput.cache
│   │   ├── Hotel.IDAL.csproj.FileListAbsolute.txt
│   │   ├── Hotel.IDAL.csprojResolveAssemblyReference.cache
│   │   ├── Hotel.IDAL.dll
│   │   ├── Hotel.IDAL.pdb
│   │   ├── ResolveAssemblyReference.cache
│   │   └── TempPE
│   └── Properties
│   └── AssemblyInfo.cs
├── Hotel.Model
│   ├── App.Config
│   ├── bin
│   │   ├── Debug
│   │   │   ├── Hotel.Model.dll
│   │   │   ├── Hotel.Model.dll.config
│   │   │   └── Hotel.Model.pdb
│   │   └── Release
│   ├── Hotel.Model.csproj
│   ├── HotelModel.Designer.cs
│   ├── HotelModel.edmx
│   ├── obj
│   │   └── Debug
│   │   ├── DesignTimeResolveAssemblyReferencesInput.cache
│   │   ├── edmxResourcesToEmbed
│   │   │   ├── HotelModel.csdl
│   │   │   ├── HotelModel.msl
│   │   │   └── HotelModel.ssdl
│   │   ├── Hotel.Model.csproj.FileListAbsolute.txt
│   │   ├── Hotel.Model.csprojResolveAssemblyReference.cache
│   │   ├── Hotel.Model.dll
│   │   ├── Hotel.Model.pdb
│   │   └── TempPE
│   │   └── HotelModel.Designer.cs.dll
│   └── Properties
│   └── AssemblyInfo.cs
├── Local.testsettings
├── MyHotelWeb.sln
├── MyHotelWeb.sln.DotSettings.user
├── MyHotelWeb.suo
├── MyHotelWeb.v11.suo
├── MyHotelWeb.vsmdi
├── packages
│   ├── EntityFramework.4.1.10331.0
│   │   ├── EntityFramework.4.1.10331.0.nupkg
│   │   └── lib
│   │   ├── EntityFramework.dll
│   │   └── EntityFramework.xml
│   ├── jQuery.1.5.1
│   │   ├── Content
│   │   │   └── Scripts
│   │   │   ├── jquery-1.5.1.js
│   │   │   └── jquery-1.5.1.min.js
│   │   └── jQuery.1.5.1.nupkg
│   ├── jQuery.UI.Combined.1.8.11
│   │   ├── Content
│   │   │   ├── Content
│   │   │   │   └── themes
│   │   │   │   └── base
│   │   │   │   ├── images
│   │   │   │   │   ├── ui-bg_flat_0_aaaaaa_40x100.png
│   │   │   │   │   ├── ui-bg_flat_75_ffffff_40x100.png
│   │   │   │   │   ├── ui-bg_glass_55_fbf9ee_1x400.png
│   │   │   │   │   ├── ui-bg_glass_65_ffffff_1x400.png
│   │   │   │   │   ├── ui-bg_glass_75_dadada_1x400.png
│   │   │   │   │   ├── ui-bg_glass_75_e6e6e6_1x400.png
│   │   │   │   │   ├── ui-bg_glass_95_fef1ec_1x400.png
│   │   │   │   │   ├── ui-bg_highlight-soft_75_cccccc_1x100.png
│   │   │   │   │   ├── ui-icons_222222_256x240.png
│   │   │   │   │   ├── ui-icons_2e83ff_256x240.png
│   │   │   │   │   ├── ui-icons_454545_256x240.png
│   │   │   │   │   ├── ui-icons_888888_256x240.png
│   │   │   │   │   └── ui-icons_cd0a0a_256x240.png
│   │   │   │   ├── jquery.ui.accordion.css
│   │   │   │   ├── jquery.ui.all.css
│   │   │   │   ├── jquery.ui.autocomplete.css
│   │   │   │   ├── jquery.ui.base.css
│   │   │   │   ├── jquery.ui.button.css
│   │   │   │   ├── jquery.ui.core.css
│   │   │   │   ├── jquery.ui.datepicker.css
│   │   │   │   ├── jquery.ui.dialog.css
│   │   │   │   ├── jquery.ui.progressbar.css
│   │   │   │   ├── jquery.ui.resizable.css
│   │   │   │   ├── jquery.ui.selectable.css
│   │   │   │   ├── jquery.ui.slider.css
│   │   │   │   ├── jquery.ui.tabs.css
│   │   │   │   └── jquery.ui.theme.css
│   │   │   └── Scripts
│   │   │   ├── jquery-ui-1.8.11.js
│   │   │   └── jquery-ui-1.8.11.min.js
│   │   └── jQuery.UI.Combined.1.8.11.nupkg
│   ├── jQuery.Validation.1.8.0
│   │   ├── Content
│   │   │   └── Scripts
│   │   │   ├── jquery.validate.js
│   │   │   ├── jquery.validate.min.js
│   │   │   └── jquery.validate-vsdoc.js
│   │   └── jQuery.Validation.1.8.0.nupkg
│   ├── jQuery.vsdoc.1.5.1
│   │   ├── Content
│   │   │   └── Scripts
│   │   │   └── jquery-1.5.1-vsdoc.js
│   │   └── jQuery.vsdoc.1.5.1.nupkg
│   ├── Modernizr.1.7
│   │   ├── Content
│   │   │   └── Scripts
│   │   │   ├── modernizr-1.7.js
│   │   │   └── modernizr-1.7.min.js
│   │   └── Modernizr.1.7.nupkg
│   └── repositories.config
├── TestResults
│   ├── Administrator_0IMPWIKHZQ1IMAZ 2012-05-21 21_10_29.trx
│   ├── Administrator_0IMPWIKHZQ1IMAZ 2012-05-21 21_19_54.trx
│   └── Administrator_0IMPWIKHZQ1IMAZ 2012-05-21 21_21_44.trx
├── TraceAndTestImpact.testsettings
├── UpgradeLog.htm
├── UpgradeLog.XML
└── _UpgradeReport_Files
├── UpgradeReport.css
├── UpgradeReport_Error.png
├── UpgradeReport_Information.png
├── UpgradeReport_Success.png
├── UpgradeReport_Warning.png
└── UpgradeReport.xslt

96 directories, 317 files

标签:

实例下载地址

MVC+三层+EF(新手)

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警