Methodology

Download Starter Kit

emids, by virtue of being an industry player for over a decade has contributed immensely to the internal as well as external developer community, adding value to existing clients.

To further its endeavor, emids presents an application starter kit using Model View Controller (MVC) architecture. This kit enables development to begin with a pre-existing set of constructs rather than developing from scratch.

Why application starter kit?

All application and/or product development entails certain basic "must haves" like administration, authentication, seamless performance etc. Every new project or product development or client initiated exercises normally start from scratch, although we do realize that a lot of common constructs exist. The emids Application Starter Kit is designed to address this.

The Starter Kit for developers is a fully functional sample application to help one learn and accomplish their common development scenarios. The sample is complete and well-documented so that one can use the code to kick start projects right away! The benefits extend to productivity as well as cost. After downloading and installing the Starter Kit, please send comments/clarifications to askmvc@emids.com

Description

MVC architecture allows us to separate different parts of our applications into different layers. This allows developers to have a better separation of concerns which results in better reusability and easier testing. This framework gives better control in the order in which the things happen during the page lifecycle, of the way state is persisted between requests, and the code with which HTML is rendered. This framework is not a replacement for the web-form programming model, but it is an alternative programming model, for those who want to have better control.

MVC, which stands for Model-View-Controller, separates an application in three components: Model, View and Controller.

Model

This contains the Business logic and Data Access which has a set of classes that would define the functionality of the application from the business perspective. It contains model classes which are used to model objects in the application's domain.

View

View contains HTML markup and view logic. It can consist of every type of interface given to the user. The view is the set of web pages presented by an ASP .Net web application.

Controller

Controller is the object that allows the manipulation of the view. In an ASP.NET application the controller is implicitly represented by the 'code-behind' or the 'server side code' that generates the HTML presented to the user. It interacts with MVC Models and Views to control the flow of application execution.

Email us at askmvc@emids.com for any comments and clarifications.

The steps to get started with application starter kit are outlined below:

Pre-requisites: You need to have Visual Studio 2008 Sp1 and SQL 2005 (Express) or above.

  • Download and Install the MVC framework from http://www.microsoft.com/downloads/details.aspx?FamilyID=53289097-73ce-43bf-b6a6-35e00103cb4b&displaylang=en
  • Attach the database provided with the Application StarterKit as AWorksDB (In SQL Management Studio, right-click on database and choose Attach. It needs the mdf and ldf to be in the same place. If it gives an error, remove from ldf from the list of files - it will create a new one)
  • Enable the membership database by running c:\Windows\Microsoft.NET\Frameowork\v2.0.50727\aspnet_regsql. This step should create a new ASPNETDB in SQL Server.
  • Open the attached solution and in the web.config set the connecting strings for 
    <connectionStrings>
    <add name="ApplicationServices" connectionString="data source=.;Integrated Security=SSPI;Initial Catalog=aspnetdb" providerName="System.Data.SqlClient" />
    <add name="AworksDBEntities" connectionString="metadata=res://*/Models.EFX.AworksDB.csdl|res://*/Models.EFX.Aworks
    DB.ssdl|res://*/Models.EFX.AworksDB.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=.;Initial Catalog=AworksDB;Integrated
    Security=True&quot;" providerName="System.Data.EntityClient" />
    </connectionStrings>
  • You should now be able to run the application and register a new user and login to the system

NOTE : The Controller has a Authentication Filter for a specific user. In the sample, this is set to
[Authorize(Users = "ps2")]

Change this to a user that you have created as part of the registration process.

top

emids application starter kit using MVC

emids Public License (E-PL)

This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software.

1. Definitions

The terms "reproduce," "reproduction," "derivative works," and "distribution" have the same meaning here as under U.S. copyright law. A "contribution" is the original software, or any additions or changes to the software. A "contributor" is any person that distributes its contribution under this license. "Licensed patents" are a contributor's patent claims that read directly on its contribution.

2. Grant of Rights

(A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create.

(B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software.

3. Conditions and Limitations

(A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks.

(B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically.

(C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software.

(D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license.

(E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement.

Agree to User License Terms and Conditons?

Agree and Download

 

(or press ESC or click the overlay)

Request Information
X

Sending Email..Loading...

Success! Your email has been sent.

  First Name*
Last Name*
Company
Title
Phone No.*
Email*
Contact by
Message*
 

Press ESC or click the overlay to close