Home > Software engineering >  Returns the datatable and returns the entity have what different?
Returns the datatable and returns the entity have what different?

Time:10-06

Recently doing room charge system, in the three-tier architecture, we return to what different entities and the datatable to knead? Is there something different or performance? In the B/S is generic, in sometimes generics in C/S are not very flexible (here I speak of is reports), expert advice please

CodePudding user response:

In addition to list a bunch of noun, you did not include any effective information, you never know what you are asking,

CodePudding user response:

reference 1st floor caozhy response:
in addition to list a bunch of noun, you did not include any valid information, you never know what you are asking,

In simple terms, is to return to the entity and return to the datatable have what different?

CodePudding user response:

Strange is not what they have is not the same, but there is no the same place,

DataTable can load any data, its architecture (I mean Schema) and the procedure is the weak link, this means that the program can endure the DataTable returns a heterogeneous data sets,
On the contrary, the entity classes are compiled in to the program, that is, when the program compiled, an entity type with field, this is certain,

CodePudding user response:

reference caozhy reply: 3/f
strange not what they have is not the same, but there is no the same place,

DataTable can load any data, its architecture (I mean Schema) and the procedure is the weak link, this means that the program can endure the DataTable returns a heterogeneous data sets,
On the contrary, the entity classes are compiled in to the program, that is, when the program compiled, an entity type with what field, that's certain,

Acceptance, the master said, to return to the datatable is equivalent to no decoupling, and does not comply with the three layers of thought, whoops!

CodePudding user response:

The "decoupling" has nothing to do, and it seems that your "teacher" is also a ErBaDao,

CodePudding user response:

reference 5 floor caozhy reply:
this "decoupling" has nothing to do, and it seems that your "teacher" is also a ErBaDao,

Well, ok

CodePudding user response:

What is real?

CodePudding user response:

refer to 7th floor clear_zero response:
what is real?

Said the database described in the object or concept in the real world

CodePudding user response:

Really want to invent such a simple decision coupling method, you can go to open training class, the teacher lecture, fame and fortune!

CodePudding user response:

refer to the eighth floor u010850027 response:
Quote: refer to 7th floor clear_zero response:

What is real?

Said the database in the real world objects or concept described


This does require specific issue concrete analysis, and depends on your function

A public function such as your bottom FunA receives a SQL text and then to excute, then this is returned datatable
Then call this function as a function of FunB received the datatable used to go into your business logic entity, go back to the upper back
  • Related