/// <summary> /// 设置所有权人 /// </summary> /// <param name="supplier">所有权人</param> public void SetSupplier(Supplier supplier) { if (supplier == null || supplier.IsTransient()) { throw new ArgumentException("所有权人参数为空!"); } Supplier = supplier; SupplierId = supplier.Id; }
/// <summary> /// 设置发动机所有权人 /// </summary> /// <param name="supplier">发动机所有权人</param> public void SetSupplier(Supplier supplier) { Supplier = supplier; SupplierId = supplier.Id; }