public virtual IAttributeSetInstanceExtensionFieldState Get(string index, bool forCreation, bool nullAllowed) { AttributeSetInstanceExtensionFieldId globalId = new AttributeSetInstanceExtensionFieldId(_attributeSetInstanceExtensionFieldGroupState.Id, index); if (_loadedAttributeSetInstanceExtensionFieldStates.ContainsKey(globalId)) { return(_loadedAttributeSetInstanceExtensionFieldStates[globalId]); } if (forCreation || ForReapplying) { var state = new AttributeSetInstanceExtensionFieldState(ForReapplying); state.AttributeSetInstanceExtensionFieldId = globalId; _loadedAttributeSetInstanceExtensionFieldStates.Add(globalId, state); return(state); } else { var state = AttributeSetInstanceExtensionFieldStateDao.Get(globalId, nullAllowed); if (state != null) { _loadedAttributeSetInstanceExtensionFieldStates.Add(globalId, state); } return(state); } }
public AttributeSetInstanceExtensionFieldIdDtoWrapper(AttributeSetInstanceExtensionFieldId val) { if (val == null) { throw new ArgumentNullException("val"); } this._value = val; }
public virtual AttributeSetInstanceExtensionFieldId ToAttributeSetInstanceExtensionFieldId() { AttributeSetInstanceExtensionFieldId v = new AttributeSetInstanceExtensionFieldId(); v.GroupId = this.GroupId; v.Index = this.Index; return(v); }
public override bool Equals(object obj) { if (Object.ReferenceEquals(this, obj)) { return(true); } AttributeSetInstanceExtensionFieldId other = obj as AttributeSetInstanceExtensionFieldId; if (other == null) { return(false); } return(true && Object.Equals(this.GroupId, other.GroupId) && Object.Equals(this.Index, other.Index) ); }
public AttributeSetInstanceExtensionFieldIdFlattenedDto(AttributeSetInstanceExtensionFieldId val) { this._value = new AttributeSetInstanceExtensionFieldIdDtoWrapper(val); }