你的位置: 码友网首页 / 资讯源列表 / ASP.NET Core 2.0: How to Pass Data Into a Model Using DI

关于[ASP.NET Core 2.0: How to Pass Data Into a Model Using DI]的摘要:

Imagine you have an ASP.NET Core web page and you would like to edit some data in a form, but you'd like to default that data to something (maybe initially specified in the Web.Config). I'm sure there are dozens of ways to achieve this, but this is one. Let's start with a bog standard MVC web app:

原文地址: https://dzone.com/articles/aspnet-core-20-passing-data-into-a-model-using-di

收录时间: 2018-06-27 浏览量: 2163 分类: ASP.NET Core

| 0 收藏 | 0