Nopcommerce e-Commerce Code Learning (ii)

Source: Internet
Author: User
Tags nopcommerce

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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.