コード例 #1
0
ファイル: Picture.cs プロジェクト: 84646310/GS
 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;
 }
コード例 #2
0
ファイル: Picture.cs プロジェクト: 84646310/GS
 public void Update(PictureId aPictureId, PictureUseType aUseType)
 {
     PictureId = aPictureId;
     UseType   = aUseType;
 }