Version 2.0 changelog

Aug 12, 2010 at 5:56 AM

Hi,

are there notable new features in version 2.0 just landed?

Thanks

Coordinator
Aug 12, 2010 at 7:14 AM
Edited Aug 12, 2010 at 10:54 AM

Hi,

yes, there is a new type of injection ExactValueInjection which is basically a one-to-one injection and with it you can do some conventions like for example:

from FooName to DisplayFoo

personally I extend it with <T> and I do typeof(T).Name + "Name" == "Display" + typeof(T).Name

also the LoopValueInjection can do something similar now

also I removed the parameters targetProps and sourceProps from the Inject method, but you can get them by doing source or target .GetProps() (if you need them of course)and

if you were using just the LoopValueInjection that all this should not really matter for you

also in the sample solution I've added a DAL sample project, to demonstrate how ValueInjecter can be used for DataAccess

Cheers,

Omu

Coordinator
Aug 12, 2010 at 10:55 AM

I'm going to edit the "Getting started", also you can look into the unit tests

especially

ExactValueInjectionTests and SixFootUnderTests