2010-10-22 38 views
0

我想了解一下是否有(性能)當我使用一個區別:ASP.NET實體框架:LINQ2SQL或存儲過程?

User usr = (from u in Adapter.User 
      where u.Login == login 
      select u).FirstOrDefault(); 

User usr = Adapter.getUserByLogin(login); //stored procedure 

回答