jeudi 27 août 2020

Facade Object having DataBase connection?

my application usecase has facade object as variable to handling some specific api, and i want to insert return of facade's method into database

here's my question is it OK to Facade Object has repository(database connection) by field or parameter? usecase object has database connect as field, and i used to handle database connection on my usecase Layer

pros facade can handle full process, usecase has more simple logic

cons idk, access database connection on two Layer(usecase, facade) may cause problem or software dept?

sry for poor english, i'm very novice for this and it confuse me as hell

Aucun commentaire:

Enregistrer un commentaire