예제 #1
0
        public static string GetGroupName(GroupID groupId)
        {
            var query = @"select groupName from invGroups where groupID = " + groupId + ";";

            return(DefaultDatabase.RunSQLStringQuery(query));
        }
예제 #2
0
        public override string Format(object input)
        {
            var groupId = new GroupID(input.ToInt());

            return(CommonQueries.GetGroupName(groupId));
        }
예제 #3
0
        public static CategoryID GetCategoryID(this GroupID groupId)
        {
            var query = @"select categoryID from invTypes where groupID = " + groupId + ";";

            return(new CategoryID(DefaultDatabase.RunSQLStringQuery(query).ToInt()));
        }