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
桔子数据(徐州铭联信息科技有限公司)成立于2020年,是国内领先的互联网业务平台服务提供商。公司专注为用户提供低价高性能云计算产品,致力于云计算应用的易用性开发,并引导云计算在国内普及。目前公司研发以及运营云服务基础设施服务平台(IaaS),面向全球客户提供基于云计算的IT解决方案与客户服务,拥有丰富的国内BGP、双线高防、香港等优质的IDC资源。 公司一直秉承”以人为本、客户为尊、永...
HostKvm又上新了,这次上架了2个线路产品:俄罗斯和香港高防VPS,其中俄罗斯经测试电信CN2线路,而香港高防VPS提供30Gbps攻击防御。HostKvm是一家成立于2013年的国外主机服务商,主要提供基于KVM架构的VPS主机,可选数据中心包括日本、新加坡、韩国、美国、中国香港等多个地区机房,均为国内直连或优化线路,延迟较低,适合建站或者远程办公等。俄罗斯VPSCPU:1core内存:2G...
Hostkey.com成立于2007年的荷兰公司,主要运营服务器出租与托管,其次是VPS、域名、域名证书,各种软件授权等。hostkey当前运作荷兰阿姆斯特丹、俄罗斯莫斯科、美国纽约等数据中心。支持Paypal,信用卡,Webmoney,以及支付宝等付款方式。禁止VPN,代理,Tor,网络诈骗,儿童色情,Spam,网络扫描,俄罗斯色情,俄罗斯电影,俄罗斯MP3,俄罗斯Trackers,以及俄罗斯法...
targetframework为你推荐
香港代理ip求香港澳门地区的代理IP谢谢分享博客外链求博客外链方法微信如何建群在微信里怎么创建一个群别人可以加入扫描二维码的加入今日热点怎么删除“今日热点”到底要怎样才能取消弹窗,每次开机都会iphone越狱后怎么恢复苹果手机越狱之后能恢复原来吗?腾讯文章腾讯罗剑楠是何许人也?安全漏洞什么是安全漏洞攻击??srv记录exchange 2010 自动发现需不需要srv记录如何清理ie缓存怎么样清理IE缓存?网站地图制作如何制作一个网站地图?
国外虚拟空间 台湾虚拟主机 中国万网域名注册 西安域名注册 linuxapache虚拟主机 阿云浏览器 t楼 wavecom gg广告 柚子舍官网 me空间社区 腾讯实名认证中心 vip购优惠 hktv 支持外链的相册 电信托管 中国电信测速网站 博客域名 免费获得q币 新网dns 更多