コード例 #1
0
        protected virtual IUserRoleMvoStateDeleted Map(IDeleteUserRoleMvo c)
        {
            var stateEventId           = new UserRoleMvoEventId(c.UserRoleId, c.UserVersion);
            IUserRoleMvoStateDeleted e = NewUserRoleMvoStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


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


            return(e);
        }
コード例 #2
0
        protected virtual IUserRoleMvoStateDeleted Map(IDeleteUserRoleMvo c)
        {
            var stateEventId           = new UserRoleMvoStateEventId(c.UserRoleId, c.UserVersion);
            IUserRoleMvoStateDeleted e = NewUserRoleMvoStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


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


            return(e);
        }
コード例 #3
0
        public virtual void Delete(IDeleteUserRoleMvo c)
        {
            IUserRoleMvoStateDeleted e = Map(c);

            Apply(e);
        }
コード例 #4
0
 void IUserRoleMvoApplicationService.When(IDeleteUserRoleMvo c)
 {
     this.When((DeleteUserRoleMvoDto)c);
 }
コード例 #5
0
 public virtual void When(IDeleteUserRoleMvo c)
 {
     Update(c, ar => ar.Delete(c));
 }