示例#1
0
        protected virtual IAttributeSetStateDeleted Map(IDeleteAttributeSet c)
        {
            var stateEventId            = new AttributeSetStateEventId(c.AttributeSetId, c.Version);
            IAttributeSetStateDeleted e = NewAttributeSetStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = DateTime.Now;


            return(e);
        }
示例#2
0
        protected virtual IAttributeSetStateDeleted Map(IDeleteAttributeSet c)
        {
            var stateEventId            = new AttributeSetEventId(c.AttributeSetId, c.Version);
            IAttributeSetStateDeleted e = NewAttributeSetStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();


            return(e);
        }
示例#3
0
        public virtual void Delete(IDeleteAttributeSet c)
        {
            IAttributeSetStateDeleted e = Map(c);

            Apply(e);
        }
示例#4
0
 public virtual void When(IDeleteAttributeSet c)
 {
     Update(c, ar => ar.Delete(c));
 }
 void IAttributeSetApplicationService.When(IDeleteAttributeSet c)
 {
     this.When((DeleteAttributeSetDto)c);
 }