how to use dbContext.Database.BeginTransaction()?
Closed this issue · 2 comments
wanghaoxing commented
i like this architecture ,i want to know use dbContext.Database.BeginTransaction()? in domain
cwoodruff commented
@wanghaoxing interesting idea and will look at this
cwoodruff commented
@wanghaoxing I looked at DBContext Transactions https://docs.microsoft.com/en-us/ef/core/saving/transactions and I am not doing anything that would need transactions. I would use them when I add the ability to save associated data for an entity type.