Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
*drel.Engine
Accounts *models.AccountRepository
}
func (*DB) NewUnitOfWork ¶
func (db *DB) NewUnitOfWork() *UnitOfWork
NewUnitOfWork starts a new change-tracking work session.
type UnitOfWork ¶
type UnitOfWork struct {
*drel.UnitOfWork
Accounts *models.UoWAccountRepository
}
UnitOfWork is a change-tracking work session with typed, tracked repositories. Load through uow.<Model>, stage with Add/Remove, then SaveChanges to flush everything in a single transaction.
Click to show internal directories.
Click to hide internal directories.