GetEntityList() public method

Gets the list of data retrieved by the associated ILinkedDataSource object.
public GetEntityList ( ) : IList
return IList
        /// <summary>
        /// Gets the collection of business objects from the specified relationship member.
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="member">The relationship member.</param>
        /// <param name="listPropertyName">The property name.</param>
        /// <returns>A collection of business objects which represent the
        /// relationship defined by the specified relationship member.</returns>
        protected IList GetList(Object entity, EntityRelationshipMember member, String listPropertyName)
        {
            IList list;

            if (member != null && member.HasDataSource)
            {
                // get list from data source
                list = member.GetEntityList();
            }
            else
            {
                // get list from DeepLoaded entity
                list = EntityUtil.GetEntityList(entity, listPropertyName);
            }

            return(list);
        }
Example #2
0
		/// <summary>
		/// Gets the collection of business objects from the specified relationship member.
		/// </summary>
		/// <param name="entity"></param>
		/// <param name="member">The relationship member.</param>
		/// <param name="listPropertyName">The property name.</param>
		/// <returns>A collection of business objects which represent the
		/// relationship defined by the specified relationship member.</returns>
		protected IList GetList(Object entity, EntityRelationshipMember member, String listPropertyName)
		{
			IList list;

			if ( member != null && member.HasDataSource )
			{
				// get list from data source
				list = member.GetEntityList();
			}
			else
			{
				// get list from DeepLoaded entity
				list = EntityUtil.GetEntityList(entity, listPropertyName);
			}

			return list;
		}