/// <summary>Creates a new ProductVariationEntity instance but uses a special constructor which will set the Fields object of the new /// IEntity2 instance to the passed in fields object. Implement this method to support multi-type in single table inheritance.</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 virtual IEntity2 Create(IEntityFields2 fields) { IEntity2 toReturn = new ProductVariationEntity(fields); // __LLBLGENPRO_USER_CODE_REGION_START CreateNewProductVariationUsingFields // __LLBLGENPRO_USER_CODE_REGION_END return toReturn; }
/// <summary>Creates a new, empty ProductVariationEntity object.</summary> /// <returns>A new, empty ProductVariationEntity object.</returns> public virtual IEntity2 Create() { IEntity2 toReturn = new ProductVariationEntity(); // __LLBLGENPRO_USER_CODE_REGION_START CreateNewProductVariation // __LLBLGENPRO_USER_CODE_REGION_END return toReturn; }