Topic: Multi-threaded access to a DB
Good afternoon! Help to understand such question, please. (I not absolutely) got to me a legacy-code in which reversal to a DB goes sql-inquiries through DbCommand. Questions: 1. DbCommand supports a multithreading, or it is necessary to surround it with locks? 2. Looked a passage subject on EF. There are used async/await. that EF not . But in examples everywhere it is used EF through async/await and anywhere there are no locks. I do not understand, how asynchronous call EF helps thread safety support? - Yours faithfully, Arhipov Dmitry.