389AAngular2applicationinitialization,293–294components,294–295coreconcepts,293eventbinding,298interpolation,297propertybinding,297routing,300–302services,295–296structuralbinding,299templating,297two-waydatabinding,298–299VisualStudioGulpSetup,287NPMPackages,286projectcreation,282–283projectfiles,284Startupclass,284–285TypeScriptsetup,287–288ASP.
NETCoreMVCWebAPIattributerouting,86DI,85HTTPrequest,87and.
NETCore,84NuGetpackagesdataaccesslayer,90updatingandadding,90projecttemplate,88–89routing,86runtimeentity,85"super"packages,91URLtemplates,86webapplication,88BBootstrapping,354Bowercommand,223folderstructure,221installingGit,222NPM,227packages,135–136prerequisites,222searchpackagespage,224VisualStudio,222,224–226Bundlingandminificationconfiguration,137–138definition,137enablebundleonbuild,140JavaScriptfiles,138.
NETCoreCLI,141–142produceoutputfiles,139TaskRunnerExplorer,141VisualStudiointegration,139CClasses,246Compilersettings,251–252Configuremethod,97–98ConfigureServicesmethod,98–100Connectionstrategy,21–22Constructor,96–97Controllersandaction,102category,111CategoryControllerclass,104customer,112debuggingprofile,102Formattedresponse,103–104Getmethod,105HTTPGetcommand,105HTTPstatuscode,102–103launchsettings.
jsonfile,101orders,113–114,168–169products,114–115constructor,165detailsaction,166Erroraction,165GetListOfProductshelpermethod,166Index390IndexandFeaturedactions,167Searchaction,167–168RedirectActionResult,104search,113shoppingcart,115–118AddToCartactions,173AutoMapper,171constructor,170HTTPgetaction,173HTTPpostaction,174–175Indexaction,171modelbinding,171–172route,170CoreMVCWebapplicationsBowerpackages,135–136Bundling(seeBundlingandminification)controller,129–130fakeauthentication,151–152,154filesandfoldersappsettings.
json,124Configuremethod,125ConfigureServicesmethod,125controllers,126JavaScript,128libandfavicon.
ico,129program.
cs,124SiteCSSandimagefiles,128Startup.
cs,124views,126wwwroot,126–127layouts,133–134NuGetPackages,122–123projectcreation,120,122RazorViewEngine,133routingtable,123URLtemplatesanddefaultvalues,123views,130,132–135,154–155WebApiCallsclass(seeWebApiCallsclass)webservicelocator,142–143CRUDoperationsconcurrencychecking,32creatingrecords,31deletingrecords,33EntityState,33no-trackingqueries,32readingrecords,31updaterecords,32DDataaccesslayerdatacreation,76–78Down()method,60foreignkeys,50initializer,78–80migrationcreation,58migrationdeploy,58migrations,61modelclass(seeModelclasses)navigationproperties,50NuGetpackages,81ordertotalcalculatedfield,60repositoriescategory,67customer,69ICategoryRepointerface,64ICustomerRepointerface,65InvalidQuantityException,72IOrderDetailRepointerface,66IOrderRepointerface,65IProductRepointerface,65IShoppingCartRepointerface,66order,71–72OrderDetail,70–71product,67,69ShoppingCartRecords,72,74–75Up()method,59–60Viewmodels(seeViewmodels)DataaccesslayerNuGetpackages,90DbContextclass,17–18DbSetcollectiontype,20Dependencyinjection(DI),85Displayattribute,51Down()method,60EEntityFrameworkCoreCategoriesDbSet,26categorymodelclass,24–25connectionstrategy,21–22convention,23CRUDoperations,31,33dataannotationssupport,24DbContext,18DbSet,20EF6.
x,4entitybaseclass,22,23frameworkmigrations(seeMigrations)NuGetpackages,13SpyStore.
DALprojectaddingpackages,14,16updateandinstallpackages,16SpyStoredatabase,4–5StoreContextclass,19–20storedproceduresandfunctions,51testing(seeUnittesting)Controllers(cont.
)391Exceptionfiltersaction,110SpyStoreExceptionFilter,108–109FFakeauthentication,151–152,154Foreignkeys,50G,HGenerics,250Gulpbenefits,227copyingfiles,229dependencies,230–231installation,228nestedtasks,231TaskRunnerExplorer,231IInheritance,247–248Interfaces,249Interpolation,297J,K,LJavaScriptapplicationtoolsBower,220command,223folderstructure,221installingGit,222NPM,227prerequisites,222searchpackagespage,224VisualStudio,222,224–226Gulp,227benefits,227copyingfiles,229dependencies,230–231installation,228nestedtasks,231TaskRunnerExplorer,231Node.
jsChocolateypackagemanager,213executablepackages,218–219locallyvs.
globally,install,220manualinstallation,212–213NPM,215–216projectcreation,215savingprojectdependencies,217–218VisualStudiosetup,213–214SystemJS,233–236WebPack,237–240MMigrationscreatingandexecuting,27–28removal,29SpyStoredatabase,30SQLscriptscreation,30update,29Modelbinding,106Modelclassescategorymodel,52customermodel,55DbSet,56FluentAPI,56–57orderdetailmodel,54–55ordermodel,54productmodel,52–53shoppingcartrecordmodel,53StoreContext,56Model-View-Controller(MVC),83–84Modules,252–253MVCprojectsandfilesappsettings.
jsonfile(s),93–94configuremethod,97–98ConfigureServicesmethod,98–100constructor,96–97controllers,100–102program.
csFile,92–93runtimeconfig.
template.
json,94Startup.
cs,94Startupservices,95–96NNavigationproperties,50.
NETCoreCommandLineInterface(CLI),8NuGetpackagesCoreMVCWebapplications,122–123packagesrestoringCLI,13manually,13PMC,13projectreference,14OObjectRelationalMapping(ORM),3P,QPackageManagerConsole(PMC),13392RRazorViewEngine,133Reactappcomponent,365–367,369applicationorganization,355bootstrapping,354cartcomponent,380–383,384CartRecordcomponent,384–386CategoryLinkscomponent,369–371component,351–354Initialcomponents,361–362models,356–357NPMpackages,334–337ProductDetailcomponent,376–380productscomponent,371,375–376built-inmethods,373interface,372loadFeaturedProducts(),374ProductService,372refreshProducts()method,373render(),374–375projectfolder,338–341routing,362–365services,357,359–361setState()method,367solution,329Startupclass,333–334TypeScriptsetup,337–338VisualStudioprojectcreation,330–332projectfiles,332–333WebPack,343–344configuration,342–343loader,346NPM,342paths,345pluginssection,346–349production,343–344resolvesection,345TypeScriptcode,349wwwrootfolder,347Repositoryinterfacebaserepository,43–46categoryrepository,46–47creation,41–42Routing,300–302Runningapplication,107SSolutionandprojectsaddingproject,10addingSpyStore,11creation,8–9fileglobbing,11targetframework,update,12SpyStoreAngular2addroutingappcomponent,306andcomponentstoappmodule,305–306creatingroute,304–305productcomponent,303–304addToCartmethod,318–319angularbootstrap,292appmodule,292approotcomponents,321cartpageappmodule,325cartrecordcomponent,323–324cartroute,325components,321,323checkoutprocess,326–327connectingtoservice,306–310productdetailroute,320productdetailscomponent,316–318productdetailspage,316rootappcomponent,291rootpage,289–291routeparameters,311–312searchpage,313–315SpyStoredatabase,4–5,49SpyStoreMVCapplicationcontrollerorders,168–169products,165–168shoppingcart,170–175runningapplication,205–206validation(seeValidation)ViewComponents(seeViewComponents)SpyStore.
Reactsolution.
SeeReactStoreContextclass,19–20Storedproceduresandfunctions,51"Super"packages,91SystemJS,233–236TTagHelpers,119anchor,160built-intag,158–159custom,163–164environment,163form,160HTMLHelper,157image,163input,160–161linkandscript,163select,161–162393TextArea,161validation,162Transpiler,241TypeScriptaddingfiles,261–262classes,246,263compilersettings,251–252currentPricemethod,279CustomerAnonymous.
ts,264–265datatypes,242–243,245debugging,272,274–275ECMAScriptfeatures,242generics,250inheritance,247–248interfaces,249loadProductsmethod,278modules,252–253NPMpackages,259,261productinterface,276–277productlist,266–272,279projectcreationaddingHTMLpage,257compileroptions,259NuGetpackagemanager,256templateselection,255tsconfig.
jsonfile,258SPAs,242transpiler,241UUnittesting,118categoryrecordadding,37–38delete,40retrieve,38update,39CategoryTestsclass,34–36concurrencychecking,41creatingandrunning,36CRUDoperations,37Up()method,59–60VValidationclientside,180,182–183serverside,176–179ViewComponents,119AddtoCart,192–193Cart,195clientsidecode,186customtaghelpers,186Detailsview,201–203displaytemplate,193,204–205editortemplate,193,195,198–199Indexview,195–197,200–201layoutview,188–190LoginPartialView,187–188orders,200productsview,203–204serversidecode,183–185sharedfolder,187Updatepartialview,197–198validationscripts,191Viewmodelscartrecord,64orderdetail,63ProductandCategory,62ViewsCartViewModelBase,155folder,130–132partial,134ProductAndCategoryBase,154RazorViewEngine,133sendingdata,134–135stronglytyped,135VisualStudioCLI,8installation,5–6launchsettings,106–107.
NETCoreSDKs,6–7W,X,Y,ZWebApiCallsclassBaseclass,144BaseHTTPdeletecalls,147–148BaseHTTPGetcalls,145–146BaseHTTPPostandPutcalls,146–147classcreation,148–150DIcontainer,151IWebApiCallsinterface,143WebPack,237–240,343–344appcomponent,368configuration,342–343loader,346NPM,342package.
jsonfile,351paths,345pluginssection,346–349production,343–344resolvesection,345TypeScriptcode,349–350wwwrootfolder,347
乐凝网络怎么样?乐凝网络是一家新兴的云服务器商家,目前主要提供香港CN2 GIA、美国CUVIP、美国CERA、日本东京CN2等云服务器及云挂机宝等服务。乐凝网络提供比同行更多的售后服务,让您在使用过程中更加省心,使用零云服务器,可免费享受超过50项运维服务,1分钟内极速响应,平均20分钟内解决运维问题,助您无忧上云。目前,香港HKBN/美国cera云服务器,低至9.88元/月起,支持24小时无理...
spinservers是一家主营国外服务器租用和Hybrid Dedicated等产品的商家,Majestic Hosting Solutions LLC旗下站点,商家数据中心包括美国达拉斯和圣何塞机房,机器一般10Gbps端口带宽,且硬件配置较高。目前,主机商针对达拉斯机房机器提供优惠码,最低款Dual E5-2630L v2+64G+1.6TB SSD月付89美元起,支持PayPal、支付宝等...
reliablesite怎么样?reliablesite是一家于2006年成立的老牌美国主机商,主要提供独服,数据中心有迈阿密、纽约、洛杉矶等,均免费提供20Gbps DDoS防护,150TB月流量,1Gbps带宽。月付19美金可升级为10Gbps带宽。洛杉矶/纽约/迈阿密等机房,E3-1240V6/64GB内存/1TB SSD硬盘/DDOS/150TB流量/1Gbps带宽/DDOS,$95/月,...
targetframework为你推荐
木马病毒木马和病毒有什么区别外网和内网内网和外网有什么区别啊?如何免费开通黄钻怎么免费开通黄钻qq空间装扮qq空间的装扮空间在哪?如何建立自己的网站怎么创建自己的网站godaddyGO DADDY服务器空间域名怎么样人人逛街人人逛街评论怎么不显示链接了?好像4月28日就不能显示了。是什么原因呢?安装迅雷看看播放器如何用手机安装迅雷看看播放器ios系统iOS系统是什么php购物车php做购物车需要用到哪些技术,这些技术怎么实现
域名出售 域名服务器的作用 mediafire下载工具 免费ftp空间申请 浙江独立 元旦促销 有益网络 网站cdn加速 idc查询 香港亚马逊 谷歌台湾 网页加速 睿云 上海联通 香港博客 nic 傲盾代理 西安服务器机柜 tftp服务器是什么 汽车摇号申请网站 更多