private AttributeUseEventId NewAttributeUseEventId(string attributeId) { var eId = new AttributeUseEventId(); eId.AttributeSetId = this.AttributeSetEventId.AttributeSetId; eId.AttributeId = attributeId; eId.AttributeSetVersion = this.AttributeSetEventId.Version; return(eId); }
}// END Map(IMergePatch... //////////////////////////// protected virtual IAttributeUseStateRemoved MapRemove(IRemoveAttributeUse c, IAttributeSetCommand outerCommand, long version) { c.RequesterId = outerCommand.RequesterId; var stateEventId = new AttributeUseEventId(c.AttributeSetId, c.AttributeId, version); IAttributeUseStateRemoved e = NewAttributeUseStateRemoved(stateEventId); e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }// END Map(IRemove... ////////////////////////////
protected virtual IAttributeUseStateCreated MapCreate(ICreateAttributeUse c, IAttributeSetCommand outerCommand, long version, IAttributeSetState outerState) { c.RequesterId = outerCommand.RequesterId; var stateEventId = new AttributeUseEventId(c.AttributeSetId, c.AttributeId, version); IAttributeUseStateCreated e = NewAttributeUseStateCreated(stateEventId); var s = outerState.AttributeUses.Get(c.AttributeId, true); e.SequenceNumber = c.SequenceNumber; e.Active = c.Active; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }// END Map(ICreate... ////////////////////////////
public override bool Equals(object obj) { if (Object.ReferenceEquals(this, obj)) { return(true); } AttributeUseEventId other = obj as AttributeUseEventId; if (other == null) { return(false); } return(true && Object.Equals(this.AttributeSetId, other.AttributeSetId) && Object.Equals(this.AttributeId, other.AttributeId) && Object.Equals(this.AttributeSetVersion, other.AttributeSetVersion) ); }
protected AttributeUseStateEventDtoBase(AttributeUseEventId stateEventId) { this.AttributeUseEventId = stateEventId; }
protected AttributeUseEventId NewAttributeUseEventId(string attributeId) { var stateEventId = new AttributeUseEventId(this.AttributeSetEventId.AttributeSetId, attributeId, this.AttributeSetEventId.Version); return(stateEventId); }
private AttributeUseStateRemoved NewAttributeUseStateRemoved(AttributeUseEventId stateEventId) { return(new AttributeUseStateRemoved(stateEventId)); }
private AttributeUseStateMergePatched NewAttributeUseStateMergePatched(AttributeUseEventId stateEventId) { return(new AttributeUseStateMergePatched(stateEventId)); }
public AttributeUseStateRemoved(AttributeUseEventId stateEventId) : base(stateEventId) { }
public AttributeUseStateMergePatched(AttributeUseEventId stateEventId) : base(stateEventId) { }
public AttributeUseStateCreated(AttributeUseEventId stateEventId) : base(stateEventId) { }
protected AttributeUseStateEventBase(AttributeUseEventId stateEventId) : base(stateEventId) { }