摘要:
1.基础类publicclassHappy{publicoverridestringToString(){return"每天都开心,每天都有好心情";}}publicclassOneYear{publicoverridestringToString(){return"快乐的一年";}}publicc... 阅读全文
摘要:
1.person类publicclassPerson{publicstringName{get;set;}publicintAge{get;set;}publicPersonFriend{get;set;}}2. persondao类publicclassPersonDao{privatePerso... 阅读全文
摘要:
1. 谈到高级语言编程,我们就会联想到设计模式;谈到设计模式,我们就会说道怎么样解耦合。而Spring.NET的IoC容器其中的一种用途就是解耦合,其最经典的应用就是:依赖注入(Dependeny Injection)简称DI,目前DI是最优秀的解耦方式之一。下面我就来谈谈依赖注入的应用场景。 ... 阅读全文
摘要:
1.原料类namespace CreateObjects{ public class GenericClass { }}PersonDao 类 包含嵌套类型namespace CreateObjects{ public class PersonDao { public class Person {... 阅读全文
摘要:
1.persondao类namespace MyselfIoC{ public class PersonDao { public override string ToString() { return "我是PersonDao"; } }}2.xml 工厂文件3.工厂ioc 构造函数实例化一个ioc... 阅读全文
摘要:
1.app.config <?xml version="1.0" encoding="utf-8" ?><configuration> <configSections> <sectionGroup name="spring"> <section name="context" type="Spring 阅读全文
摘要:
select * from (select * from (select a1.*,ROW_NUMBER() over(order by mid) as rows from Menu as a1) a2 where rows=6 阅读全文
摘要:
http://news.cnblogs.com/n/37759/ 阅读全文
摘要:
1 阅读全文