public AttributeValueStateEventIdDtoWrapper(AttributeValueStateEventId val) { if (val == null) { throw new ArgumentNullException("val"); } this._value = val; }
public virtual AttributeValueStateEventId ToAttributeValueStateEventId() { AttributeValueStateEventId v = new AttributeValueStateEventId(); v.AttributeId = this.AttributeId; v.Value = this.Value; v.AttributeVersion = this.AttributeVersion; return(v); }
}// END Map(IMergePatch... //////////////////////////// protected virtual IAttributeValueStateRemoved MapRemove(IRemoveAttributeValue c, IAttributeCommand outerCommand, long version) { c.RequesterId = outerCommand.RequesterId; var stateEventId = new AttributeValueStateEventId(c.AttributeId, c.Value, version); IAttributeValueStateRemoved e = NewAttributeValueStateRemoved(stateEventId); e.CreatedBy = (string)c.RequesterId; e.CreatedAt = DateTime.Now; return(e); }// END Map(IRemove... ////////////////////////////
protected virtual IAttributeValueStateCreated MapCreate(ICreateAttributeValue c, IAttributeCommand outerCommand, long version, IAttributeState outerState) { c.RequesterId = outerCommand.RequesterId; var stateEventId = new AttributeValueStateEventId(c.AttributeId, c.Value, version); IAttributeValueStateCreated e = NewAttributeValueStateCreated(stateEventId); var s = outerState.AttributeValues.Get(c.Value, true); e.Name = c.Name; e.Description = c.Description; e.ReferenceId = c.ReferenceId; e.Active = c.Active; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = DateTime.Now; return(e); }// END Map(ICreate... ////////////////////////////
public override bool Equals(object obj) { if (Object.ReferenceEquals(this, obj)) { return(true); } AttributeValueStateEventId other = obj as AttributeValueStateEventId; if (other == null) { return(false); } return(true && Object.Equals(this.AttributeId, other.AttributeId) && Object.Equals(this.Value, other.Value) && Object.Equals(this.AttributeVersion, other.AttributeVersion) ); }
}// END Map(ICreate... //////////////////////////// protected virtual IAttributeValueStateMergePatched MapMergePatch(IMergePatchAttributeValue c, IAttributeCommand outerCommand, long version, IAttributeState outerState) { c.RequesterId = outerCommand.RequesterId; var stateEventId = new AttributeValueStateEventId(c.AttributeId, c.Value, version); IAttributeValueStateMergePatched e = NewAttributeValueStateMergePatched(stateEventId); var s = outerState.AttributeValues.Get(c.Value); e.Name = c.Name; e.Description = c.Description; e.ReferenceId = c.ReferenceId; e.Active = c.Active; e.IsPropertyNameRemoved = c.IsPropertyNameRemoved; e.IsPropertyDescriptionRemoved = c.IsPropertyDescriptionRemoved; e.IsPropertyReferenceIdRemoved = c.IsPropertyReferenceIdRemoved; e.IsPropertyActiveRemoved = c.IsPropertyActiveRemoved; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = DateTime.Now; return(e); }// END Map(IMergePatch... ////////////////////////////
protected AttributeValueStateEventId NewAttributeValueStateEventId(string value) { var stateEventId = new AttributeValueStateEventId(this.StateEventId.AttributeId, value, this.StateEventId.Version); return(stateEventId); }
private AttributeValueStateRemoved NewAttributeValueStateRemoved(AttributeValueStateEventId stateEventId) { return(new AttributeValueStateRemoved(stateEventId)); }
private AttributeValueStateMergePatched NewAttributeValueStateMergePatched(AttributeValueStateEventId stateEventId) { return(new AttributeValueStateMergePatched(stateEventId)); }
public AttributeValueStateEventIdFlattenedDto(AttributeValueStateEventId val) { this._value = new AttributeValueStateEventIdDtoWrapper(val); }
public AttributeValueStateRemoved(AttributeValueStateEventId stateEventId) : base(stateEventId) { }
public AttributeValueStateMergePatched(AttributeValueStateEventId stateEventId) : base(stateEventId) { }
public AttributeValueStateCreated(AttributeValueStateEventId stateEventId) : base(stateEventId) { }
protected AttributeValueStateEventBase(AttributeValueStateEventId stateEventId) { this.StateEventId = stateEventId; }