Mapping in .net4
while going through video tutorials for mvc2 which i downloaded from microsoft's website, the traineer said that there is facility available in .net4 that we can map the fields of two object of different class and we need not to set there values one by one.
let say i have got a table named tblusermaster which contains 20 columns and i have created a model named usermast开发者_如何学JAVAerModel which also contains almost same kind of fields and name.
so when i wants to assign values from object of tblusermaster to object of usermasterModel i will have to set value for all 20 fields manually one by one but he was saying that there is a facility to map such thing and we will not have to write 20 lines to transfer values from one object to another (of different class but same type and name).
i have done google for this but not able to get answer that how to do that.
please help me out and give me link and any good tutorial for this.
Thanks EDIT: its on http://www.asp.net/mvc video names are asp.net mvc2 basic and another one is asp.net mvc2 ninja black belt by Scott Hanselman
Your probably referring to the AutoMapper project on CodePlex.
There is a screencast on it here.
精彩评论