protected OrganizationStructureTypeStateDeleted NewOrganizationStructureTypeStateDeleted(long version, string commandId, string requesterId) { var stateEventId = new OrganizationStructureTypeEventId(_state.Id, version); var e = NewOrganizationStructureTypeStateDeleted(stateEventId); e.CommandId = commandId; e.CreatedBy = (string)requesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
protected virtual IOrganizationStructureTypeStateDeleted Map(IDeleteOrganizationStructureType c) { var stateEventId = new OrganizationStructureTypeEventId(c.Id, c.Version); IOrganizationStructureTypeStateDeleted e = NewOrganizationStructureTypeStateDeleted(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); } OrganizationStructureTypeEventId other = obj as OrganizationStructureTypeEventId; if (other == null) { return(false); } return(true && Object.Equals(this.Id, other.Id) && Object.Equals(this.Version, other.Version) ); }
protected virtual IOrganizationStructureTypeStateMergePatched Map(IMergePatchOrganizationStructureType c) { var stateEventId = new OrganizationStructureTypeEventId(c.Id, c.Version); IOrganizationStructureTypeStateMergePatched e = NewOrganizationStructureTypeStateMergePatched(stateEventId); e.Description = c.Description; e.Active = c.Active; e.IsPropertyDescriptionRemoved = c.IsPropertyDescriptionRemoved; e.IsPropertyActiveRemoved = c.IsPropertyActiveRemoved; e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); var version = c.Version; return(e); }
protected OrganizationStructureTypeStateEventDtoBase(OrganizationStructureTypeEventId stateEventId) { this.OrganizationStructureTypeEventId = stateEventId; }
public OrganizationStructureTypeStateDeleted(OrganizationStructureTypeEventId stateEventId) : base(stateEventId) { }
public OrganizationStructureTypeStateMergePatched(OrganizationStructureTypeEventId stateEventId) : base(stateEventId) { }
protected OrganizationStructureTypeStateEventBase(OrganizationStructureTypeEventId stateEventId) : base(stateEventId) { }
private OrganizationStructureTypeStateDeleted NewOrganizationStructureTypeStateDeleted(OrganizationStructureTypeEventId stateEventId) { return(new OrganizationStructureTypeStateDeleted(stateEventId)); }
private OrganizationStructureTypeStateMergePatched NewOrganizationStructureTypeStateMergePatched(OrganizationStructureTypeEventId stateEventId) { return(new OrganizationStructureTypeStateMergePatched(stateEventId)); }