在asp.net中这么处理多表问题?如商品分类:有商品类型表,和商品信息表,并且为主外键关系?如:表Product

[复制链接]
查看11 | 回复1 | 2011-5-11 04:14:20 | 显示全部楼层 |阅读模式
如:表Product有字段:Id,ProductTypeId,ProductName等,表ProductType有字段:Id,Type,这么做ASP中实现分类?请大家帮帮忙!

回复

使用道具 举报

千问 | 2011-5-11 04:14:20 | 显示全部楼层
Go to Solution Explore, right click on the project, add new item, select dataset, then you can add columns from there.when you call this dataset, make sure your template can access it, then call it as a new database, example, your dataset is called myDataset, inside of it, you have Product as datatable,myDataSet.Product
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行