<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_风云_分类_OO Mapper</title><id>http://feed.cnblogs.com/blog/u/13626/category/292310/rss</id><updated>2012-06-04T02:01:01Z</updated><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/netcasewqs/category/292310.html"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/13626/category/292310/rss"/><entry><id>http://www.cnblogs.com/netcasewqs/archive/2011/04/18/2019999.html</id><title type="text">Class 创建性能大比拼（反射，泛型反射，泛型创建，缓存Emit，非缓存Emit）</title><summary type="text">一说到反射，很多人都想到了性能，更有甚者直接说“慎用反射，遗患无穷”，“用反射，感觉怎么像是退步啊～”，看到这种言论，直接把反射妖魔化了，如果这种言论长此以往，势必会对很多对反射初学者造成负面影响。反射是一把双刃剑，看你怎样使用了，下面我就用代码说话。class TestEntity { } 1. 手工创建TestEntity [TestInfo(Category = "Class.Constructor", Name = "Direct")] class DirectInvokeMode:IRunable { public void Run() { n</summary><published>2011-04-18T08:37:00Z</published><updated>2011-04-18T08:37:00Z</updated><author><name>风云</name><uri>http://www.cnblogs.com/netcasewqs/</uri></author><link rel="alternate" href="http://www.cnblogs.com/netcasewqs/archive/2011/04/18/2019999.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/netcasewqs/archive/2011/04/18/2019999.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/netcasewqs/archive/2011/04/13/2014684.html</id><title type="text">EmitMapper,AutoMapper,NLiteMapper和手工映射性能大比拼</title><summary type="text">在大比拼之前先讲一个小插曲，我这个人以前比较低调，做了很多好东西仅仅在公司内的朋友圈项目圈内分享，很少在博客园内进行分享，后来在dudu 老大的文章博客园现代化建设——AutoMapper有感便推荐一下OOMapper 组件,于是乎接连写了几篇入门性的介绍使用文章：开发人员必备工具：OOMapperOO Mapper 实践（上篇）OO Mapper 实践（下篇） 在园友Repository兄的NLiteMapper与EmitMapper性能简单比较中了解到NLiteMapper与EmitMapper的性能巨大差距，于是乎进行了两天的性能优化，同时总结了优化过程：一次性能优化最佳实践。在这里非.</summary><published>2011-04-13T04:49:00Z</published><updated>2011-04-13T04:49:00Z</updated><author><name>风云</name><uri>http://www.cnblogs.com/netcasewqs/</uri></author><link rel="alternate" href="http://www.cnblogs.com/netcasewqs/archive/2011/04/13/2014684.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/netcasewqs/archive/2011/04/13/2014684.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/netcasewqs/archive/2011/04/11/2012249.html</id><title type="text">一次性能优化最佳实践</title><summary type="text">上周五下班前，在Repository兄测试NLiteMapper和EmitMapper的文章中,发现了令我跌破眼镜的性能悬殊对比12283ms : 7ms。真不可思议，与是便把EmitMapper的源代码和OOMapper 的源代码一起下载下来，以Release模式的方式做一个公平对比。测试代码仍然沿用Repository兄的，代码如下：public class SimpleClassFrom { public long ID { get; set; } public string Name { get; set; } public int Age { get; set; } public .</summary><published>2011-04-11T03:28:00Z</published><updated>2011-04-11T03:28:00Z</updated><author><name>风云</name><uri>http://www.cnblogs.com/netcasewqs/</uri></author><link rel="alternate" href="http://www.cnblogs.com/netcasewqs/archive/2011/04/11/2012249.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/netcasewqs/archive/2011/04/11/2012249.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/netcasewqs/archive/2011/04/08/2009403.html</id><title type="text">OO Mapper 实践（下篇）</title><summary type="text">上篇介绍了OO Mapper 最核心的映射，简单类型映射，这篇将介绍的复合类型的映射。 1. Dictionary - &gt; Dictionary 字典类型分为：IDictionary,IDictioanry&lt;TKey,TValue&gt; public class SourceValue { public int Value { get; set; } } public class DestValue { public int Value { get; set; } } [Test] public void Example() { var sourceDict = new Dict</summary><published>2011-04-08T07:53:00Z</published><updated>2011-04-08T07:53:00Z</updated><author><name>风云</name><uri>http://www.cnblogs.com/netcasewqs/</uri></author><link rel="alternate" href="http://www.cnblogs.com/netcasewqs/archive/2011/04/08/2009403.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/netcasewqs/archive/2011/04/08/2009403.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/netcasewqs/archive/2011/04/08/2009278.html</id><title type="text">OO Mapper  实践（上篇）</title><summary type="text">上一篇介绍了OO Mapper的作用以及支持的功能。这一篇将以上一篇为提纲进行实践。 准备工作：下载NLite编译NLite 项目创建一个NUnit单元测试项目添加NLite.dll 引用添加 : using NLite; 实践： 1. Any -&gt; StringAssert.AreEqual("5", Mapper.Map&lt;int, string&gt;(5)); 2. primitive-&gt;Enum,Enum-&gt;primitive [TestFixture] public class EnumTests { public enum En1 : b</summary><published>2011-04-08T04:50:00Z</published><updated>2011-04-08T04:50:00Z</updated><author><name>风云</name><uri>http://www.cnblogs.com/netcasewqs/</uri></author><link rel="alternate" href="http://www.cnblogs.com/netcasewqs/archive/2011/04/08/2009278.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/netcasewqs/archive/2011/04/08/2009278.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/netcasewqs/archive/2011/04/08/2009236.html</id><title type="text">开发人员必备工具 ：OO Mapper</title><summary type="text">昨天看了dudu 老大的文章博客园现代化建设——AutoMapper有感便推荐一下OOMapper 组件，诚然OOMapper 组件是站在巨人的肩膀上，如AutoMapper，EmitMapper，以及Codeplex上所有类似组件上都做了借鉴，也重新发明了轮子，但是在发明轮子的过程中个人的积累也在提升。 OO Mapper 是NLite组件库中的一个组件，它是一个对象到对象转换的映射工具，常常用于把复杂的对象转化为DTO对象。 OO Mapper 支持以下映射功能： Any -&gt; String Primitive -&gt; Enum Enum -&gt; Primitive Null</summary><published>2011-04-08T03:45:00Z</published><updated>2011-04-08T03:45:00Z</updated><author><name>风云</name><uri>http://www.cnblogs.com/netcasewqs/</uri></author><link rel="alternate" href="http://www.cnblogs.com/netcasewqs/archive/2011/04/08/2009236.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/netcasewqs/archive/2011/04/08/2009236.html"/><content type="html"/></entry></feed>
