An environment ASP.5Installation Method: http://www.nuget.org/packages/Microsoft.AspNet.Mvc/5.2.3two related information ASP. NET MVC data http://www.asp.net/mvc/overview/getting-started/getting-started-with-ef-using-mvc/ Creating-an-entity-framework-data-model-for-an-asp-net-mvc-applicationhttp//www.cnblogs.com/powertoolsteam/archive/2013/11/12/aspnet-mvc5-getting-started.htmlEntityframework:https://msdn.microsoft.com/zh-cn/data/ee712907Dependency Injection AUTOFAC document http://kb.cnblogs.com/page/45266/http//docs.autofac.org/en/latest/automaper Data http://www.cnblogs.com/dudu/archive/2011/12/16/2284828.htmlbackground UI Framework Kendo uihttp://demos.telerik.com/kendo-ui/nopcommerce Data http://www.nopchina.net/http//www.nopcommerce.com/Https//Github.com/nuodb/nopcommerceAdding a domain Model to Nopcommerce requires the following steps:1. Create a new entity Class (nop/core/domain/Entity.cs) In the case of multiple languages:2. Create a new Mapping Class (nop/data/mapping/EntityMap.cs)3. Create a new view Model (Nop/admin/models/entitymodel.cs or nop/web/models/EntityModel.cs)4. New Model Validator (Nop/admin/validators/entityvalidator.cs or nop/web/validators/EntityValidator.cs)5. Creates a new mapping configuration for AutoMapper to complete the conversion between model and entity (Nop/admin/infrastructure/automapperstartuptask.cs or nop/web/ Infrastructure/AutoMapperStartupTask.cs)6. Write Tomodel and toentity (Nop/admin/mappingextensions.cs or nop/web/MappingExtensions.cs)7. Create service and service Interface (Nop/services/entityservice.cs and nop/services/IEntityService.cs)8. The last new model creates the controller and view9Dependency Injection Framework registration. nop.web.framework/DependencyRegistrar.cs:builder. Registertype<EntityService> (). As<ientityservice>(). Instanceperhttprequest ();
Nopcommerce e-Commerce Code Learning (ii)