예제 #1
0
 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;
 }
예제 #2
0
        public override string Format(object input)
        {
            var attrID = new AttributeID(input.ToInt());

            return(CommonQueries.GetAttributeName(attrID));
        }
예제 #3
0
        public static string GetAttributeName(AttributeID attrID)
        {
            var query = @"select displayName from dgmAttributeTypes where attributeID = " + attrID + ";";

            return(DefaultDatabase.RunSQLStringQuery(query));
        }