public static PropertyInfo[] GetProperties(this object entity) { return(PropertyFactory.GetPropertyInfos(entity.GetType())); }