摘要:
To set a default value of column with "datetime" type we need to take the advantage of setting the default value of the column within the native DB. In NHibernate we should the set the attritute "generated" to be "alway" or "insert" which will tell NHibernate to fullfill the value of the column with the value assigned from the native DB. Actually there are three value options for the "generated" attribute. 阅读全文
随笔档案-2011年09月
Effective C# 学习笔记导航
2011-09-18 23:04 by 小郝(Kaibo Hao), 3075 阅读, 收藏,
摘要:
最近一段时间,利用空闲时间读了《Effective C# - 50 Specific Ways to Improve Your C#》的第二版,收获不少,尤其是对于.Net 4.0 新特性(PLINQ、Dynamic programming等)的介绍让人眼前一亮,激发了许多新的思路。书是英文的,自己写了些中文的笔记,主要是用于帮助自己记住这些知识点,几乎每个笔记都有知识点的总结和相应的代码。也希望能对大家有所帮助 :)。导航分部分列出各个笔记,以便大家查找方便:) 阅读全文
Effective C# 学习笔记(五十)构建小型内聚程序集
2011-09-12 23:17 by 小郝(Kaibo Hao), 422 阅读, 收藏,
摘要:
构建程序集的考虑要点
1. 将处理一个功能集的公有类型及其基类和接口放到一个程序中
2. 将各个公有类型共用的Utility类作为internal放到该程序集中
3.将各个程序集公用的Utility单独构建程序集(如:logging、Exception Handling) 阅读全文
NHibernate Notes1_Creating Class Hierarchy mappings
2011-09-04 22:50 by 小郝(Kaibo Hao), 263 阅读, 收藏,
摘要:
This notes talks about how to Create Class Hierarchy mappings in NHibernate 阅读全文
NHibernate Notes2_Handling versioning and concurrency
2011-09-04 22:47 by 小郝(Kaibo Hao), 334 阅读, 收藏,
摘要:
This notes talks about the optmistic and pessmistic locking to hande versioning and cucurrency in NHibernate. 阅读全文
浙公网安备 33010602011771号