Correction for insert + update sql - when class have reference properties

Correction for insert + update sql - when class have reference properties.

Please see this method (  public static IEnumerable<PropertyInfo> Properties(Type type) )

ofcourse you can enhance the code ..

thanks in advance