Click here to Skip to main content
15,896,063 members
Articles / Programming Languages / C#

Declarative Transactions using ADO.NET and without Enterprise Services

Rate me:
Please Sign up or sign in to vote.
4.95/5 (20 votes)
26 Oct 20018 min read 216.9K   1.5K   87  
Sometimes, it is nice to prototype up a simple database application. This code may help, by providing the automatic transactional model of COM+ in a non-COM+ environment. This example uses "Interception" to provide automatic transactioning support for non-COM+ classes.
Microsoft Visual Studio Solution File, Format Version 7.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TransactionExample", "TransactionExample.csproj", "{AB6343C8-CFC4-44B0-A679-F461C5349D71}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TransactionAttribute", "..\TransactionAttribute\TransactionAttribute.csproj", "{E5D986EC-9E1E-4382-92B0-559DC34CF601}"
EndProject
Global
	GlobalSection(SolutionConfiguration) = preSolution
		ConfigName.0 = Debug
		ConfigName.1 = Release
	EndGlobalSection
	GlobalSection(ProjectDependencies) = postSolution
	EndGlobalSection
	GlobalSection(ProjectConfiguration) = postSolution
		{AB6343C8-CFC4-44B0-A679-F461C5349D71}.Debug.ActiveCfg = Debug|.NET
		{AB6343C8-CFC4-44B0-A679-F461C5349D71}.Debug.Build.0 = Debug|.NET
		{AB6343C8-CFC4-44B0-A679-F461C5349D71}.Release.ActiveCfg = Release|.NET
		{AB6343C8-CFC4-44B0-A679-F461C5349D71}.Release.Build.0 = Release|.NET
		{E5D986EC-9E1E-4382-92B0-559DC34CF601}.Debug.ActiveCfg = Debug|.NET
		{E5D986EC-9E1E-4382-92B0-559DC34CF601}.Debug.Build.0 = Debug|.NET
		{E5D986EC-9E1E-4382-92B0-559DC34CF601}.Release.ActiveCfg = Release|.NET
		{E5D986EC-9E1E-4382-92B0-559DC34CF601}.Release.Build.0 = Release|.NET
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
	EndGlobalSection
	GlobalSection(ExtensibilityAddIns) = postSolution
	EndGlobalSection
EndGlobal

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


Written By
Canada Canada
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions