c# - XML serializer returns null on object deserialization -
i have stored procedure in database returns xml stream, , application deserializes stream corresponding object. stored procedure defined (i simplified make more readable): select usrs.firstname 'firstname', usrs.lastname 'lastname', usrs.username 'username', usrs.datejoined 'datejoined' users usrs usrs.username = @username xml path('userprofile') notice username primary key, stored procedure return 1 result. sample query result this: <userprofile> <firstname>chuck</firstname> <lastname>norris</lastname> <username>chuck.awesome</username> <datejoined>2013-07-22t06:58:00</datejoined> </userprofile> now in application, how , deserialize data: internal static t getdata<t>(storedprocedures storedprocedure, parameterlist parameters) { using (var connection = getsqlconnection()) { using (var command = new sqlcommand(s...