EnergyTrading.MDM.Test.Domain.EF.Commodity.AddDetails C# (CSharp) 메소드

AddDetails() 공개 메소드

public AddDetails ( Commodity details ) : void
details Commodity
리턴 void
        public void AddDetails(Commodity details)
        {
            // Sanity checks
            if (details == null)
            {
                throw new ArgumentNullException("details");
            }

            // Copy the bits across
            CopyDetails(details);
            this.Validity = details.Validity;

            // Trim all the mappings that extend past the end of the entity.
            this.Mappings.TrimMappings(this.Validity.Finish);
        }