protected virtual IAttributeAliasMvoStateCreated Map(ICreateAttributeAliasMvo c) { var stateEventId = new AttributeAliasMvoEventId(c.AttributeAliasId, c.AttributeVersion); IAttributeAliasMvoStateCreated e = NewAttributeAliasMvoStateCreated(stateEventId); e.Name = c.Name; e.Version = c.Version; e.Active = c.Active; e.AttributeAttributeName = c.AttributeAttributeName; e.AttributeOrganizationId = c.AttributeOrganizationId; e.AttributeDescription = c.AttributeDescription; e.AttributeIsMandatory = c.AttributeIsMandatory; e.AttributeAttributeValueType = c.AttributeAttributeValueType; e.AttributeAttributeValueLength = c.AttributeAttributeValueLength; e.AttributeIsList = c.AttributeIsList; e.AttributeFieldName = c.AttributeFieldName; e.AttributeReferenceId = c.AttributeReferenceId; e.AttributeCreatedBy = c.AttributeCreatedBy; e.AttributeCreatedAt = c.AttributeCreatedAt; e.AttributeUpdatedBy = c.AttributeUpdatedBy; e.AttributeUpdatedAt = c.AttributeUpdatedAt; e.AttributeActive = c.AttributeActive; e.AttributeDeleted = c.AttributeDeleted; e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); var attributeVersion = c.AttributeVersion; return(e); }
protected AttributeAliasMvoStateDeleted NewAttributeAliasMvoStateDeleted(long version, string commandId, string requesterId) { var stateEventId = new AttributeAliasMvoEventId(_state.AttributeAliasId, version); var e = NewAttributeAliasMvoStateDeleted(stateEventId); e.CommandId = commandId; e.CreatedBy = (string)requesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
protected virtual IAttributeAliasMvoStateDeleted Map(IDeleteAttributeAliasMvo c) { var stateEventId = new AttributeAliasMvoEventId(c.AttributeAliasId, c.AttributeVersion); IAttributeAliasMvoStateDeleted e = NewAttributeAliasMvoStateDeleted(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); } AttributeAliasMvoEventId other = obj as AttributeAliasMvoEventId; if (other == null) { return(false); } return(true && Object.Equals(this.AttributeAliasId, other.AttributeAliasId) && Object.Equals(this.AttributeVersion, other.AttributeVersion) ); }
protected AttributeAliasMvoEventBase(AttributeAliasMvoEventId stateEventId) { this.AttributeAliasMvoEventId = stateEventId; }
public AttributeAliasMvoStateDeleted(AttributeAliasMvoEventId stateEventId) : base(stateEventId) { }
public AttributeAliasMvoStateMergePatched(AttributeAliasMvoEventId stateEventId) : base(stateEventId) { }
protected AttributeAliasMvoStateEventBase(AttributeAliasMvoEventId stateEventId) : base(stateEventId) { }
private AttributeAliasMvoStateDeleted NewAttributeAliasMvoStateDeleted(AttributeAliasMvoEventId stateEventId) { return(new AttributeAliasMvoStateDeleted(stateEventId)); }
private AttributeAliasMvoStateMergePatched NewAttributeAliasMvoStateMergePatched(AttributeAliasMvoEventId stateEventId) { return(new AttributeAliasMvoStateMergePatched(stateEventId)); }