예제 #1
0
        /// <summary>
        /// Executes the query for the specified character.
        /// </summary>
        /// <param name="characterName">The name of the character.</param>
        /// <returns>The <see cref="ICharacterTable"/> for the character with the name <paramref name="characterName"/>, or
        /// null if they do not exist.</returns>
        public ICharacterTable Execute(string characterName)
        {
            CharacterTable ret;

            using (var r = ExecuteReader(characterName))
            {
                if (!r.Read())
                {
                    return(null);
                }

                ret = new CharacterTable();
                ret.ReadValues(r);
            }

            return(ret);
        }