Exemplo n.º 1
0
        protected virtual IUserLoginMvoStateDeleted Map(IDeleteUserLoginMvo c)
        {
            var stateEventId            = new UserLoginMvoStateEventId(c.UserLoginId, c.UserVersion);
            IUserLoginMvoStateDeleted e = NewUserLoginMvoStateDeleted(stateEventId);

            ReflectUtils.CopyPropertyValue("CommandId", c, e);


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


            return(e);
        }
Exemplo n.º 2
0
        protected virtual IUserLoginMvoStateDeleted Map(IDeleteUserLoginMvo c)
        {
            var stateEventId            = new UserLoginMvoEventId(c.UserLoginId, c.UserVersion);
            IUserLoginMvoStateDeleted e = NewUserLoginMvoStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


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


            return(e);
        }
Exemplo n.º 3
0
        public virtual void Delete(IDeleteUserLoginMvo c)
        {
            IUserLoginMvoStateDeleted e = Map(c);

            Apply(e);
        }
 public virtual void When(IDeleteUserLoginMvo c)
 {
     Update(c, ar => ar.Delete(c));
 }
Exemplo n.º 5
0
 void IUserLoginMvoApplicationService.When(IDeleteUserLoginMvo c)
 {
     this.When((DeleteUserLoginMvoDto)c);
 }