예제 #1
0
        public void Apply(ProductCodeChanged e)
        {
            var product = GetById(e.Id);

            product.Code    = e.NewCode;
            product.Version = e.Version;
        }
예제 #2
0
 private void Apply(ProductCodeChanged e)
 {
     Code = e.NewCode;
 }
예제 #3
0
 public void AlterCode(ProductCodeChanged e, int version)
 {
     ApplyEvent(e, version);
 }