开发者

ADO.net Modeling Question

开发者 https://www.devze.com 2022-12-12 04:46 出处:网络
I have b开发者_如何学运维uilt my database design and diagram. Now i want to build a ADO.net model of that design. Now my question is that, should i build a model of the the whole design?(Since the des

I have b开发者_如何学运维uilt my database design and diagram. Now i want to build a ADO.net model of that design. Now my question is that, should i build a model of the the whole design?(Since the design is not so big) or create several models for convenience? Which is better?

I have Student, Teacher, Course, .... tables

Should i make studentModel, TeacherModel.... or make only a ExamSystemModel of all the tables?


If it is a small model, you may get away with a single DataSet.

I have built models based on tasks and processes. I may build a DataSet with everything I need to register for a class, another one with everything needed to grade tests, etc.

I have built DataSets for single tables.

I have read data from DataReaders directly into entity objects.

Etc...

The architecture of the rest of the application will determine how you build your ADO.NET model. What are you trying to do with your system? How will it be used? Pick an architecture and build an appropriate model.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号