/// <summary>Creates a new, empty ProductSpecificationEntity object.</summary> /// <returns>A new, empty ProductSpecificationEntity object.</returns> public override IEntity Create() { IEntity toReturn = new ProductSpecificationEntity(); // __LLBLGENPRO_USER_CODE_REGION_START CreateNewProductSpecification // __LLBLGENPRO_USER_CODE_REGION_END return(toReturn); }
public void AddProductSpecification(int productid, string name, string value) { ProductSpecificationEntity ps = new ProductSpecificationEntity() { SpecificationName = name, SpecificationValue = value, ProductId = productid }; ps.Save(); }