protected virtual IAttributeSetInstanceExtensionFieldMvoStateCreated Map(ICreateAttributeSetInstanceExtensionFieldMvo c)
        {
            var stateEventId = new AttributeSetInstanceExtensionFieldMvoStateEventId(c.AttributeSetInstanceExtensionFieldId, c.AttrSetInstEFGroupVersion);
            IAttributeSetInstanceExtensionFieldMvoStateCreated e = NewAttributeSetInstanceExtensionFieldMvoStateCreated(stateEventId);

            e.Name        = c.Name;
            e.Type        = c.Type;
            e.Length      = c.Length;
            e.Alias       = c.Alias;
            e.Description = c.Description;
            e.Version     = c.Version;
            e.Active      = c.Active;
            e.AttrSetInstEFGroupFieldType   = c.AttrSetInstEFGroupFieldType;
            e.AttrSetInstEFGroupFieldLength = c.AttrSetInstEFGroupFieldLength;
            e.AttrSetInstEFGroupFieldCount  = c.AttrSetInstEFGroupFieldCount;
            e.AttrSetInstEFGroupNameFormat  = c.AttrSetInstEFGroupNameFormat;
            e.AttrSetInstEFGroupDescription = c.AttrSetInstEFGroupDescription;
            e.AttrSetInstEFGroupCreatedBy   = c.AttrSetInstEFGroupCreatedBy;
            e.AttrSetInstEFGroupCreatedAt   = c.AttrSetInstEFGroupCreatedAt;
            e.AttrSetInstEFGroupUpdatedBy   = c.AttrSetInstEFGroupUpdatedBy;
            e.AttrSetInstEFGroupUpdatedAt   = c.AttrSetInstEFGroupUpdatedAt;
            e.AttrSetInstEFGroupActive      = c.AttrSetInstEFGroupActive;
            e.AttrSetInstEFGroupDeleted     = c.AttrSetInstEFGroupDeleted;
            e.CommandId = c.CommandId;


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = DateTime.Now;
            var attrSetInstEFGroupVersion = c.AttrSetInstEFGroupVersion;


            return(e);
        }
コード例 #2
0
 public AttributeSetInstanceExtensionFieldMvoStateEventIdDtoWrapper(AttributeSetInstanceExtensionFieldMvoStateEventId val)
 {
     if (val == null)
     {
         throw new ArgumentNullException("val");
     }
     this._value = val;
 }
        public virtual AttributeSetInstanceExtensionFieldMvoStateEventId ToAttributeSetInstanceExtensionFieldMvoStateEventId()
        {
            AttributeSetInstanceExtensionFieldMvoStateEventId v = new AttributeSetInstanceExtensionFieldMvoStateEventId();

            v.AttributeSetInstanceExtensionFieldId = this.AttributeSetInstanceExtensionFieldId.ToAttributeSetInstanceExtensionFieldId();
            v.AttrSetInstEFGroupVersion            = this.AttrSetInstEFGroupVersion;
            return(v);
        }
        protected AttributeSetInstanceExtensionFieldMvoStateDeleted NewAttributeSetInstanceExtensionFieldMvoStateDeleted(string commandId, string requesterId)
        {
            var stateEventId = new AttributeSetInstanceExtensionFieldMvoStateEventId(_state.AttributeSetInstanceExtensionFieldId, ((IAttributeSetInstanceExtensionFieldMvoStateProperties)_state).AttrSetInstEFGroupVersion);
            var e            = NewAttributeSetInstanceExtensionFieldMvoStateDeleted(stateEventId);

            e.CommandId = commandId;

            e.CreatedBy = (string)requesterId;
            e.CreatedAt = DateTime.Now;

            return(e);
        }
        protected virtual IAttributeSetInstanceExtensionFieldMvoStateDeleted Map(IDeleteAttributeSetInstanceExtensionFieldMvo c)
        {
            var stateEventId = new AttributeSetInstanceExtensionFieldMvoStateEventId(c.AttributeSetInstanceExtensionFieldId, c.AttrSetInstEFGroupVersion);
            IAttributeSetInstanceExtensionFieldMvoStateDeleted e = NewAttributeSetInstanceExtensionFieldMvoStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = DateTime.Now;


            return(e);
        }
コード例 #6
0
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            AttributeSetInstanceExtensionFieldMvoStateEventId other = obj as AttributeSetInstanceExtensionFieldMvoStateEventId;

            if (other == null)
            {
                return(false);
            }

            return(true &&
                   Object.Equals(this.AttributeSetInstanceExtensionFieldId, other.AttributeSetInstanceExtensionFieldId) &&
                   Object.Equals(this.AttrSetInstEFGroupVersion, other.AttrSetInstEFGroupVersion)
                   );
        }
 private AttributeSetInstanceExtensionFieldMvoStateDeleted NewAttributeSetInstanceExtensionFieldMvoStateDeleted(AttributeSetInstanceExtensionFieldMvoStateEventId stateEventId)
 {
     return(new AttributeSetInstanceExtensionFieldMvoStateDeleted(stateEventId));
 }
コード例 #8
0
 public AttributeSetInstanceExtensionFieldMvoStateDeleted(AttributeSetInstanceExtensionFieldMvoStateEventId stateEventId) : base(stateEventId)
 {
 }
コード例 #9
0
 public AttributeSetInstanceExtensionFieldMvoStateMergePatched(AttributeSetInstanceExtensionFieldMvoStateEventId stateEventId) : base(stateEventId)
 {
 }
コード例 #10
0
 protected AttributeSetInstanceExtensionFieldMvoStateEventBase(AttributeSetInstanceExtensionFieldMvoStateEventId stateEventId)
 {
     this.StateEventId = stateEventId;
 }
コード例 #11
0
 public AttributeSetInstanceExtensionFieldMvoStateEventIdFlattenedDto(AttributeSetInstanceExtensionFieldMvoStateEventId val)
 {
     this._value = new AttributeSetInstanceExtensionFieldMvoStateEventIdDtoWrapper(val);
 }