明永成

导航

 

2011年7月4日

摘要: Overview Microsoft is excited to extend the developer community source code reference and debug capabilities against core Microsoft platform technologies. By gaining a better understanding of the platform code running beneath your application, developers will be able to code more innovative and secu 阅读全文
posted @ 2011-07-04 11:44 明永成 阅读(227) 评论(0) 推荐(0) 编辑
 
摘要: 通过SQL Server的位运算功能巧妙解决多选查询 项目中很多业务对象的数据表中都具有Status字段,有人使用int型保存Status,有人使用varchar型。无论使用int还是varchar,对于Status的多选查询都是不易应对的。举例,常规思维下对CustomerStatus的Enum设置如下: [Serializable] public enum CustomerStatus { New = 0, Active = 1, Overdue = 2, Suspended = 3, Closing = 4, Closed = 5}在数据库中以int形式存储了Status值。如果我在页面 阅读全文
posted @ 2011-07-04 10:45 明永成 阅读(263) 评论(0) 推荐(0) 编辑