0

I am making asp.net site using Layered architecture. Can I implement and use Data-Set object in presentation layer?

huMpty duMpty
  • 14,346
  • 14
  • 60
  • 99
Mikhail Sokolov
  • 546
  • 1
  • 7
  • 18

3 Answers3

0

Data Access Layer and Business Logic Layer is better place for it. To get more insight try Creating a DAL and Creating a BLL.

Obviously You can use it, but layered architecture is all about separating layers.

rumburak
  • 1,097
  • 11
  • 19
0

For interacting with database, you should use Data Access Layer.

You can have a look the aim of data access layer.

What is the purpose of a Data Access Layer?

Community
  • 1
  • 1
Stack User
  • 1,378
  • 5
  • 19
  • 40
0

I simple layered architecture might have:

Datasets being populated in the DAL

Business Entities / Domain objects in the 'BLL' are populated from the DAL Datasets

The presentation objects are pretty simple data transfer objects that match whatever is being presented.

Obviously there is a bit more to it than this.

Pluralsight have just released a course that might be worth your time?

Neil Thompson
  • 6,356
  • 2
  • 30
  • 53