问题描述
伙计们我需要你的帮助。这里是
一台打印机可以有多个PriterTrays和PaperSizes,下面给出了Schema。
表架构:3桌子
1)打印机:
PrinterId,名称,PrinterStatus
1,ABC,2
2)PrinterTray
PrinterTrayId,Name,PrinterID
100,xyz,1
101,ddy,1
2)PaperSizes
paperSizeId,名称,PrinterId
1,abc,1
2,dww,1
BusinessObject / Model :(它将提供打印机的完整信息以及各自的printerTrays和printerSizes,如下所示)
class =>打印机
printerid,
名称,
printerStatus,
PaperTrays列表;
paperSizes列表;
我想从Printer表中获取记录并转储相关表的值(PrinterTrays和Papersizes )使用ado.net(Datatable,Dataset等非实体框架)。所以我可以使用Business Object映射它们。
谢谢
Guys i need ur help.Here si
One Printer Can have multiple PriterTrays and PaperSizes,Schema is given below.
Table Schema : 3 Tables
1)Printer:
PrinterId,Name,PrinterStatus
1,ABC,2
2)PrinterTray
PrinterTrayId,Name,PrinterID
100,xyz,1
101,ddy,1
2)PaperSizes
paperSizeId,Name,PrinterId
1,abc,1
2,dww,1
BusinessObject/Model : (it will have complete information of printer along with respective printerTrays and printerSizes,as shown below)
class => Printer
printerid,
Name,
printerStatus,
list of PaperTrays;
list of paperSizes;
I want to fetch the records from Printer table and also dump the values of associated tables(PrinterTrays and Papersizes) using ado.net(Datatable,Dataset etc Not entity Framework).So that i can Map them with Business Object.
Thanks
推荐答案
这篇关于使用ado.net c#从多个表中获取记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!