public virtual IAttributeUseState Get(string attributeId, bool forCreation, bool nullAllowed) { AttributeSetAttributeUseId globalId = new AttributeSetAttributeUseId(_attributeSetState.AttributeSetId, attributeId); if (_loadedAttributeUseStates.ContainsKey(globalId)) { return(_loadedAttributeUseStates[globalId]); } if (forCreation || ForReapplying) { var state = new AttributeUseState(ForReapplying); state.AttributeSetAttributeUseId = globalId; _loadedAttributeUseStates.Add(globalId, state); return(state); } else { var state = AttributeUseStateDao.Get(globalId, nullAllowed); if (state != null) { _loadedAttributeUseStates.Add(globalId, state); } return(state); } }
public AttributeSetAttributeUseIdDtoWrapper(AttributeSetAttributeUseId val) { if (val == null) { throw new ArgumentNullException("val"); } this._value = val; }
public virtual AttributeSetAttributeUseId ToAttributeSetAttributeUseId() { AttributeSetAttributeUseId v = new AttributeSetAttributeUseId(); v.AttributeSetId = this.AttributeSetId; v.AttributeId = this.AttributeId; return(v); }
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 AttributeSetAttributeUseIdFlattenedDto(AttributeSetAttributeUseId val) { this._value = new AttributeSetAttributeUseIdDtoWrapper(val); }