Re: Data Layer architecture
- From: Alfredo Novoa <alfredo_novoa@xxxxxxxxxxx>
- Date: Mon, 25 Jul 2005 12:56:19 +0200
On Mon, 25 Jul 2005 10:42:43 +0200, "Wessel Troost"
<nothing@xxxxxxxxxxxx> wrote:
>> BL is a data-consuming tier, not part of the relational model. If you
>> pick up a book by Nijssen or Halpin, or Yourdon for that matter, you'll
>> learn that relational theory, e.g. the schema setup in your DBMS, is
>> not a theory which states anything about business rules. It only gives
>> context to the data its format it defines, no logic whatsoever.
>>
>I'd have to disagree with that. The relational model can enfore business
>rules-- like, at most one customer per order, every order has a unique
>identifier, and it's obligatory to fill in the postal code for an order.
Any DBMS must be able to enforce any business rule. If not, it is not
a DBMS.
For instance MS Jet is not a DBMS, it is a primitive file processor.
>Besides, there's more about a database than the relational model.
Indeed. Besides what you said, the Relational Model says nothing about
the objects you store in the tuple attributes, but they must be
validated by the DBMS either.
Here is a very interesting interview:
http://www.dbmsmag.com/int9410.html
>- It can restrict status transitions by controlling the change through a
>stored procedure (like moving an order from InProgress to Fullfilled;
>requiring a resolve-date when a help desk ticket is closed; ...)
It could be done with a declarative constraint too.
>- It provides a fool-proof way to ensure there's only one version of the
>business logic in production :)
Something essential.
>Such safeguards in the database are simple to develop, and more fool-proof
>than safeguards at another level. I think it's safe to say enforcing BL
>in the database is a "best practice".
It is the only sensible practice.
Regards
.
- References:
- Data Layer architecture
- From: laimis
- Re: Data Layer architecture
- From: Nick Malik [Microsoft]
- Re: Data Layer architecture
- From: laimis
- Re: Data Layer architecture
- From: Wessel Troost
- Re: Data Layer architecture
- From: laimis
- Re: Data Layer architecture
- From: Nick Malik [Microsoft]
- Re: Data Layer architecture
- From: Wessel Troost
- Re: Data Layer architecture
- From: Alfredo Novoa
- Re: Data Layer architecture
- From: Frans Bouma [C# MVP]
- Re: Data Layer architecture
- From: Wessel Troost
- Data Layer architecture
- Prev by Date: Re: .NET Socket
- Next by Date: Re: DataView.get_Item throws a NullReferenceException
- Previous by thread: Re: Data Layer architecture
- Next by thread: Re: Data Layer architecture
- Index(es):
Relevant Pages
|