Inheritance: System.Entity
Beispiel #1
0
        public BaselOecdCode(WasteCode code)
        {
            if (code.CodeType != CodeType.Basel && code.CodeType != CodeType.Oecd)
            {
                throw new ArgumentException(string.Format(
                                                "Supplied code type {0} is not basel or oecd",
                                                code.CodeType));
            }

            Code = new WasteTypeWasteCode(code.Id);
        }
        public BaselOecdCode(WasteCode code)
        {
            if (code.CodeType != CodeType.Basel && code.CodeType != CodeType.Oecd)
            {
                throw new ArgumentException(string.Format(
                    "Supplied code type {0} is not basel or oecd",
                    code.CodeType));
            }

            Code = new WasteTypeWasteCode(code.Id);
        }