protected virtual IPicklistRoleMvoStateCreated Map(ICreatePicklistRoleMvo c) { var stateEventId = new PicklistRoleMvoEventId(c.PicklistRoleId, c.PicklistVersion); IPicklistRoleMvoStateCreated e = NewPicklistRoleMvoStateCreated(stateEventId); e.Version = c.Version; e.Active = c.Active; e.PicklistDescription = c.PicklistDescription; e.PicklistFacilityId = c.PicklistFacilityId; e.PicklistShipmentMethodTypeId = c.PicklistShipmentMethodTypeId; e.PicklistStatusId = c.PicklistStatusId; e.PicklistPicklistDate = c.PicklistPicklistDate; e.PicklistPickwaveId = c.PicklistPickwaveId; e.PicklistCreatedBy = c.PicklistCreatedBy; e.PicklistCreatedAt = c.PicklistCreatedAt; e.PicklistUpdatedBy = c.PicklistUpdatedBy; e.PicklistUpdatedAt = c.PicklistUpdatedAt; e.PicklistActive = c.PicklistActive; e.PicklistDeleted = c.PicklistDeleted; e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); var picklistVersion = c.PicklistVersion; return(e); }
protected PicklistRoleMvoStateDeleted NewPicklistRoleMvoStateDeleted(long version, string commandId, string requesterId) { var stateEventId = new PicklistRoleMvoEventId(_state.PicklistRoleId, version); var e = NewPicklistRoleMvoStateDeleted(stateEventId); e.CommandId = commandId; e.CreatedByUserLogin = (string)requesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
protected virtual IPicklistRoleMvoStateDeleted Map(IDeletePicklistRoleMvo c) { var stateEventId = new PicklistRoleMvoEventId(c.PicklistRoleId, c.PicklistVersion); IPicklistRoleMvoStateDeleted e = NewPicklistRoleMvoStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
public override bool Equals(object obj) { if (Object.ReferenceEquals(this, obj)) { return(true); } PicklistRoleMvoEventId other = obj as PicklistRoleMvoEventId; if (other == null) { return(false); } return(true && Object.Equals(this.PicklistRoleId, other.PicklistRoleId) && Object.Equals(this.PicklistVersion, other.PicklistVersion) ); }
protected PicklistRoleMvoStateEventDtoBase(PicklistRoleMvoEventId stateEventId) { this.PicklistRoleMvoEventId = stateEventId; }
public PicklistRoleMvoStateDeleted(PicklistRoleMvoEventId stateEventId) : base(stateEventId) { }
public PicklistRoleMvoStateMergePatched(PicklistRoleMvoEventId stateEventId) : base(stateEventId) { }
protected PicklistRoleMvoStateEventBase(PicklistRoleMvoEventId stateEventId) : base(stateEventId) { }
private PicklistRoleMvoStateDeleted NewPicklistRoleMvoStateDeleted(PicklistRoleMvoEventId stateEventId) { return(new PicklistRoleMvoStateDeleted(stateEventId)); }
private PicklistRoleMvoStateMergePatched NewPicklistRoleMvoStateMergePatched(PicklistRoleMvoEventId stateEventId) { return(new PicklistRoleMvoStateMergePatched(stateEventId)); }