示例#1
0
 public OrganizationStructureIdDtoWrapper(OrganizationStructureId val)
 {
     if (val == null)
     {
         throw new ArgumentNullException("val");
     }
     this._value = val;
 }
示例#2
0
        public virtual OrganizationStructureId ToOrganizationStructureId()
        {
            OrganizationStructureId v = new OrganizationStructureId();

            v.OrganizationStructureTypeId = this.OrganizationStructureTypeId;
            v.ParentId     = this.ParentId;
            v.SubsidiaryId = this.SubsidiaryId;
            return(v);
        }
        public virtual IOrganizationStructureStateEvent GetStateEvent(OrganizationStructureId id, long version)
        {
            var e = (IOrganizationStructureStateEvent)EventStore.GetStateEvent(ToEventStoreAggregateId(id), version);

            if (e != null)
            {
                e.ReadOnly = true;
            }
            return(e);
        }
        public virtual IOrganizationStructureState Get(OrganizationStructureId id)
        {
            var state = StateRepository.Get(id);

            if (state != null && state.IsUnsaved)
            {
                state = null;
            }

            return(state);
        }
示例#5
0
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            OrganizationStructureId other = obj as OrganizationStructureId;

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

            return(true &&
                   Object.Equals(this.OrganizationStructureTypeId, other.OrganizationStructureTypeId) &&
                   Object.Equals(this.ParentId, other.ParentId) &&
                   Object.Equals(this.SubsidiaryId, other.SubsidiaryId)
                   );
        }
 public OrganizationStructureIdFlattenedDto(OrganizationStructureId val)
 {
     this._value = val;
 }
示例#7
0
 public OrganizationStructureStateEventId(OrganizationStructureId id, long version)
 {
     this._id      = id;
     this._version = version;
 }
 public OrganizationStructureIdFlattenedDto(OrganizationStructureId val)
 {
     this._value = new OrganizationStructureIdDtoWrapper(val);
 }
 public abstract IEventStoreAggregateId ToEventStoreAggregateId(OrganizationStructureId aggregateId);