文件名称:MvcCms
- 所属分类:
- .net编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 12.66mb
- 下载次数:
- 0次
- 提 供 者:
- L***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
MvcCms数据库交互部分,分析、示例中仅实现了Navigation的现实
原理:从数据库读取出Portal表中读取出Theme配置文件夹,在加载 Theme时,
_layout.cshtml页面中包含
@Html.Partial("ControlsNav/TopNavControl",Html.GetTopNav())
该代码制定到了 ~/view/share/ControlsNav/TopNavControl.cshtml
并将GetTopNav()访问到的信息传递到 ~/view/share/ControlsNav/TopNavControl
在TopNavControl.cshtml中的@model将接收到的信息转化为model,之后在TopNavControl.cshtml中便利出model数据。
代码不多,但值得关注的地方,theme的访问,这个很有意思,如果要明白其中的原理就要看 ~/Core/的两个theme engine相关类。 这两个类,重写了System.Web.Mvc下的engine中相关类中的虚方法,改写默认加载_layout.cshtml的路径。怎么运行 theme engine这两个类就要更多的去关注 castle windsor的 ioc DI 相关的知识了。
关于cache与动态数据库管理:就是代码实现,
if (exists cache)
根据key读取cache中的数据信息,加载上去
else
从数据库中读取-MvcCms数据库交互部分,分析、示例中仅实现了Navigation的现实
原理:从数据库读取出Portal表中读取出Theme配置文件夹,在加载 Theme时,
_layout.cshtml页面中包含
@Html.Partial("ControlsNav/TopNavControl",Html.GetTopNav())
该代码制定到了 ~/view/share/ControlsNav/TopNavControl.cshtml
并将GetTopNav()访问到的信息传递到 ~/view/share/ControlsNav/TopNavControl
在TopNavControl.cshtml中的@model将接收到的信息转化为model,之后在TopNavControl.cshtml中便利出model数据。
代码不多,但值得关注的地方,theme的访问,这个很有意思,如果要明白其中的原理就要看 ~/Core/的两个theme engine相关类。 这两个类,重写了System.Web.Mvc下的engine中相关类中的虚方法,改写默认加载_layout.cshtml的路径。怎么运行 theme engine这两个类就要更多的去关注 castle windsor的 ioc DI 相关的知识了。
关于cache与动态数据库管理:就是代码实现,
if (exists cache)
根据key读取cache中的数据信息,加载上去
else
从数据库中读取
原理:从数据库读取出Portal表中读取出Theme配置文件夹,在加载 Theme时,
_layout.cshtml页面中包含
@Html.Partial("ControlsNav/TopNavControl",Html.GetTopNav())
该代码制定到了 ~/view/share/ControlsNav/TopNavControl.cshtml
并将GetTopNav()访问到的信息传递到 ~/view/share/ControlsNav/TopNavControl
在TopNavControl.cshtml中的@model将接收到的信息转化为model,之后在TopNavControl.cshtml中便利出model数据。
代码不多,但值得关注的地方,theme的访问,这个很有意思,如果要明白其中的原理就要看 ~/Core/的两个theme engine相关类。 这两个类,重写了System.Web.Mvc下的engine中相关类中的虚方法,改写默认加载_layout.cshtml的路径。怎么运行 theme engine这两个类就要更多的去关注 castle windsor的 ioc DI 相关的知识了。
关于cache与动态数据库管理:就是代码实现,
if (exists cache)
根据key读取cache中的数据信息,加载上去
else
从数据库中读取-MvcCms数据库交互部分,分析、示例中仅实现了Navigation的现实
原理:从数据库读取出Portal表中读取出Theme配置文件夹,在加载 Theme时,
_layout.cshtml页面中包含
@Html.Partial("ControlsNav/TopNavControl",Html.GetTopNav())
该代码制定到了 ~/view/share/ControlsNav/TopNavControl.cshtml
并将GetTopNav()访问到的信息传递到 ~/view/share/ControlsNav/TopNavControl
在TopNavControl.cshtml中的@model将接收到的信息转化为model,之后在TopNavControl.cshtml中便利出model数据。
代码不多,但值得关注的地方,theme的访问,这个很有意思,如果要明白其中的原理就要看 ~/Core/的两个theme engine相关类。 这两个类,重写了System.Web.Mvc下的engine中相关类中的虚方法,改写默认加载_layout.cshtml的路径。怎么运行 theme engine这两个类就要更多的去关注 castle windsor的 ioc DI 相关的知识了。
关于cache与动态数据库管理:就是代码实现,
if (exists cache)
根据key读取cache中的数据信息,加载上去
else
从数据库中读取
(系统自动生成,下载前可以参看下载内容)
下载文件列表
MvcCms.Services\MvcCms.Data.Service\bin\Debug\Castle.Core.dll
...............\...................\...\.....\Castle.Windsor.dll
...............\...................\...\.....\EFExtensions.dll
...............\...................\...\.....\log4net.dll
...............\...................\...\.....\Microsoft.Practices.ServiceLocation.dll
...............\...................\...\.....\MvcCms.Core.dll
...............\...................\...\.....\MvcCms.Core.pdb
...............\...................\...\.....\MvcCms.Data.dll
...............\...................\...\.....\MvcCms.Data.pdb
...............\...................\...\.....\MvcCms.Data.Service.dll
...............\...................\...\.....\MvcCms.Data.Service.pdb
...............\...................\...\.....\MvcCms.Service.dll
...............\...................\...\.....\MvcCms.Service.pdb
...............\...................\...\.....\Raccoom.Xml.dll
...............\...................\MvcCms.Data.Service.csproj
...............\...................\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
...............\...................\...\.....\MvcCms.Data.Service.csproj.FileListAbsolute.txt
...............\...................\...\.....\MvcCms.Data.Service.dll
...............\...................\...\.....\MvcCms.Data.Service.pdb
...............\...................\...\.....\ResolveAssemblyReference.cache
...............\...................\Properties\AssemblyInfo.cs
...............\.......Service\bin\Debug\Castle.Core.dll
...............\..............\...\.....\Castle.Windsor.dll
...............\..............\...\.....\EFExtensions.dll
...............\..............\...\.....\ICSharpCode.SharpZipLib.dll
...............\..............\...\.....\log4net.dll
...............\..............\...\.....\Microsoft.Practices.ServiceLocation.dll
...............\..............\...\.....\MvcCms.Core.dll
...............\..............\...\.....\MvcCms.Core.pdb
...............\..............\...\.....\MvcCms.Data.dll
...............\..............\...\.....\MvcCms.Data.pdb
...............\..............\...\.....\MvcCms.Service.dll
...............\..............\...\.....\MvcCms.Service.pdb
...............\..............\...\.....\Raccoom.Xml.dll
...............\..............\...\.....\WikiPlex.dll
...............\..............\Cache\CacheService.cs
...............\..............\.....\ICacheService.cs
...............\..............\.MSCode\CmsService.cs
...............\..............\.ode\BaseClasses\CMSControllerBase.cs
...............\..............\....\Crc32.cs
...............\..............\....\String.cs
...............\..............\Helpers\ActionLinkHelper.cs
...............\..............\.......\ActionResultHelper.cs
...............\..............\.......\IsCurrentRouteHelper.cs
...............\..............\.......\NavHelper.cs
...............\..............\ICmsService.cs
...............\..............\Logging\AppLogging.cs
...............\..............\Models\DataTablesModelBinding.cs
...............\..............\......\DataTablesParam.cs
...............\..............\MvcCms.Service.csproj
...............\..............\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
...............\..............\...\.....\MvcCms.Service.csproj.FileListAbsolute.txt
...............\..............\...\.....\MvcCms.Service.dll
...............\..............\...\.....\MvcCms.Service.pdb
...............\..............\...\.....\ResolveAssemblyReference.cache
...............\..............\Properties\AssemblyInfo.cs
...............\..............\Scheduler\IInstallAndRegisterJobs.cs
.......Web\bin\Castle.Core.dll
..........\...\Castle.Facilities.QuartzIntegration.dll
..........\...\Castle.Windsor.dll
..........\...\ColorCode.dll
..........\...\Common.Logging.dll
..........\...\CookComputing.XmlRpc.dll
..........\...\DotNetOpenAuth.dll
..........\...\EFExtensions.dll
..........\...\ICSharpCode.SharpZipLib.dll
..........\...\log4net.dll
..........\...\Microsoft.Practices.ServiceLocation.dll
..........\...\MvcCms.Core.dll
..........\...\MvcCms.Core.pdb
..........\...\MvcCms
...............\...................\...\.....\Castle.Windsor.dll
...............\...................\...\.....\EFExtensions.dll
...............\...................\...\.....\log4net.dll
...............\...................\...\.....\Microsoft.Practices.ServiceLocation.dll
...............\...................\...\.....\MvcCms.Core.dll
...............\...................\...\.....\MvcCms.Core.pdb
...............\...................\...\.....\MvcCms.Data.dll
...............\...................\...\.....\MvcCms.Data.pdb
...............\...................\...\.....\MvcCms.Data.Service.dll
...............\...................\...\.....\MvcCms.Data.Service.pdb
...............\...................\...\.....\MvcCms.Service.dll
...............\...................\...\.....\MvcCms.Service.pdb
...............\...................\...\.....\Raccoom.Xml.dll
...............\...................\MvcCms.Data.Service.csproj
...............\...................\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
...............\...................\...\.....\MvcCms.Data.Service.csproj.FileListAbsolute.txt
...............\...................\...\.....\MvcCms.Data.Service.dll
...............\...................\...\.....\MvcCms.Data.Service.pdb
...............\...................\...\.....\ResolveAssemblyReference.cache
...............\...................\Properties\AssemblyInfo.cs
...............\.......Service\bin\Debug\Castle.Core.dll
...............\..............\...\.....\Castle.Windsor.dll
...............\..............\...\.....\EFExtensions.dll
...............\..............\...\.....\ICSharpCode.SharpZipLib.dll
...............\..............\...\.....\log4net.dll
...............\..............\...\.....\Microsoft.Practices.ServiceLocation.dll
...............\..............\...\.....\MvcCms.Core.dll
...............\..............\...\.....\MvcCms.Core.pdb
...............\..............\...\.....\MvcCms.Data.dll
...............\..............\...\.....\MvcCms.Data.pdb
...............\..............\...\.....\MvcCms.Service.dll
...............\..............\...\.....\MvcCms.Service.pdb
...............\..............\...\.....\Raccoom.Xml.dll
...............\..............\...\.....\WikiPlex.dll
...............\..............\Cache\CacheService.cs
...............\..............\.....\ICacheService.cs
...............\..............\.MSCode\CmsService.cs
...............\..............\.ode\BaseClasses\CMSControllerBase.cs
...............\..............\....\Crc32.cs
...............\..............\....\String.cs
...............\..............\Helpers\ActionLinkHelper.cs
...............\..............\.......\ActionResultHelper.cs
...............\..............\.......\IsCurrentRouteHelper.cs
...............\..............\.......\NavHelper.cs
...............\..............\ICmsService.cs
...............\..............\Logging\AppLogging.cs
...............\..............\Models\DataTablesModelBinding.cs
...............\..............\......\DataTablesParam.cs
...............\..............\MvcCms.Service.csproj
...............\..............\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
...............\..............\...\.....\MvcCms.Service.csproj.FileListAbsolute.txt
...............\..............\...\.....\MvcCms.Service.dll
...............\..............\...\.....\MvcCms.Service.pdb
...............\..............\...\.....\ResolveAssemblyReference.cache
...............\..............\Properties\AssemblyInfo.cs
...............\..............\Scheduler\IInstallAndRegisterJobs.cs
.......Web\bin\Castle.Core.dll
..........\...\Castle.Facilities.QuartzIntegration.dll
..........\...\Castle.Windsor.dll
..........\...\ColorCode.dll
..........\...\Common.Logging.dll
..........\...\CookComputing.XmlRpc.dll
..........\...\DotNetOpenAuth.dll
..........\...\EFExtensions.dll
..........\...\ICSharpCode.SharpZipLib.dll
..........\...\log4net.dll
..........\...\Microsoft.Practices.ServiceLocation.dll
..........\...\MvcCms.Core.dll
..........\...\MvcCms.Core.pdb
..........\...\MvcCms