Select property by lambda by PropertyInfo variable
<p>This is my POCO object:</p>

<pre><code>public class ExampleTestOfDataTypes
{
    public float FloatProp { get; set; }
    public BoolWrapper BoolProp2 { get; set; }
}
</code></pre>

<p>This is configuration file of the POCO</p>

<pre><code>public class ExampleTestOfDataTypesConfig : EntityTypeConfiguration&lt;ExampleTestOfDataTypes&gt;
{
    public ExampleTestOfDataTypesConfig()
    {    
         this.Property(x=&gt;x.FloatProp).HasColumnName("CustomColumnName");
    }
} 
</code></pre>

<p>This is definition of EntityTypeConfiguration (the property configuration is just for example)</p>

<pre><code>ExampleTestOfDataTypesConfig config = new ExampleTestOfDataTypesConfig();
</code></pre>

<p>I need to go through all the properties of class ExampleTestOfDataTypes, find all the properties which dataTypes are derived from Wrapper (BoolWrapper is) and then get these properties using lambda expression. Or anyhow select them by config.Property(...) </p>

<pre><code>Type configPocoType = config.GetType().BaseType.GetGenericArguments()[0];
var poco = Activator.CreateInstance(configPocoType);

foreach (System.Reflection.PropertyInfo property in poco.GetType().GetProperties())
{
    if (property.PropertyType.BaseType!=null&amp;&amp;
        property.PropertyType.BaseType == typeof(Wrapper)
        )
    {
        //TODO: Set property
        //config.Property(x=&gt;x.[What here]); //?
    }
}
</code></pre>

<p>Thanks</p>
