What comes first: the database or application logic?

What is the best method or recommended best practice in an asp.net database driven web application thread? I mean database first or coding first or side by side?

+3
source share
8 answers

Your data access code will not compile without an existing database - unless you drown it (or not therefore, it is likely that the database will be the first.

But it’s a bad idea to do whole pieces of the application in isolation. Ideally, you should design and create system slides — databases and applications — hand in hand. These sliders should be a cohesive subset of the functionality, possibly smaller than the subsystems. Inevitably, the operation of coding screens and business rules will cause problems in the data model. Therefore, it is good to have a data model or database administrators who are happy to work gradually with the developers.

change

Stephanie makes an extremely pertinent point:

"The main tables that your application data is saved really cannot be piecemealed. Most of the data is known when you start the project. It has the form you need to find it."

, , . , - , , . , / , - , , .

, , . , , , , , . ALTER TABLE.

, . , , HR, EMPLOYEES SALARIES. INVENTORY ORDERS, Sales.

+8

. , ( ), (, , , , ): .

+3

- . , . , , . .

, . , , , , , . , . .

, (), , (). , " ". , , . - , . , . Rube Goldberg , , , , .

,

, . , , , , .

, , , , , , -du-jour. , - , . , - , . , , .

. , , , . , , - .

+2

, datamodel . , .

+1

. . , .

, .

+1

, , " ".

, , , .

, . , , ..

( , , ), , , , .

+1

, , :

  • , .
  • .
  • , .
  • .
  • .
  • .
  • 1-6.
  • "". .
  • . .
  • .
  • .
  • , .
  • 10-12 .
  • : " "?
  • , , 1-15.
+1

. , . , . , , ( )

, . , ( ) ( ).

, . , . , , , + .

( IE , ticket.creatorID = people.personID), , (IE ppl , , . , , ).

0

Source: https://habr.com/ru/post/1749574/


All Articles