They are not obvious to find and although I was diligently typing in the location of my csdl, ssdl and msl files I have never actually seen them myself.
So where are my csdl, ssdl and msl files?
I opened up Reflector, clicked open and browsed to and opened up my Models.dll:Here you can see the proper files names to ensure you have got them right in your connection string.
But Colin, why wouldn't you just want to run res://* like everybody else? ;) What's next, you'll tell me that not clearing out my view engines in global.asxp causes a significant performance hit?
ReplyDeleteForce of habit from my object orientated ways I guess - being as detailed as possible with what is a known. Not necessary though as you point out. However, my post was about insight into how it all working not best practice :)
ReplyDeleteWell, I was being a little tongue in cheek. In my opinion it is a best practice to qualify that info. Using res://* is a performance hit and if you are using a blasted ORM you need all the help you can get to get it to run faster. Qualifying the res:// is the same type of attention to detail and free win you get by clearing and adding your view engine in global.aspx:
ReplyDeleteViewEngines.Engines.Clear();
ViewEngines.Engines.Add(new RazorViewEngine());
Then again, I'm just a DBA so you could pretend we are at work and ignore me ;)
"Just a DBA"? You seem well equipped with your knowledge of EF *and* MVC for "just" a DBA! Don't tell anyone but I didn't even know about this ViewEngine clean up... Which I will now be looking into ;) Cheers!
ReplyDeleteGood DBA's are a "jack of all trades, master of one". In my best interest to know this stuff, as well as the networking side of things. DBA's are always outnumbered by AppDev's and Networking so we need to try to be extra sharp.
ReplyDeleteClearing View Engines:
http://blogs.msdn.com/b/marcinon/archive/2011/02/07/mvc-performance-tips.aspx
I also had no idea about it and how much impact it can have until I watched this at MVCConf2:
ReplyDeletehttp://channel9.msdn.com/Series/mvcConf/mvcConf-2-Steven-Smith-Improving-ASPNET-MVC-Application-Performance
Dude can handle almost 50% page requests just by clearing his view engines. Crazy.
Sorry for back to back postings... was still searching for that link when I did the original.
Apology is completely unnecessary. Comments as useful as yours are gold
ReplyDelete
ReplyDeleteتسليك مجارى بالاحساء تسليك مجارى بالاحساء
تسليك مجارى بالدمام تسليك مجارى بالدمام
تنظيف بيارات بالرياض تنظيف بيارات بالرياض
كشف تسربات المياه بالاحساء كشف تسربات المياه بالاحساء
كشف تسربات المياه بالدمام كشف تسربات المياه بالدمام
كشف تسربات المياه بالرياض كشف تسربات المياه بالرياض
كشف تسربات المياه بالرياض كشف تسربات بالرياض
كشف تسربات المياه بالرياض جهاز كشف تسربات المياه بالرياض