对单个类中的多个表进行CRUD操作 [英] CRUD operations on multiple tables in a single class
本文介绍了对单个类中的多个表进行CRUD操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有问题。我正在使用AdventureWorks2012数据库。
从单个类到多个表,insert-update-delete-list操作必须要做。
怎么会这样?多个表和不同数量的表内,彼此不同的变量。这怎么可能?
我是c#的新手。请帮忙。
http://www.schorkenterprises.com/images/AdventureWorks2008.png
I have problems. I'm working on AdventureWorks2012 database.
from single class to multiple tables, insert-update-delete-list operations have to do.
How could this be? multiple tables and within tables in different numbers and different from each other's variables. how is this possible?
I'm new to c #. please help.
http://www.schorkenterprises.com/images/AdventureWorks2008.png
推荐答案
为此你应该尝试实体框架。
http://www.asp.net/ mvc / tutorials / getting-started-with-ef-using-mvc / implementation-basic-crud-functions-with-the-entity-framework-in-asp-net-mvc-application [ ^ ]
http://www.c-sharpcorner.com/UploadFile/krishnasarala/crud-operation-using-实体框架式-ASP-氖t-mvc / [ ^ ]
这些链接可以为您提供进一步的帮助。
for this you should try "entity framework" .
http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/implementing-basic-crud-functionality-with-the-entity-framework-in-asp-net-mvc-application[^]
http://www.c-sharpcorner.com/UploadFile/krishnasarala/crud-operation-using-entity-framework-in-Asp-Net-mvc/[^]
these links can help you further.
这篇关于对单个类中的多个表进行CRUD操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文