新手问题 [英] Newbie Question

查看:65
本文介绍了新手问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是数据库编程的新手,我想知道如何以一对多的方式输入数据

iam new to database programing i want to know how to enter data in one to many senario suppose

我有主表项目

projecti,projectname

projecti,projectname

我还有一张桌子

ProjectAssignedstaff

ProjectAssignedstaff

ProjectID,staffid

ProjectID,staffid

我想知道如何创建数据输入界面,以便用户可以从主页插入项目和人员.

i want to know how to create dataentry interface so that user can insert project and staff from main page.

当前

我分两步执行此操作,首先添加新项目,然后在其他页面上添加具有ID的人员ID,并在查询字符串中传递

i am doing this in 2 steps first adding new project then on other page i am adding staff with project id passing in querystring.

请帮助我有什么办法可以在单页或指定人员上进行,然后单击提交以创建项目.

please help me is there any way to do it on single page or assigned staff first then click submit to create project.

projectid是自动增量主键.

projectid is auto incremental primarykey .

谢谢

 

 

 

推荐答案

您的问题影响深远-在这里无法完全回答.您可以做的最好的事情之一就是开始学习实体框架:

Your question is far reaching - one that could not be fully answered here. One of the best things you could do is begin to learn entity framework:

 

http://msdn.microsoft.com/zh-CN/library/bb386876.aspx

http://msdn.microsoft.com/en-us/library/bb386876.aspx

 


这篇关于新手问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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