<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Anytao.net : Generic</title><link>http://weblogs.asp.net/anytao/archive/tags/Generic/default.aspx</link><description>Tags: Generic</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Tips: Using Reflection to assign value intelligently</title><link>http://weblogs.asp.net/anytao/archive/2008/09/26/tips-using-reflection-to-assign-value-intelligently.aspx</link><pubDate>Fri, 26 Sep 2008 06:24:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6642400</guid><dc:creator>anytao</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/anytao/rsscomments.aspx?PostID=6642400</wfw:commentRss><comments>http://weblogs.asp.net/anytao/archive/2008/09/26/tips-using-reflection-to-assign-value-intelligently.aspx#comments</comments><description>Usually, we map data from DB into models in for DAL. Of cource, we aslo encapsulate the models into Business Object(BO) or Domain Object(DO) for BLL. That's usual design affairs. In the case of design, different layers make a clear organize about business logic from data, service and so on.

However, it's unavoidable to pass value from Models to BOs to run business logic or pass value from BOs to Models to save data. This is unreasonable to handle many data transfer but necessary in this satuiation. How can we make it easy? Of course it is. Refelecting is a useful way to make data transfer easy for different CLR types value assignment....(&lt;a href="http://weblogs.asp.net/anytao/archive/2008/09/26/tips-using-reflection-to-assign-value-intelligently.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6642400" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/anytao/archive/tags/CLR/default.aspx">CLR</category><category domain="http://weblogs.asp.net/anytao/archive/tags/CodeHelper/default.aspx">CodeHelper</category><category domain="http://weblogs.asp.net/anytao/archive/tags/Reflection/default.aspx">Reflection</category><category domain="http://weblogs.asp.net/anytao/archive/tags/Generic/default.aspx">Generic</category></item></channel></rss>