how to implement Unit Of Work just using just TransactionScope and sqlconnections
问题 I am working on a existing system(asp.net 2, ms sql server 2005) where repository pattern is implemented like: IMyRepository { void add(object o); int update(object obj); int delete(object obj); IList<T> getAll(); IList<T> getByDate(DateTime date); .... } The system has 3 different products. So We have different repository for each product. As the requirement changes over time, we need to implement Unit Of Work pattern for business process level transaction. We don't have any ORM.(actually we