Mvc Database First Yavaş Performansa Çözüm Önerileri
ASP .NET MVC DATABASE FIRST PERFORMANSINDAKİ YAVAŞLIĞIN ÇÖZÜMÜ

MVC | Ali Yasin Doğan | 27.01.2019 | 2468

Asp.Net Mvc Database Firstdeki İlk Oluşturuluğundaki Yavaşlığı Hızlandırmak İçin Önerileri İçeren Link.

http://www.progware.org/Blog/post/Slow-Performance-Is-it-the-Entity-Framework-or-you.aspx


using (LocationsContext ctx = new LocationsContext())
{
    var Locations = ctx.Locations.ToList();
}

using (LocationsContext ctx = new LocationsContext())
{
    ctx.Configuration.ProxyCreationEnabled = false;
    var Locations = ctx.Locations.ToList();
}

using (LocationsContext ctx = new LocationsContext())
{
    ctx.Configuration.ProxyCreationEnabled = false;
    var Locations = ctx.Locations.select(x=>new{...}).ToList();
}

using (LocationsContext ctx = new LocationsContext())
{
    ctx.Configuration.ProxyCreationEnabled = false;
    var Locations = ctx.spDemo().ToList();
}




 Etiketler:  mvc database first entity framework asp.net