private void AddFromRecordSet(SQLiteDataReader rs) { try { if (!rs.IsDBNull(0)) { _class_id = (ExtendedProperty_Type)rs.GetByte(0); } if (!rs.IsDBNull(1)) { _class_desc = rs.GetString(1); } if (!rs.IsDBNull(2)) { _major_id = rs.GetInt32(2); } if (!rs.IsDBNull(3)) { _minor_id = rs.GetInt32(3); } if (!rs.IsDBNull(4)) { _name = rs.GetString(4); } if (!rs.IsDBNull(5)) { _value = rs.GetValue(5); } } catch (Exception) { throw; } }
public ExtendedProperty GetExtendedProperty(ExtendedProperty_Type class_id, int major_id, int minor_id, string name) { foreach (ExtendedProperty EP in _Items) { if (EP.class_id == class_id && EP.major_id == major_id && EP.minor_id == minor_id && EP.name == name) { return(EP); } } return(null); }
public ExtendedProperty[] GetExtendedProperties(ExtendedProperty_Type class_id, int major_id, int minor_id) { List <ExtendedProperty> newList = new List <ExtendedProperty>(); foreach (ExtendedProperty EP in _Items) { if (EP.class_id == class_id && EP.major_id == major_id && EP.minor_id == minor_id) { newList.Add(EP); } } return(newList.ToArray()); }
public ExtendedProperty GetExtendedProperty(ExtendedProperty_Type class_id, int major_id, int minor_id) { return(GetExtendedProperty(class_id, major_id, minor_id, "MS_Description")); }