public AttributeSetInstanceExtensionFieldStateEventIdDtoWrapper(AttributeSetInstanceExtensionFieldStateEventId val) { if (val == null) { throw new ArgumentNullException("val"); } this._value = val; }
public virtual AttributeSetInstanceExtensionFieldStateEventId ToAttributeSetInstanceExtensionFieldStateEventId() { AttributeSetInstanceExtensionFieldStateEventId v = new AttributeSetInstanceExtensionFieldStateEventId(); v.GroupId = this.GroupId; v.Index = this.Index; v.AttributeSetInstanceExtensionFieldGroupVersion = this.AttributeSetInstanceExtensionFieldGroupVersion; return(v); }
}// 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, true); 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) ); }
}// END Map(ICreate... //////////////////////////// protected virtual IAttributeSetInstanceExtensionFieldStateMergePatched MapMergePatch(IMergePatchAttributeSetInstanceExtensionField c, IAttributeSetInstanceExtensionFieldGroupCommand outerCommand, long version, IAttributeSetInstanceExtensionFieldGroupState outerState) { c.RequesterId = outerCommand.RequesterId; var stateEventId = new AttributeSetInstanceExtensionFieldStateEventId(c.GroupId, c.Index, version); IAttributeSetInstanceExtensionFieldStateMergePatched e = NewAttributeSetInstanceExtensionFieldStateMergePatched(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.IsPropertyNameRemoved = c.IsPropertyNameRemoved; e.IsPropertyTypeRemoved = c.IsPropertyTypeRemoved; e.IsPropertyLengthRemoved = c.IsPropertyLengthRemoved; e.IsPropertyAliasRemoved = c.IsPropertyAliasRemoved; e.IsPropertyDescriptionRemoved = c.IsPropertyDescriptionRemoved; e.IsPropertyActiveRemoved = c.IsPropertyActiveRemoved; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = DateTime.Now; return(e); }// END Map(IMergePatch... ////////////////////////////
public AttributeSetInstanceExtensionFieldStateRemoved(AttributeSetInstanceExtensionFieldStateEventId stateEventId) : base(stateEventId) { }
public AttributeSetInstanceExtensionFieldStateMergePatched(AttributeSetInstanceExtensionFieldStateEventId stateEventId) : base(stateEventId) { }
protected AttributeSetInstanceExtensionFieldStateEventBase(AttributeSetInstanceExtensionFieldStateEventId stateEventId) { this.StateEventId = stateEventId; }
protected AttributeSetInstanceExtensionFieldStateEventId NewAttributeSetInstanceExtensionFieldStateEventId(string index) { var stateEventId = new AttributeSetInstanceExtensionFieldStateEventId(this.StateEventId.Id, index, this.StateEventId.Version); return(stateEventId); }
public AttributeSetInstanceExtensionFieldStateEventIdFlattenedDto(AttributeSetInstanceExtensionFieldStateEventId val) { this._value = new AttributeSetInstanceExtensionFieldStateEventIdDtoWrapper(val); }
private AttributeSetInstanceExtensionFieldStateRemoved NewAttributeSetInstanceExtensionFieldStateRemoved(AttributeSetInstanceExtensionFieldStateEventId stateEventId) { return(new AttributeSetInstanceExtensionFieldStateRemoved(stateEventId)); }