예제 #1
0
        /// <summary>
        ///     设置所有权人
        /// </summary>
        /// <param name="supplier">所有权人</param>
        public void SetSupplier(Supplier supplier)
        {
            if (supplier == null || supplier.IsTransient())
            {
                throw new ArgumentException("所有权人参数为空!");
            }

            Supplier = supplier;
            SupplierId = supplier.Id;
        }
예제 #2
0
파일: Engine.cs 프로젝트: unicloud/FRP
 /// <summary>
 ///     设置发动机所有权人
 /// </summary>
 /// <param name="supplier">发动机所有权人</param>
 public void SetSupplier(Supplier supplier)
 {
     Supplier = supplier;
     SupplierId = supplier.Id;
 }