/// <summary>Creates a new Category1PostEntity instance but uses a special constructor which will set the Fields object of the new IEntity2 instance to the passed in fields object.</summary>
        /// <param name="fields">Populated IEntityFields2 object for the new IEntity2 to create</param>
        /// <returns>Fully created and populated (due to the IEntityFields2 object) IEntity2 object</returns>
        public override IEntity2 Create(IEntityFields2 fields)
        {
            IEntity2 toReturn = new Category1PostEntity(fields);

            // __LLBLGENPRO_USER_CODE_REGION_START CreateNewCategory1PostUsingFields
            // __LLBLGENPRO_USER_CODE_REGION_END
            return toReturn;
        }
        /// <summary>Creates a new, empty Category1PostEntity object.</summary>
        /// <returns>A new, empty Category1PostEntity object.</returns>
        public override IEntity2 Create()
        {
            IEntity2 toReturn = new Category1PostEntity();

            // __LLBLGENPRO_USER_CODE_REGION_START CreateNewCategory1Post
            // __LLBLGENPRO_USER_CODE_REGION_END
            return toReturn;
        }
Example #3
0
 /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
 /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
 /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
 public override RelationCollection GetRelationsForFieldOfType(string fieldName)
 {
     return(Category1PostEntity.GetRelationsForField(fieldName));
 }