/// <summary> /// Gets the value of a property which is another entity instance. /// </summary> /// <param name="propertyName">Name of the property.</param> /// <returns>Entity instance wrapper for the returned value.</returns> public WrappedEntityInstance GetReference(string propertyName) { return(this.Scope.Wrap <WrappedEntityInstance>(WrapperUtilities.GetPropertyValue(this, propertyName))); }
/// <summary> /// Gets the value of a scalar property. /// </summary> /// <param name="propertyName">Name of the property.</param> /// <returns>The value of the scalar property (unwrapped).</returns> public object GetScalar(string propertyName) { return(WrapperUtilities.GetPropertyValue(this, propertyName)); }
/// <summary> /// Gets the value of a property which is a collection. /// </summary> /// <param name="propertyName">Name of the property.</param> /// <returns>Collection wrapper for the value.</returns> public WrappedIList <WrappedEntityInstance> GetCollection(string propertyName) { return(this.Scope.Wrap <WrappedIList <WrappedEntityInstance> >(WrapperUtilities.GetPropertyValue(this, propertyName))); }