简体   繁体   English

如何从ASP.Net网页和剃须刀上使用MongoDB?

[英]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. 如果您进行快速搜索,您会发现有很多将MongoDB与.NET结合使用的示例。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ASP.Net剃刀页面-如何将JSON从剃刀页面返回到javascript $ .getJson? - ASP.Net Razor Pages - How do you return json from a razor page to javascript $.getJson? 如何在ASP.Net Core 2.0 Razor页面中发布IFormFile? - How do I post an IFormFile in ASP.Net Core 2.0 Razor Pages? 如何在尝试使用 Razor Pages 删除 ASP.NET Core 中的记录时显示确认消息 - How do I display a confirmation message with trying to delete a record in ASP.NET Core using Razor Pages 如何在ASP.NET Razor页面中为我的CRUD操作使用多个基类 - How do I use multiple base classes for my CRUD operation in ASP.NET Razor pages 如何在自定义构建的 ASP.NET Core Razor Pages 可编辑网格中发布行 ID? - How do I post the row id in a custom built ASP.NET Core Razor Pages editable Grid? 如何将 Razor Pages ASP.NET 应用程序连接到现有的非本地 MSSQL 数据库? - How do I connect a Razor Pages ASP.NET app to an already existing, not local MSSQL database? 如何提交表单,但我的文本框将其值保留在asp.net Razor页面中 - How do I submit a form, but my text boxes preserve their values in asp.net Razor pages 如何为授权挑战设置两个不同的登录路径? (ASP.NET Core Razor 页面) - How do I set two different login paths for authorization challenge? (ASP.NET Core Razor Pages) 如何修改 ASP.NET Razor 页面中的列表属性? - How do i can modify List Property in ASP.NET Razor Pages? 如何使用 ASP.NET Razor 页面从 cshtml 中的 ParseObject 呈现自定义字段值? - How can I render custom field values from a ParseObject in cshtml using ASP.NET Razor Pages?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM