/// <summary>Sets a property value of an entity. </summary> /// <param name="entity">The entity instance.</param> /// <param name="propertyName">The property name.</param> /// <param name="value">The property value.</param> public static void SetProperty(object entity, string propertyName, object value) { var rec = EntityHelper.GetRecord(entity); rec[propertyName] = value; }