What defines a business object

From the name, I believe that this is a direct question, but looking into the "world of business objects", I cannot seem like anything that a business object should be. Are there any recommendations I should follow, or even any design patterns?

I found the book "Expert C # Business Objects", will this be the best starting point for a better understanding?

+6
design-patterns business-objects
source share
5 answers

A business object refers to business behavior or data associated with the object that it represents.

In the application, you have a code that does what the application should do (business material), and a code that technically allows it to run and interact with the user. For example, in an MVC template, business material will be a Model task.

I think this explains it better. You can also take a look at the MVC pattern and see the responsibility of each layer. Once you understand this, then it will be easier to see what qualifies as a "business object."

+5
source share

Business objects are elements of your domain model .

What is a domain model? The domain model describes what your system does in terms of the real world . The domain model describes the logical relationship between elements and the restriction between them.

A business object , business entites, or simply entities are somehow interchangeable terms. It says what kind of software solution it will represent in the real world, it can be client , account , documents , etc. This may be what your decision should solve.

This excludes purely technical objects that exist only to solve implementation problems.

We use the term entities because these elements exist (they exist) outside of software. In other words, software is a representation of these elements.

Cm:

+3
source share

Perhaps a concrete example might help. Say you are writing a menu planning application. Your business objects here will be such things as "Menu", "Ingredient", "UserAccount", "Invoice" - those objects that encapsulate the logic of your business model.

Things that are not business objects include things like MenuForm, Database, Transaction.

+1
source share

I still do not understand 100% about how business objects (BOs) differ from data transfer objects (DTOs).

It seems to me that DTOs contain only data, while BOs contain data and code for processing data?!?

So, one BO can "contain" the data of several DTOs, right?

+1
source share

A business object is an object that represents a business object and may optionally contain Business Logic.

0
source share

All Articles