public static string GetGroupName(GroupID groupId) { var query = @"select groupName from invGroups where groupID = " + groupId + ";"; return(DefaultDatabase.RunSQLStringQuery(query)); }
public override string Format(object input) { var groupId = new GroupID(input.ToInt()); return(CommonQueries.GetGroupName(groupId)); }
public static CategoryID GetCategoryID(this GroupID groupId) { var query = @"select categoryID from invTypes where groupID = " + groupId + ";"; return(new CategoryID(DefaultDatabase.RunSQLStringQuery(query).ToInt())); }