public OrganizationStructureIdDtoWrapper(OrganizationStructureId val) { if (val == null) { throw new ArgumentNullException("val"); } this._value = val; }
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); }
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; }
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);