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
VoLLcloud LLC是一家成立于2020年12月互联网服务提供商企业,于2021年1月份投入云计算应用服务,为广大用户群体提供云服务平台,已经多个数据中心部署云计算中心,其中包括亚洲、美国、欧洲等地区,拥有自己的研发和技术服务团队。现七夕将至,VoLLcloud LLC 推出亚洲地区(香港)所有产品7折优惠,该产品为CMI线路,去程三网163,回程三网CMI线路,默认赠送 2G DDoS/C...
百纵科技湖南百纵科技有限公司是一家具有ISP ICP 电信增值许可证的正规公司,多年不断转型探索现已颇具规模,公司成立于2009年 通过多年经营积累目前已独具一格,公司主要经营香港服务器,香港站群服务器,美国高防服务器,美国站群服务器,云服务器,母机租用托管!美国CN2云服务器,美国VPS,美国高防云主机,美国独立服务器,美国站群服务器,美国母机。美国原生IP支持大批量订货 合作 适用电商 亚马逊...
陆零网络是正规的IDC公司,我们采用优质硬件和网络,为客户提供高速、稳定的云计算服务。公司拥有一流的技术团队,提供7*24小时1对1售后服务,让您无后顾之忧。我们目前提供高防空间、云服务器、物理服务器,高防IP等众多产品,为您提供轻松上云、安全防护 为核心数据库、关键应用系统、高性能计算业务提供云端专用的高性能、安全隔离的物理集群。分钟级交付周期助你的企业获得实时的业务响应能力,助力核心业务飞速成...
targetframework为你推荐
支付宝查询余额支付宝怎么查余额?!?!最新qq空间代码qq空间都是有哪些免费代码!(要全部)spgnuxps = getCon().prepareStatement(sql);啥意思,求注释,要是不嫌麻烦帮我把下面的也给注释了渗透测试渗透测试的专业服务不兼容软件和电脑不兼容会怎样?网易公开课怎么下载网易公开课的视频该如何下载?ios7固件下载ios 7及以上固件请在设备上点“信任”在哪点?xv播放器下载迅雷看看下载的XV格式的电影用什么播放器可以播放?(没有互联网的情况下)怎么点亮qq空间图标QQ空间的图标怎么点亮怎么点亮qq空间图标QQ空间图标怎么点亮?
虚拟主机管理软件 济南域名注册 紫田 mobaxterm 香港新世界电讯 php探针 个人空间申请 大容量存储器 静态空间 域名接入 33456 银盘服务 东莞idc 东莞主机托管 免费asp空间申请 服务器论坛 注册阿里云邮箱 rewritecond 重庆联通服务器托管 windowsserver2012r2 更多