Click here to Skip to main content
15,896,453 members
Articles / Database Development / SQL Server

Business Logic with Entity Framework

Rate me:
Please Sign up or sign in to vote.
4.42/5 (18 votes)
26 May 2009CPOL7 min read 69.1K   2.4K   70  
How to use Entity framework to do some basic logic when a change happens in related Entities or Associations

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EFLogicDemo", "EFLogicDemo\EFLogicDemo.csproj", "{62B88E00-2A13-4249-B862-86356DFFD678}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EFLogicTest", "EFLogicTest\EFLogicTest.csproj", "{6198A340-E071-40DF-8C8B-BB8380925194}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{922AC80A-5B0F-4711-9628-4EF02BBAAB10}"
	ProjectSection(SolutionItems) = preProject
		EFLogicDemo.vsmdi = EFLogicDemo.vsmdi
		LocalTestRun.testrunconfig = LocalTestRun.testrunconfig
	EndProjectSection
EndProject
Global
	GlobalSection(TestCaseManagementSettings) = postSolution
		CategoryFile = EFLogicDemo.vsmdi
	EndGlobalSection
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{62B88E00-2A13-4249-B862-86356DFFD678}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{62B88E00-2A13-4249-B862-86356DFFD678}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{62B88E00-2A13-4249-B862-86356DFFD678}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{62B88E00-2A13-4249-B862-86356DFFD678}.Release|Any CPU.Build.0 = Release|Any CPU
		{6198A340-E071-40DF-8C8B-BB8380925194}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{6198A340-E071-40DF-8C8B-BB8380925194}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{6198A340-E071-40DF-8C8B-BB8380925194}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{6198A340-E071-40DF-8C8B-BB8380925194}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect Dot Labs Pty Ltd
Australia Australia
A trusted technology adviser and a seasoned consultant with 15 years of experience in IT industry focused on helping organisations build modern IT solutions that drive innovation and increase efficiency and end-user value.

With a strong business acumen, an entrepreneur character, and vast experience in software engineering, I started my own consulting business (Dot Labs Pty Ltd) with a mission to drive adoption of modern solution architecture, public cloud infrastructure, and industry best practices.

During my career, I gained an extensive hands-on experience of software engineering through architecture standards, patterns, and best practice through my work with various enterprise organisations and startups, while keeping track of emerging technology and industry trends.

Comments and Discussions