Pulse7
8/16/2017 - 1:10 PM

Find, SqlQuery

Find, SqlQuery

context.Ninjas.Find(id) //first look in memory if not found in memory then look up in db
context.Ninjas.SqlQuery("exec getOldNinjas") // expects results of query to be Ninjas