LINQ Code and Tips
Entity Framework - Get a value of Column
pageTitle = db.Pages.Where(x => x.PageId == pageId).Select(x => x.PageTitle).SingleOrDefault();
Entity Framework - How to Get the current maximum value of a column
pageId = db.Pages.Max(x => x.PageId);
No comments:
Post a Comment