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