Thursday, November 28, 2013

Dependency Injection

Simply Dependency Injection means giving an object its dependencies, instead of them itself having initializing them. Dependency Injection is useful for testing as well. Because it allows dependencies to be mocked or stubbed out.  Types of Dependency Injection ## Constructor injection Setting dependencies through constructor Brilliant Example - Programmers SO Setter injection Setting...

Sunday, November 17, 2013

Wednesday, November 13, 2013

Other resources for Entity Framework

Difference between Eager loading and Lazy loading http://stackoverflow.com/questions/3485317/entity-framework-4-single-vs-first-vs-firstordefault Bulk Inserting in Entity Framework http://stackoverflow.com/questions/5940225/fastest-way-of-inserting-in-entity-framework http://stackoverflow.com/questions/6107206/improving-bulk-insert-performance-in-entity-framework ............... By...

Monday, November 11, 2013

Interesting Findings ASP.NET

HttpClient Use HttpClient for Downloads. It is a new feature. Makes it easier to download files in a separate thread. http://developer.greenbutton.com/downloading-large-files-with-the-net-httpclient/ http://blogs.k10world.com/technology/webclient-httpclient-consume-http-requests/ http://www.dotnetperls.com/httpclient  Handling 404 in ASP.NET MVC Correctly (SO)   HttpServerUtility (MSDN) Provides...

Saturday, November 9, 2013

Interesting Things on C#

Func vs Action Func returns values from the delegate (LINQ .Where()) Action does not return anything (LINQ Foreach()) link Fluent interfaces https://www.simple-talk.com/dotnet/.net-framework/fluent-code-in-c/ Asynchronous Programming  Using async and await  link Fluent validations https://fluentvalidation.codeplex.com IDisposable interface MSDN Documentation IDisposable...

Tuesday, November 5, 2013

Routing in ASP.NET MVC

Enables you to map URLs that does not map to any specific files in a web site. You should add default MVC routes to Application_Start event in Global.asax file as shown in the example below This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open...
Powered by Blogger.


Software Architect at Surge Global/ Certified Scrum Master

Experienced in Product Design, Software Engineering, Team management and Practicing Agile methodologies.

Search This Blog

Facebook