Can we use transaction on C# objects.
Does all the Transactions are only for Relational Database like MSSQL, ORACLE, etc...??
Thanks.
What you are asking is called Software Transactional Memory. Since this is currently an open area of research and there is no native C# language support at the moment, you might be better off using the existing synchronization options for C#, such as the lock
keyword, monitors, wait handles, etc.
If you really need advanced transactional features, there are a lot of library implementations, see this list in Wikipedia for some examples:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With