xiaolizi007
2/21/2017 - 2:58 AM

EF.Find.Demo.cs

find #ef

public TouristAttraction GetTouristAttraction(int id)
  {
    TouristAttraction touristattraction = db.TouristAttractions.Find(id);
  }


////////////////////////////////////////////////////////////////
var person = context.People.Find(1);