上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 31 下一页
摘要: 一种模式,对多个DBContext的支持。 引自:http://stackoverflow.com/questions/6654355/multiple-dbcontexts-in-n-tier-application Giving your Factory and UnitOfWork a generic type parameter might be a solution: public... 阅读全文
posted @ 2013-02-04 22:39 张保维 阅读(392) 评论(0) 推荐(0)
摘要: public class Model { } public interface IRepository<TEntity> { /// <summary> /// Gets entity by key. /// </summary> /// <typeparam ... 阅读全文
posted @ 2013-01-30 11:11 张保维 阅读(230) 评论(0) 推荐(0)
摘要: Reading All Users Session 这个功能,应该只限于 进行内会话,对于其它的存储方式未进行测试。当然,下面的方法也没有进行测试。理解一下实现机制就可以了。 from :http://weblogs.asp.net/imranbaloch/archive/2010/04/05/reading-all-users-session.aspx 阅读全文
posted @ 2013-01-25 18:10 张保维 阅读(193) 评论(0) 推荐(0)
摘要: namespace Kooboo.CMS.Sites.Services { public class CodeSnippetManager { protected string BasePath { get { return Kooboo.... 阅读全文
posted @ 2013-01-19 14:47 张保维 阅读(250) 评论(0) 推荐(0)
摘要: 看了一下代码,它的页面展现过程的一个大致分析。 首先看 web.config <httpModules> <remove name="UrlRoutingModule-4.0"/> <add name="UrlRoutingModule-4.0" type="Kooboo.CMS.Sites.Web.FrontUrlRoutingModule,... 阅读全文
posted @ 2013-01-19 13:55 张保维 阅读(353) 评论(0) 推荐(0)
摘要: KooBoo创建站点是从一个压缩的文件包中取得模板文件的,然后再根据这个模板文件进行进行调整,这样一个过程。 从代码来看: 从创建一个根站点开始: 1,http://localhost:3910/Sites/Site/CreateRootSite , [CreateSiteAuthroziation] public virtua... 阅读全文
posted @ 2013-01-16 15:28 张保维 阅读(502) 评论(0) 推荐(0)
摘要: 创建一个名为的数据库 去wiki.kooboo.com 找一下有两个sql 语句, /****** Object: Table [dbo].[Pages] Script Date: 02/22/2012 10:28:48 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO IF NOT EX... 阅读全文
posted @ 2013-01-15 18:04 张保维 阅读(582) 评论(0) 推荐(0)
摘要: 在 kooboo中在默认情况下生成的 url中 总是包含 dev~这样的字样 , http://localhost:3910/dev~sampless/Articles/ 我们要的可能是这样的, http://localhost:3910/sampless/Articles/ 或 http://localhost:3910/Articles/ref: http://wiki.kooboo.com... 阅读全文
posted @ 2013-01-15 10:40 张保维 阅读(342) 评论(0) 推荐(0)
摘要: 从 Niject Loader 看到过 , [assembly: System.Web.PreApplicationStartMethod ….] 这次再看一下 kooboo , 也同样通过这样的方式,启动代码方式,有意思, 先是注册启动方法 [assembly: System.Web.PreApplicationStartMethod(typeof(Kooboo.CMS.... 阅读全文
posted @ 2013-01-14 11:16 张保维 阅读(290) 评论(0) 推荐(0)
摘要: 这个系统很值得学习其中的很多发光点,看了很久的代码,如果不写出来些东西,的确是对不起开发者的汗水。 当然,从这里起有些偏颇,先从点开始吧。 然后再从整体架构来说吧。 其中数据方面,作者考虑的的确是细腻,如果使用了配置文件,就按配置文件走,如果没有配置文件,就按默认配置文件走,如果默认配置文件也没有,就使用SQLExPress。 其实在项目中,这样做是没有太大必要的,但是,这是对于... 阅读全文
posted @ 2013-01-14 10:39 张保维 阅读(349) 评论(0) 推荐(0)
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 31 下一页