Friday, January 22, 2016

Dependency Injection - Intro

This gonna be post series which I gonna continue .. Because this is bit complex and without theoretical part hard to understand. Fist thing first.. Lets move with theoretical background of it with this post  Assume this scenario.. - Entire Post sequence will use  this as example There is student registration system we need to develop solution for student registration   Here is our usual MVC code. public class Student    {        public int StudentId { get; set; }        public string StudentName { get; set; }        public string RegId { get; set; }        public int Age { get; set; } ...

Thursday, January 21, 2016

Web API From Code (Entity frameworkk code first model)

If you going to target mobile based applications to the small business you need to have API/web service on the hand. Today we are going to develop Web API within few minutes. Im using entity framework code first model approach here. (You can use same approach with Asp.NET web sites too)  Advantages of Code first Model All handle in the code. Full control with the code No need to worry about the database Here is the scenario today im...