如何在asp.net中建立多对多关系 [英] How to make many to many relationship in asp.net

查看:71
本文介绍了如何在asp.net中建立多对多关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有三个表n,这些是属性:

域=> domain_id,domain_name

测试=> test_id,标题,domain_id

问题=> ques_id,test_id,答案

所以我想在它们之间添加关系....通过给出错误

请告诉我如何将这些表与关系相互关联

i have three table n these are the attributes:

domain=> domain_id, domain_name

test=> test_id, title, domain_id

question=> ques_id, test_id, answer

so i want to add relationship between....by its giving a error

please tell me how can i interrelate these table with relationship

推荐答案

请参阅我对该问题的评论.首先,这是基本练习,您应该自己做.如果您错过了这样做的机会,则可能会冒着不了解基本关系主题的风险.每次面对关系数据库时,您都不会问这样的问题,是吗?最后,它与ASP.NET没有关系.如果您不了解,该案是无法治愈的.您应该退后一步,学习一些基础知识.在您了解基本知识之前,我们的答案不会对您有所帮助,不,请学习如何理解它们.现在,您甚至都不知道如何提出问题才是可以回答的.您也需要学习理解这些东西.

感谢您的理解,
—SA
Please see my comment to the question. First, this is elementary exercise which you should do all by yourself. If you miss the opportunity to do this, you would risk not understanding basic relational topics. You are not going to ask such questions every time you face a relationship database, are you? And finally, it has nothing to do with ASP.NET. If you don''t understand it, the case is incurable. You should step back and learn some basics. Our answers won''t help you before you understand basic things, no, learn how to understand them. Right now, you don''t even understand how to ask a question to make is answerable. You need to learn to understand such things, too.

Thank you for understanding,
—SA


这篇关于如何在asp.net中建立多对多关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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