Anytao.net
Sign in
|
Join
Home
Contact
About
RSS
Atom
Comments RSS
Search
Tags
.NET
anytao
C#
CLR
CodeHelper
Generic
Globalization
Hot Find
Inside.NET
Lambda Expression
LINQ
Localization
Microsoft
Performance
Reflection
SilverLight
Sponsors
advertise here
News
I'm C# MVP
My Book
Navigation
Home
Blogs
Archives
February 2009 (1)
December 2008 (1)
October 2008 (1)
September 2008 (1)
August 2008 (1)
May 2008 (1)
anytao
anytao
book.anytao.com
imvp.anytao.com
Links
ScottGu
TerryLee
cbrumme's WebLog
Chris Lyon's WebLog
The Old New Thing
Jmeier
September 2008 - Posts
33
Comments
Tips: Using Reflection to assign value intelligently
by
anytao
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....
Filed under:
CLR
,
CodeHelper
,
Reflection
,
Generic
More Posts