}// END Map(IMergePatch... //////////////////////////// protected virtual IAttributeSetInstanceExtensionFieldStateRemoved MapRemove(IRemoveAttributeSetInstanceExtensionField c, IAttributeSetInstanceExtensionFieldGroupCommand outerCommand, long version) { c.RequesterId = outerCommand.RequesterId; var stateEventId = new AttributeSetInstanceExtensionFieldStateEventId(c.GroupId, c.Index, version); IAttributeSetInstanceExtensionFieldStateRemoved e = NewAttributeSetInstanceExtensionFieldStateRemoved(stateEventId); e.CreatedBy = (string)c.RequesterId; e.CreatedAt = DateTime.Now; return(e); }// END Map(IRemove... ////////////////////////////
protected virtual IAttributeSetInstanceExtensionFieldStateCreated MapCreate(ICreateAttributeSetInstanceExtensionField c, IAttributeSetInstanceExtensionFieldGroupCommand outerCommand, long version, IAttributeSetInstanceExtensionFieldGroupState outerState) { c.RequesterId = outerCommand.RequesterId; var stateEventId = new AttributeSetInstanceExtensionFieldStateEventId(c.GroupId, c.Index, version); IAttributeSetInstanceExtensionFieldStateCreated e = NewAttributeSetInstanceExtensionFieldStateCreated(stateEventId); var s = outerState.Fields.Get(c.Index); e.Name = c.Name; e.Type = c.Type; e.Length = c.Length; e.Alias = c.Alias; e.Description = c.Description; 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); } AttributeSetInstanceExtensionFieldStateEventId other = obj as AttributeSetInstanceExtensionFieldStateEventId; if (other == null) { return(false); } return(true && Object.Equals(this.GroupId, other.GroupId) && Object.Equals(this.Index, other.Index) && Object.Equals(this.AttributeSetInstanceExtensionFieldGroupVersion, other.AttributeSetInstanceExtensionFieldGroupVersion) ); }
protected AttributeSetInstanceExtensionFieldStateEventId NewAttributeSetInstanceExtensionFieldStateEventId(string index) { var stateEventId = new AttributeSetInstanceExtensionFieldStateEventId(this.StateEventId.Id, index, this.StateEventId.Version); return(stateEventId); }
public AttributeSetInstanceExtensionFieldStateRemoved(AttributeSetInstanceExtensionFieldStateEventId stateEventId) : base(stateEventId) { }
public AttributeSetInstanceExtensionFieldStateMergePatched(AttributeSetInstanceExtensionFieldStateEventId stateEventId) : base(stateEventId) { }
protected AttributeSetInstanceExtensionFieldStateEventBase(AttributeSetInstanceExtensionFieldStateEventId stateEventId) { this.StateEventId = stateEventId; }
private AttributeSetInstanceExtensionFieldStateRemoved NewAttributeSetInstanceExtensionFieldStateRemoved(AttributeSetInstanceExtensionFieldStateEventId stateEventId) { return(new AttributeSetInstanceExtensionFieldStateRemoved(stateEventId)); }
public AttributeSetInstanceExtensionFieldStateEventIdDto(AttributeSetInstanceExtensionFieldStateEventId val) { this._value = val; }