04 2013 档案
在ASP.NET Web API下使用[Serializble]的问题
摘要:By default you don't need to use neither [Serializble] nor [DataContract] to work with Web API. 默认情况下ASP.NET Web API 不需要[Serializble] 或者[DataContract]标记Just leave your model as is, and Web API would serialize all the public properties for you.ASP.NET Web API会自动帮我们序列化所有Public属性Only if you want to
阅读全文
MyBatis.Net使用备忘
摘要:1. 在 【statement】, 【select】, 和【procedure】 标签中存在一个可选的属性【remapResults】,默认值是false.如果每次查询的列不固定的话,这个属性需要设置为true。当设置remapResults为"true"时:这个属性会造成一定的性能损失,所以要谨慎使用,只在你需要的时候使用,比如查询列发生变化或检索的表发生变化。2. 尽量不使用MyBatis的cacheModels,尽量用Couchbase等缓存框架来缓存数据。
阅读全文