MVC 5 Design
70 views | +0 today
Follow
Your new post is loading...
Your new post is loading...
Rescooped by Stuart from angularjs
Scoop.it!

AngularJS: Send auth token with every request

AngularJS is an awesome javascript framework. With it’s $resource service it is super fast and easy to connect your javascript client to a RESTful API. It comes with some good defaults to create a CRUD interface. However if you are using an API, which needs authentication via an auth token, you might run into issues: The resource factory creates a singleton. If you do not already have an auth token when the factory is called, or if the auth token changes afterwards, you cannot put the auth token as a default request parameter in the factory. This article shows, how to solve this. First we define our resource, consuming a RESTful API, without using an authentication. Afterwards we create a wrapper to send the auth token with every request. This allows consumption of an API with an exchangeable auth token.
Via Maxence Warzecha
more...
No comment yet.
Scooped by Stuart
Scoop.it!

How to Enable and Use EF Code-First Migrations for Multiple Contexts

How to Enable and Use EF Code-First Migrations for Multiple Contexts | MVC 5 Design | Scoop.it
The Situation You want to use Entity Frameworks code-first migrations to push model changes to the database, but you have multiple databases and contexts in your model. When you try to run Enable-M...
more...
No comment yet.
Scooped by Stuart
Scoop.it!

Implementing the Repository and Unit of Work Patterns

Implementing the Repository and Unit of Work Patterns | MVC 5 Design | Scoop.it
The Contoso University sample web application demonstrates how to create ASP.NET MVC 4 applications using the Entity Framework 5 Code First and Visual Studio 2012. For information about the tutoria...
more...
No comment yet.
Scooped by Stuart
Scoop.it!

Design and Develop a website using ASP.NET MVC 4, EF, Knockoutjs and Bootstrap

Design and Develop a website using ASP.NET MVC 4, EF, Knockoutjs and Bootstrap | MVC 5 Design | Scoop.it
Design a website architecture that must be simple, easily understandable by any web designer using asp.net MVC, EF, Knockoutjs and Bootstrap
more...
No comment yet.
Scooped by Stuart
Scoop.it!

Dependency Injection in ASP.NET MVC 4 using Unity IoC Container

Dependency Injection in ASP.NET MVC 4 using Unity IoC Container | MVC 5 Design | Scoop.it
In previous articles, I have explained the IoC, DI pattern and DI containers. I hope, you understand well the IoC, DI pattern and and DI containers. Now you will learn how to apply it in ASP.NET MVC 4. In this article, I am going to use e>Unit DI Container in MVC4.
more...
No comment yet.
Scooped by Stuart
Scoop.it!

Correct use of Repository and Unit Of Work patterns in ASP.NET MVC

Correct use of Repository and Unit Of Work patterns in ASP.NET MVC | MVC 5 Design | Scoop.it
Hello World ! My very first article is revolving arround ASP.NET MVC and the correct use of UnitOfWork / Repository patterns. This article is not about how to plumb a dependency injection (DI) cont...
more...
No comment yet.