/// <summary> /// Initializes a new instance of the <see cref="MetaDictionaryItem"/> class. /// </summary> /// <param name="Id">The id.</param> /// <param name="MetaFieldId">The meta field id.</param> /// <param name="DefaultValue">The default value.</param> /// <param name="Value">The value.</param> internal MetaDictionaryItem(int id, int metaFieldId, string defaultValue, string value) { _state = MetaDictionaryItemState.Attached; _id = id; _metaFieldId = metaFieldId; _defaultValue = defaultValue; _value = value; }
/// <summary> /// Initializes a new instance of the <see cref="MetaDictionaryItem"/> class. /// </summary> /// <param name="Id">The id.</param> /// <param name="MetaFieldId">The meta field id.</param> /// <param name="DefaultValue">The default value.</param> /// <param name="Value">The value.</param> internal MetaDictionaryItem(int id, int metaFieldId, string defaultValue, string value) { _state = MetaDictionaryItemState.Attached; _id = id; _metaFieldId = metaFieldId; _defaultValue = defaultValue; _value = value; }
/// <summary> /// Initializes a new instance of the <see cref="MetaDictionaryItem"/> class. /// </summary> /// <param name="reader">The reader.</param> internal MetaDictionaryItem(SqlDataReader reader) { _state = MetaDictionaryItemState.Attached; _id = (int)reader["MetaDictionaryId"]; _metaFieldId = (int)reader["MetaFieldId"]; //_defaultValue = (string)reader["DefaultValue"]; _value = (string)SqlHelper.DBNull2Null(reader["Value"], string.Empty); //_defaultTag = SqlHelper.DBNull2Null(reader["DefaultTag"]); _tag = SqlHelper.DBNull2Null(reader["Tag"]); _index = (int)reader["Index"]; }
/// <summary> /// Initializes a new instance of the <see cref="MetaDictionaryItem"/> class. /// </summary> /// <param name="reader">The reader.</param> internal MetaDictionaryItem(SqlDataReader reader) { _state = MetaDictionaryItemState.Attached; _id = (int)reader["MetaDictionaryId"]; _metaFieldId = (int)reader["MetaFieldId"]; //_defaultValue = (string)reader["DefaultValue"]; _value = (string)SqlHelper.DBNull2Null(reader["Value"], string.Empty); //_defaultTag = SqlHelper.DBNull2Null(reader["DefaultTag"]); _tag = SqlHelper.DBNull2Null(reader["Tag"]); _index = (int)reader["Index"]; }