如何在c#中使用mvc在数据库中插入记录 [英] How to insert record in database using mvc in c#

查看:242
本文介绍了如何在c#中使用mvc在数据库中插入记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Friends,



这里我想学习使用mvc在数据库中插入记录。你也可以帮忙。



提前谢谢。



病毒

解决方案

查看以下链接: -



使用MVC中的通用存储库模式和依赖注入的CRUD操作 [ ^ ]


参考:

1. ASP.NET MVC 4 - CRUD操作实体框架(8个步骤)创建您的网站) [ ^ ]

2. ASP.NET MVC 5 - CRUD使用Entity Fram进行操作Visual Studio 2013上的ework 6 [ ^ ]


请参阅此内容,

http://mvc2tutorial.blogspot.in/2011/06/insert-value-to-database-in-mvc2.html [ ^ ]

Hello Friends,

Here i want to learn to insert record in database using mvc. so can u help.

thanks in advance.

Viral

解决方案

have a look to the following link:-

CRUD Operations Using the Generic Repository Pattern and Dependency Injection in MVC[^]


Refer:
1. ASP.NET MVC 4 – CRUD operations Entity Framework (8 steps to create your site)[^]
2. ASP.NET MVC 5 – CRUD operations with Entity Framework 6 on Visual Studio 2013[^]


Refer this,
http://mvc2tutorial.blogspot.in/2011/06/insert-value-to-database-in-mvc2.html[^]


这篇关于如何在c#中使用mvc在数据库中插入记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆