Click here to Skip to main content
15,889,403 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionProgramming keyboard and mouse actions Pin
wyjohnson8-Dec-13 8:39
wyjohnson8-Dec-13 8:39 
AnswerRe: Programming keyboard and mouse actions Pin
Pete O'Hanlon8-Dec-13 23:06
mvePete O'Hanlon8-Dec-13 23:06 
QuestionSigned/Unsigned Assembly Load Conflict Pin
Squiggs7-Dec-13 14:56
Squiggs7-Dec-13 14:56 
QuestionI wanna sell two my windows 8 metro applications Pin
comiscience5-Dec-13 23:08
comiscience5-Dec-13 23:08 
AnswerRe: I wanna sell two my windows 8 metro applications Pin
Richard MacCutchan6-Dec-13 0:06
mveRichard MacCutchan6-Dec-13 0:06 
GeneralRe: I wanna sell two my windows 8 metro applications Pin
comiscience6-Dec-13 0:20
comiscience6-Dec-13 0:20 
AnswerRe: I wanna sell two my windows 8 metro applications Pin
creampemutihwajah17-Dec-13 14:51
professionalcreampemutihwajah17-Dec-13 14:51 
QuestionHow to RESTful design or getting two tables in one JSON object Pin
mrhs5-Dec-13 17:06
mrhs5-Dec-13 17:06 
I'm developing a WCF RESTful web service with C# and .NET Framework 4.0. There is also a SQL Server database and I'm using Entity Framework Code First to access it.
And i use Android for get, post, ... in my service by json.

I have these two tables on SQL Server:

A user table for my application's user.

C#
User
{
   userId,
   name,
   country
}

And another table to store their thoughts about something.

C#
Thought
{
   thoughtId,
   userId,
   descrip
   date
}


Now, I want to show mething like this:

User.name
Thought.description
Thought.date

I follow http://forums.asp.net/t/1774830.aspx[^]
but i have a problem: the Json String is inValidate format and i Can't convert it in my android project.
How Can I return a JSON object this way?
Please help me.

AnswerRe: How to RESTful design or getting two tables in one JSON object Pin
jschell6-Dec-13 12:11
jschell6-Dec-13 12:11 
GeneralRe: How to RESTful design or getting two tables in one JSON object Pin
mrhs6-Dec-13 17:14
mrhs6-Dec-13 17:14 
GeneralRe: How to RESTful design or getting two tables in one JSON object Pin
jschell7-Dec-13 10:29
jschell7-Dec-13 10:29 
GeneralRe: How to RESTful design or getting two tables in one JSON object Pin
mrhs7-Dec-13 20:36
mrhs7-Dec-13 20:36 
GeneralRe: How to RESTful design or getting two tables in one JSON object Pin
jschell9-Dec-13 15:14
jschell9-Dec-13 15:14 
Questionlocate the FILESTREAM data Pin
Member 103249742-Dec-13 23:24
Member 103249742-Dec-13 23:24 
AnswerRe: locate the FILESTREAM data Pin
Richard MacCutchan3-Dec-13 2:31
mveRichard MacCutchan3-Dec-13 2:31 
GeneralRe: locate the FILESTREAM data Pin
Member 103249743-Dec-13 2:40
Member 103249743-Dec-13 2:40 
GeneralRe: locate the FILESTREAM data Pin
Pete O'Hanlon3-Dec-13 2:42
mvePete O'Hanlon3-Dec-13 2:42 
GeneralRe: locate the FILESTREAM data Pin
Member 103249743-Dec-13 2:49
Member 103249743-Dec-13 2:49 
GeneralRe: locate the FILESTREAM data Pin
Richard MacCutchan3-Dec-13 2:59
mveRichard MacCutchan3-Dec-13 2:59 
GeneralRe: locate the FILESTREAM data Pin
Member 103249743-Dec-13 3:09
Member 103249743-Dec-13 3:09 
GeneralRe: locate the FILESTREAM data Pin
Richard MacCutchan3-Dec-13 3:13
mveRichard MacCutchan3-Dec-13 3:13 
AnswerRe: locate the FILESTREAM data Pin
RedDk3-Dec-13 10:35
RedDk3-Dec-13 10:35 
GeneralRe: locate the FILESTREAM data Pin
Pete O'Hanlon3-Dec-13 10:49
mvePete O'Hanlon3-Dec-13 10:49 
GeneralRe: locate the FILESTREAM data Pin
RedDk3-Dec-13 11:07
RedDk3-Dec-13 11:07 
GeneralRe: locate the FILESTREAM data Pin
Dave Kreskowiak3-Dec-13 15:01
mveDave Kreskowiak3-Dec-13 15:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.