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
如今我们还有在做个人网站吗?随着自媒体和短视频的发展和兴起,包括我们很多WEB2.0产品的延续,当然也包括个人建站市场的低迷和用户关注的不同,有些个人已经不在做网站。但是,由于我们有些朋友出于网站的爱好或者说是有些项目还是基于PC端网站的,还是有网友抱有信心的,比如我们看到有一些老牌个人网站依旧在运行,且还有新网站的出现。今天在这篇文章中谈谈有网友问关于个人网站备案的问题。这个也是前几天有他在选择...
10gbiz怎么样?10gbiz 美国万兆带宽供应商,主打美国直连大带宽,真实硬防。除美国外还提供线路非常优质的香港、日本等数据中心可供选择,全部机房均支持增加独立硬防。洛杉矶特色线路去程三网直连(电信、联通、移动)回程CN2 GIA优化,全天低延迟。中国大陆访问质量优秀,最多可增加至600G硬防。香港七星级网络,去程回程均为电信CN2 GIA+联通+移动,大陆访问相较其他香港GIA线路平均速度更...
腾讯云双十一活动已于今天正式开启了,多重优惠享不停,首购服务器低至0.4折,比如1C2G5M轻量应用服务器仅48元/年起,2C4G8M也仅70元/年起;个人及企业用户还可以一键领取3500-7000元满减券,用于支付新购、续费、升级等各项账单;企业用户还可以以首年1年的价格注册.COM域名。活动页面:https://cloud.tencent.com/act/double11我们分享的信息仍然以秒...
targetframework为你推荐
手游运营手册游戏策划新手应该看那些书籍?暴风影音怎么截图请问如何在暴风影音上截图快速美白好方法快速美白方法ghostxp3GhostXP3电脑公司特别版V499怎么安装arm开发板开发板是什么?如ARM开发板,DSP开发板等。。它和最终目标板有何区别?今日热点怎么删除youku今日热点怎么卸载如何建立自己的网站怎么创建自己的网站godaddy通过什么网址可以查godaddy的域名信息硬盘人500G的硬盘容量是多少啊?xp系统停止服务Windowsxp系统为什么停止服务
payoneer 商家促销 阿里云浏览器 linux空间 免费mysql 速度云 爱奇艺vip免费领取 如何注册阿里云邮箱 万网空间购买 空间登陆首页 空间登入 带宽租赁 阿里云邮箱登陆 带宽测试 沈阳idc windows2008 fatcow 侦探online 中国域名根服务器 德国代理 更多