I think I solved the problem.
I'm creating an agnostic mapping system.
I've this class:
class CustomerMapping : IEntityMapping<Customer>
{
public CustomerMapping()
{
Property(p => p.FirstName)
.Lenght(200);
}
}
The method Property save the property in a List<PropertyInfo>, then in
a second moment I've to call the method
mapper.Class<TEntity>(c => c.Property), but I've a PropertyInfo not an
Expression<Funct<TEntity, object>>.
My problem was how to call the ConfOrm method transforming the
PropertyInfo to an Expression<Funct<TEntity, object>>.
Now (I hope, I need more tests) that I can make this "conversion".
On May 28, 9:37 pm, Fabio Maulo <
fabioma...@gmail.com> wrote:
> eh?
>
> On Sat, May 28, 2011 at 2:53 PM, Matteo Migliore
> <
matteo.migli...@gmail.com>wrote: