public Attribute(AttributeID id, string name, string dName, string desc, Unit unit, AttributeCategory cat) { ID = id; AttributeName = name; DisplayName = dName; Description = desc; Unit = unit; Category = cat; }
public override string Format(object input) { var attrID = new AttributeID(input.ToInt()); return(CommonQueries.GetAttributeName(attrID)); }
public static string GetAttributeName(AttributeID attrID) { var query = @"select displayName from dgmAttributeTypes where attributeID = " + attrID + ";"; return(DefaultDatabase.RunSQLStringQuery(query)); }