Posts

Showing posts from 2015

T4 Templates and the Entity Framework

Code generation isn’t new in Visual Studio. Nearly every visual design surface, from Web Forms to Windows Forms to typed DataSet designers, has transformed shapes into code using code generation behind the scenes. The key phrase is behind the scenes. As developers, we did not always have the control we needed over the code generation process. What is new in Visual Studio is how more frameworks are using T4 Templates for code generation. The frameworks integrating with T4 can give developers complete control over the code generation process. The Entity Framework is one such framework. This paper will discuss how the Entity Framework uses T4 Templates to generate custom code from an ADO.NET Entity Data Model (EDM), and assumes the reader is already familiar with the Entity Framework’s API and designer. We’ll begin with an overview of the T4 technology and see how the technology works. We’ll also look at how we can programmatically consume metadata from an EDM. In the end, we’ll combin

Understand the usage of HTTP status code 401 vs. 403 vs. 404

When I tried to understand the actual scenario of these HTTP status code. I got this article with some valid example. Handling Forbidden RESTful Requests: 401 vs. 403 vs. 404

Understanding of garbage collection in net

http://www.csharpque.com/2013/05/understanding-garbage-collection-in-net.html

Uploading and returning files in an ASP.NET MVC

Uploading and returning files in an ASP.NET MVC application is very simple. I found very simple article. Uploading and returning files