public TagType GetTagType(string TagName) { //Length of inner array is 3, 1 = ID, 2 = Name, 3 = TagType List <string[]> results = Query(SqlStatements.GetTagTypeFromTag(TagName)); return(TagObject.ConvertToTagType(results[0][2][0])); //takes the first char }
public TagObject GetTag(string TagName) { List <string[]> results = Query(SqlStatements.GetTagTypeFromTag(TagName)); string Name = results[0][1]; TagType Type = TagObject.ConvertToTagType(results[0][2][0]); //takes the first char TagObject tag = new TagObject(Name, Type); return(tag); }
public int GetTagID(string TagName) { List <string[]> results = Query(SqlStatements.GetTagTypeFromTag(TagName)); return(int.Parse(results[0][0])); }