예제 #1
0
        public virtual IAttributeUseState Get(string attributeId)
        {
            AttributeSetAttributeUseId globalId = new AttributeSetAttributeUseId(_attributeSetState.AttributeSetId, attributeId);

            if (_loadedAttributeUseStates.ContainsKey(globalId))
            {
                return(_loadedAttributeUseStates[globalId]);
            }
            var state = AttributeUseStateDao.Get(globalId);

            _loadedAttributeUseStates.Add(globalId, state);
            return(state);
        }
예제 #2
0
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            AttributeSetAttributeUseId other = obj as AttributeSetAttributeUseId;

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

            return(true &&
                   Object.Equals(this.AttributeSetId, other.AttributeSetId) &&
                   Object.Equals(this.AttributeId, other.AttributeId)
                   );
        }
 public AttributeUseMvoStateEventId(AttributeSetAttributeUseId attributeSetAttributeUseId, long attributeSetVersion)
 {
     this._attributeSetAttributeUseId = attributeSetAttributeUseId;
     this._attributeSetVersion        = attributeSetVersion;
 }
예제 #4
0
 public AttributeSetAttributeUseIdFlattenedDto(AttributeSetAttributeUseId val)
 {
     this._value = val;
 }