dimanche 22 mars 2015

What should I call my repository methods?


In my database, I have 2 tables (ColorHeader and ColorDetail) and I have two views, one for each table (ColorHeaderView and ColorDetailView). I insert/update/delete into my tables and read from my views, but I am unsure of what to call my methods. Now I am doing something like, but it seems too verbose, I like readability, but want to try to be more concise:



  • GetColorHeader

  • GetColorDetail

  • GetColorHeaderView

  • GetColorDetailView

  • InsertColorHeader

  • InsertColorDetail

  • InsertColorDetails

  • etc...


In reality, the views are really just combinations of the header and detail tables?





Aucun commentaire:

Enregistrer un commentaire