View Single Post
Old 08-05-2011, 04:06 AM   #2
ddsfgdsa9b8
Commander In Chief
 
Join Date: Oct 2010
Posts: 419
ddsfgdsa9b8 is on a distinguished road
Default

public partial class _Default: System.Web.UI.Page ,barcelona jersey cheap
{
xxx_dbEntities db = new xxx_dbEntities ();
protected void Page_Load (object sender, EventArgs e)
{
var model = db.Market_Info.OrderByDescending (m => m.AddDate);
foreach (var dr in model)
; {
dr.Market_Info_ClassReference.Load ();
Response.Write (dr.Title +\
}
}
}
output is a simple little code,minnesota twins jerseys, but the time to create an entity data model to find that the foreign key does not exist,nba jerseys, the reference relationship of data content,cheap barca jersey, they also did not like the linq class, direct reference to,tennessee titans jerseys, and later by the man-on-demand, found that the difference between 3.5 and 4.0,cheap kobe bryant jersey, 3.5 if you want to reference the foreign key must be to increase dr.Market_Info_ClassReference.Load (); such a read reference to it, where you do not need 4.0. . . . Keep keep keep their own look
ddsfgdsa9b8 is offline   Reply With Quote

Sponsored Links