How to convert PropertyInfo to property expression and use it to invoke generic method?
问题 How to convert PropertyInfo to property expression which can be used to invoke StructuralTypeConfiguration<TStructuralType>.Ignore<TProperty>(Expression<Func<TStructuralType, TProperty>> propertyExpression) method? I tried to use Expression.Property() to construct expression but I am getting following error when I use this expression as propertyExpression parameter: The type arguments for method cannot be inferred from the usage. Try specifying the type arguments explicitly. This error