Create a DataModule class, then override Load method to register your class what you want to inject.

As you see we will use IInvoiceService interface to access our data from database, when we access a method it will be called the method from InvoiceRepository. You can create more repositories then implement IInvoiceService