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
sonal malhotra
NA
410
51.9k
limit number of rows in EF in mvc
Jan 30 2019 2:29 AM
hello sir ,
i am new beginner in Ef .can u write query syntax for us in .net ? how to limit no of records in ef
var commennt1 = (from b in ctx.Blogstatus
join c in ctx.CommentTables on b.id equals c.id_blog
select new
{
CommentMsg = c.CommentMsg,
CreatedBy = c.CreatedBy,
id = b.id
}).ToList().Select(y => new CommentTable
{
CommentMsg = y.CommentMsg,
CreatedBy = y.CreatedBy,
}
).ToList();
ViewBag.totalcomment3s = commennt1;
Reply
Answers (
7
)
Save actual database : Entity Framework Core
how to search datatable value by using tetbox by loops