Entity Framework does not display the last change from the database
Posted
by Jack
on Stack Overflow
See other posts from Stack Overflow
or by Jack
Published on 2010-05-04T10:15:10Z
Indexed on
2010/05/04
10:18 UTC
Read the original article
Hit count: 329
entity-framework
|c#
Entity Framework does not display the last change from the database, but after sometime it show the updated content. I don't any special change on the server or on the page. Thank in advance. Jack Here is the code i use to get the list:
var m = from r in ett.Article_Relations
from i in ett.Article_Articles
from a in ett.Article_Contents
where r.MenuItemID == id && r.Article_Articles.ArticleID == i.ArticleID
&& a.LanguageID == LanguageID
&& i.ArticleID == a.Article_Articles.ArticleID
select new ArticleViewModel
{
ArticleID = i.ArticleID,
IsActive = i.IsActive,
Author = i.ArticleAuthor,
Content = a,
DateCreated = i.DateCreated
};
© Stack Overflow or respective owner