コード例 #1
0
        /// <summary>
        /// Lazy load a property (HasMany).
        /// </summary>
        /// <typeparam name="TPropertyClass">The type of the property class.</typeparam>
        /// <param name="property">The property.</param>
        /// <returns></returns>
        protected List <TPropertyClass> LazyLoadMany <TPropertyClass>(string property)
            where TPropertyClass : ActiveRecordBase
        {
            HasManyAttribute attr = ActiveRecordMaster.GetHasMany(this.GetType(), property);

            List <TPropertyClass> items = this.LazyLoadMany <TPropertyClass>(attr);

            return(items);
        }