Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ASP.NET | MVC | WEB APPLICATION

License

NotificationsYou must be signed in to change notification settings

PranamBhat/AspDotNetMVC

Repository files navigation

SampleMvcWebApp is a ASP.NET MVC5 web site designed to show number of useful methods for building enterprisegrade web applications using ASP.NET MVC5 and Entity Framework 6.

This code is available as alive web site which includes explanationsof the code - see an example of this on thePosts code explanation page.

GenericServices is now available on NuGet.SeeNuGet Package Page for more details.

An additinal, more complex example is now available.VisitComplex.SampleMvcWebApp to see more.

The specific features in the code in this example are:

1. Simple, but robust database services

Database accesses are normally a big part of enterprise systems build with APS.NET MVC.However, my experience is that creating these services in a robust and comprehensive form can lead toa lot of repetative code that does the same thing, but for different data.My aim has been to produce a generic framework that handles most of the cases, and iseasily extensible when special handling is required.

1. Use of Dependency Injection

The GenericService framework is designed specifically to work with Dependency Injection (DI).DI is used throughout this web site, but specific examples are:

  • Inserting the required services into a controller by action parameter injection.
  • DI is also used for creating the GenericService etc. See Code Explanation for more information.

Note that the SampleMvcWebApp uses AutoFac dependency injection framework,but the framework allows you to replace AutoFac with your own favourite DI tool.

About

ASP.NET | MVC | WEB APPLICATION

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp