Entity Framework: Adding DataTable with no Primary Key to Entity Model.

Exception: The table/view '[TableName]' does not have a primary key defined and no valid primary key could be inferred. This table/view has been excluded. To use the entity, you will need to review your schema, add the correct keys, and uncomment it.


Delegates & Events

In this post, we will go back to basics of C# concepts. From the time when i am new to .Net development till today, one of the first five C# questions is
" What is a Delegate? What is an Event? What are the Differences? "
Lets see this with a practical implementation.


$.post and $.get in MVC Razor & JQuery

In this post we will see when to use and How to use ajax calls in MVC Razor using JQuery.

When i am trying to create a POC for combination of entity framework and a MVC Application, i came across this requirement which made me to use $.post() and $.get().

Now, people very easily say, $.post() for posting data and $.get() for getting data using ajax call. Great!
But its not that simple as saying it. We need to decide what has to be used in combination of these ajax calls.