상속: Prototype.Platform.Domain.Event
 public void Handle(SubjectUpdated e)
 {
     _subjects.Update(e.Id, s =>
     {
         s.SubjectId = e.Id;
         s.Name = e.Name;
     });
 }
예제 #2
0
        public void Handle(SubjectUpdated e)
        {
            _subjects.Update(e.Id, s =>
            {
                s.DateOfBirth = e.DateOfBirth;
                s.Level = e.Level;
                s.UpdateName(e.Name, e.Initials);
                s.Version++;

                if (string.Equals(s.SiteId, e.SiteId) == false)
                {
                    s.SiteId = e.SiteId;
                    s.SiteName = GetSiteName(e.SiteId);
                }
            });
        }
 public void Handle(SubjectUpdated e)
 {
     CreateRevision(e.Id);
 }
예제 #4
0
 public void On(SubjectUpdated e)
 {
     Level = e.Level;
     DateOfBirth = e.DateOfBirth;
 }