public Picture(int aId, PictureId aPictureId, PictureUseType aUseType) : base(aId) { if (aId <= 0) { throw new ArgumentException("Id不能小于或等于0"); } if (aPictureId == null) { throw new ArgumentException("图片Id不能为空"); } PictureId = aPictureId; UseType = aUseType; }
public void Update(PictureId aPictureId, PictureUseType aUseType) { PictureId = aPictureId; UseType = aUseType; }