Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我如何使用 mvc4 中的 webapi 服务从一个数据库中获取数据并将该数据插入另一个数据库。我正在使用一个 web api 项目来获取数据并尝试在另一个正在处理另一个数据库的 web api 项目中插入或执行操作。
string json = client.DownloadString("URL"); JavaScriptSerializer serializer = new JavaScriptSerializer(); dynamic item = serializer.Deserialize<object>(json);
嗨,Alpesh,我相信这个会帮助你。