public static RetailKitReleasedSubstitute CreateRetailKitReleasedSubstitute(string dataAreaId,
                                                                                    string kitProductNumber,
                                                                                    decimal kitComponentLineNumber,
                                                                                    string substituteProductNumber,
                                                                                    decimal substituteCharge,
                                                                                    global::Microsoft.Dynamics.DataEntities.RetailKitComponentSubstitute retailKitComponentSubstitute)
        {
            RetailKitReleasedSubstitute retailKitReleasedSubstitute = new RetailKitReleasedSubstitute();

            retailKitReleasedSubstitute.dataAreaId              = dataAreaId;
            retailKitReleasedSubstitute.KitProductNumber        = kitProductNumber;
            retailKitReleasedSubstitute.KitComponentLineNumber  = kitComponentLineNumber;
            retailKitReleasedSubstitute.SubstituteProductNumber = substituteProductNumber;
            retailKitReleasedSubstitute.SubstituteCharge        = substituteCharge;
            if ((retailKitComponentSubstitute == null))
            {
                throw new global::System.ArgumentNullException("retailKitComponentSubstitute");
            }
            retailKitReleasedSubstitute.RetailKitComponentSubstitute = retailKitComponentSubstitute;
            return(retailKitReleasedSubstitute);
        }
 partial void OnRetailKitComponentSubstituteChanging(global::Microsoft.Dynamics.DataEntities.RetailKitComponentSubstitute value);