简体   繁体   中英

How do I work with MongoDB from ASP.Net web pages and razor?

我已经掌握了使用JSON表示法的MongoDB语法的知识,并且可以找到一些C#示例,但是它们比我想要的复杂得多,我正在寻找一个非常简单的模型来遵循Mongo进行基本工作从网页和剃刀。

You don't. Your data access should be done in your code behind, or even better, a repository that is called by your code behind.

If you do a quick search, you'll see that there are quite a few examples of using MongoDB with .NET.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM