Exemplo n.º 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);
        }
Exemplo n.º 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;
 }
Exemplo n.º 4
0
 public AttributeSetAttributeUseIdFlattenedDto(AttributeSetAttributeUseId val)
 {
     this._value = val;
 }