TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Gaurav Raj
NA
475
89.3k
my webservice are not fetch data form database with linq
Jun 21 2017 2:01 AM
This is my webservice code
[WebMethod]
public Home getHome(int user) {
Home h = new Home();
Connection cs = new Connection();
var q=cs.da.HomeProcedure(user).ToList();
return h;
}
}
this is my home class
public class Home
{
public int BlogId { get; set; }
public string BlogPic { get; set; }
public string Title { get; set; }
public string Blogpic { get; set; }
public string Date1 { get; set; }
public string Time1 { get; set; }
public string Blogby { get; set; }
public string UserPic{get; set; }
public string TotalLike { get; set; }
public string TotalComment { get; set; }
public string LIKED { get; set; }
}
Output is
<Home
xmlns:xsi
="
http://www.w3.org/2001/XMLSchema-instance
"
xmlns:xsd
="
http://www.w3.org/2001/XMLSchema
"
xmlns
="
http://tempuri.org/
"
>
<BlogId>
0
</BlogId>
</Home>
Please somebody help me
Reply
Answers (
5
)
How to Implement cascading single drop list in C#
connect biometric device with asp.net wpf software