protected virtual IAttributeSetInstanceExtensionFieldGroupStateMergePatched Map(IMergePatchAttributeSetInstanceExtensionFieldGroup c) { var stateEventId = new AttributeSetInstanceExtensionFieldGroupEventId(c.Id, c.Version); IAttributeSetInstanceExtensionFieldGroupStateMergePatched e = NewAttributeSetInstanceExtensionFieldGroupStateMergePatched(stateEventId); e.FieldType = c.FieldType; e.FieldLength = c.FieldLength; e.FieldCount = c.FieldCount; e.NameFormat = c.NameFormat; e.Description = c.Description; e.Active = c.Active; e.IsPropertyFieldTypeRemoved = c.IsPropertyFieldTypeRemoved; e.IsPropertyFieldLengthRemoved = c.IsPropertyFieldLengthRemoved; e.IsPropertyFieldCountRemoved = c.IsPropertyFieldCountRemoved; e.IsPropertyNameFormatRemoved = c.IsPropertyNameFormatRemoved; e.IsPropertyDescriptionRemoved = c.IsPropertyDescriptionRemoved; e.IsPropertyActiveRemoved = c.IsPropertyActiveRemoved; e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); var version = c.Version; return(e); }
protected AttributeSetInstanceExtensionFieldGroupStateDeleted NewAttributeSetInstanceExtensionFieldGroupStateDeleted(long version, string commandId, string requesterId) { var stateEventId = new AttributeSetInstanceExtensionFieldGroupEventId(_state.Id, version); var e = NewAttributeSetInstanceExtensionFieldGroupStateDeleted(stateEventId); e.CommandId = commandId; e.CreatedBy = (string)requesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
protected virtual IAttributeSetInstanceExtensionFieldGroupStateDeleted Map(IDeleteAttributeSetInstanceExtensionFieldGroup c) { var stateEventId = new AttributeSetInstanceExtensionFieldGroupEventId(c.Id, c.Version); IAttributeSetInstanceExtensionFieldGroupStateDeleted e = NewAttributeSetInstanceExtensionFieldGroupStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
public override bool Equals(object obj) { if (Object.ReferenceEquals(this, obj)) { return(true); } AttributeSetInstanceExtensionFieldGroupEventId other = obj as AttributeSetInstanceExtensionFieldGroupEventId; if (other == null) { return(false); } return(true && Object.Equals(this.Id, other.Id) && Object.Equals(this.Version, other.Version) ); }
protected AttributeSetInstanceExtensionFieldGroupStateEventDtoBase(AttributeSetInstanceExtensionFieldGroupEventId stateEventId) { this.AttributeSetInstanceExtensionFieldGroupEventId = stateEventId; }
private AttributeSetInstanceExtensionFieldGroupStateDeleted NewAttributeSetInstanceExtensionFieldGroupStateDeleted(AttributeSetInstanceExtensionFieldGroupEventId stateEventId) { return(new AttributeSetInstanceExtensionFieldGroupStateDeleted(stateEventId)); }
public AttributeSetInstanceExtensionFieldGroupStateDeleted(AttributeSetInstanceExtensionFieldGroupEventId stateEventId) : base(stateEventId) { }
public AttributeSetInstanceExtensionFieldGroupStateMergePatched(AttributeSetInstanceExtensionFieldGroupEventId stateEventId) : base(stateEventId) { }
protected AttributeSetInstanceExtensionFieldGroupStateEventBase(AttributeSetInstanceExtensionFieldGroupEventId stateEventId) : base(stateEventId) { }