Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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)
                   );
        }
Beispiel #5
0
 protected AttributeSetInstanceExtensionFieldGroupStateEventDtoBase(AttributeSetInstanceExtensionFieldGroupEventId stateEventId)
 {
     this.AttributeSetInstanceExtensionFieldGroupEventId = stateEventId;
 }
Beispiel #6
0
 private AttributeSetInstanceExtensionFieldGroupStateDeleted NewAttributeSetInstanceExtensionFieldGroupStateDeleted(AttributeSetInstanceExtensionFieldGroupEventId stateEventId)
 {
     return(new AttributeSetInstanceExtensionFieldGroupStateDeleted(stateEventId));
 }
Beispiel #7
0
 public AttributeSetInstanceExtensionFieldGroupStateDeleted(AttributeSetInstanceExtensionFieldGroupEventId stateEventId) : base(stateEventId)
 {
 }
Beispiel #8
0
 public AttributeSetInstanceExtensionFieldGroupStateMergePatched(AttributeSetInstanceExtensionFieldGroupEventId stateEventId) : base(stateEventId)
 {
 }
Beispiel #9
0
 protected AttributeSetInstanceExtensionFieldGroupStateEventBase(AttributeSetInstanceExtensionFieldGroupEventId stateEventId) : base(stateEventId)
 {
 }