public AttributeUseStateEventIdDtoWrapper(AttributeUseStateEventId val) { if (val == null) { throw new ArgumentNullException("val"); } this._value = val; }
public virtual AttributeUseStateEventId ToAttributeUseStateEventId() { AttributeUseStateEventId v = new AttributeUseStateEventId(); v.AttributeSetId = this.AttributeSetId; v.AttributeId = this.AttributeId; v.AttributeSetVersion = this.AttributeSetVersion; return(v); }
}// END Map(IMergePatch... //////////////////////////// protected virtual IAttributeUseStateRemoved MapRemove(IRemoveAttributeUse c, IAttributeSetCommand outerCommand, long version) { c.RequesterId = outerCommand.RequesterId; var stateEventId = new AttributeUseStateEventId(c.AttributeSetId, c.AttributeId, version); IAttributeUseStateRemoved e = NewAttributeUseStateRemoved(stateEventId); e.CreatedBy = (string)c.RequesterId; e.CreatedAt = DateTime.Now; return(e); }// END Map(IRemove... ////////////////////////////
protected virtual IAttributeUseStateCreated MapCreate(ICreateAttributeUse c, IAttributeSetCommand outerCommand, long version, IAttributeSetState outerState) { c.RequesterId = outerCommand.RequesterId; var stateEventId = new AttributeUseStateEventId(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 = DateTime.Now; return(e); }// END Map(ICreate... ////////////////////////////
}// END Map(ICreate... //////////////////////////// protected virtual IAttributeUseStateMergePatched MapMergePatch(IMergePatchAttributeUse c, IAttributeSetCommand outerCommand, long version, IAttributeSetState outerState) { c.RequesterId = outerCommand.RequesterId; var stateEventId = new AttributeUseStateEventId(c.AttributeSetId, c.AttributeId, version); IAttributeUseStateMergePatched e = NewAttributeUseStateMergePatched(stateEventId); var s = outerState.AttributeUses.Get(c.AttributeId); e.SequenceNumber = c.SequenceNumber; e.Active = c.Active; e.IsPropertySequenceNumberRemoved = c.IsPropertySequenceNumberRemoved; e.IsPropertyActiveRemoved = c.IsPropertyActiveRemoved; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = DateTime.Now; return(e); }// END Map(IMergePatch... ////////////////////////////
public override bool Equals(object obj) { if (Object.ReferenceEquals(this, obj)) { return(true); } AttributeUseStateEventId other = obj as AttributeUseStateEventId; 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) ); }
private AttributeUseStateRemoved NewAttributeUseStateRemoved(AttributeUseStateEventId stateEventId) { return(new AttributeUseStateRemoved(stateEventId)); }
private AttributeUseStateMergePatched NewAttributeUseStateMergePatched(AttributeUseStateEventId stateEventId) { return(new AttributeUseStateMergePatched(stateEventId)); }
public AttributeUseStateEventIdFlattenedDto(AttributeUseStateEventId val) { this._value = new AttributeUseStateEventIdDtoWrapper(val); }
protected AttributeUseStateEventBase(AttributeUseStateEventId stateEventId) { this.StateEventId = stateEventId; }
public AttributeUseStateRemoved(AttributeUseStateEventId stateEventId) : base(stateEventId) { }
public AttributeUseStateMergePatched(AttributeUseStateEventId stateEventId) : base(stateEventId) { }
public AttributeUseStateCreated(AttributeUseStateEventId stateEventId) : base(stateEventId) { }
protected AttributeUseStateEventId NewAttributeUseStateEventId(string attributeId) { var stateEventId = new AttributeUseStateEventId(this.StateEventId.AttributeSetId, attributeId, this.StateEventId.Version); return(stateEventId); }