Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntityDesign / Design / System / Data / Entity / Design / AspNet / StorageModelBuildProvider.cs / 1305376 / StorageModelBuildProvider.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
// @backupOwner [....]
//---------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using System.CodeDom;
using System.CodeDom.Compiler;
using System.Globalization;
using System.Web;
using System.Web.Hosting;
using System.Web.Compilation;
namespace System.Data.Entity.Design.AspNet
{
///
/// The ASP .NET Build provider for the SSDL in ADO .NET
///
///
[BuildProviderAppliesTo(BuildProviderAppliesTo.Code)]
public class StorageModelBuildProvider : System.Web.Compilation.BuildProvider
{
///
/// Default constructor
///
public StorageModelBuildProvider()
{
}
///
/// We want ASP .NET to always reset the app domain when we have to rebuild
///
///
///
public override BuildProviderResultFlags GetResultFlags(CompilerResults results)
{
return BuildProviderResultFlags.ShutdownAppDomainOnChange;
}
///
///
///
///
public override void GenerateCode(AssemblyBuilder assemblyBuilder)
{
BuildProviderUtils.AddArtifactReference(assemblyBuilder, this, base.VirtualPath);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
// @backupOwner [....]
//---------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using System.CodeDom;
using System.CodeDom.Compiler;
using System.Globalization;
using System.Web;
using System.Web.Hosting;
using System.Web.Compilation;
namespace System.Data.Entity.Design.AspNet
{
///
/// The ASP .NET Build provider for the SSDL in ADO .NET
///
///
[BuildProviderAppliesTo(BuildProviderAppliesTo.Code)]
public class StorageModelBuildProvider : System.Web.Compilation.BuildProvider
{
///
/// Default constructor
///
public StorageModelBuildProvider()
{
}
///
/// We want ASP .NET to always reset the app domain when we have to rebuild
///
///
///
public override BuildProviderResultFlags GetResultFlags(CompilerResults results)
{
return BuildProviderResultFlags.ShutdownAppDomainOnChange;
}
///
///
///
///
public override void GenerateCode(AssemblyBuilder assemblyBuilder)
{
BuildProviderUtils.AddArtifactReference(assemblyBuilder, this, base.VirtualPath);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WeakReferenceEnumerator.cs
- FocusChangedEventArgs.cs
- TransactionFlowBindingElement.cs
- NamedPermissionSet.cs
- XmlDocumentViewSchema.cs
- GridViewDeletedEventArgs.cs
- SchemaTypeEmitter.cs
- MessageBox.cs
- StringUtil.cs
- KeyGestureValueSerializer.cs
- ReverseComparer.cs
- ActivitySurrogateSelector.cs
- AuthenticationService.cs
- mactripleDES.cs
- NamedPermissionSet.cs
- DoubleAnimationClockResource.cs
- Token.cs
- StringFormat.cs
- IndexingContentUnit.cs
- InputReportEventArgs.cs
- Literal.cs
- SqlDataReader.cs
- Rect3D.cs
- EndpointInstanceProvider.cs
- XmlMapping.cs
- Stroke2.cs
- ReadContentAsBinaryHelper.cs
- PageCatalogPart.cs
- SmiEventSink_DeferedProcessing.cs
- GenericsNotImplementedException.cs
- ControlParameter.cs
- SQlBooleanStorage.cs
- XamlSerializerUtil.cs
- NegatedConstant.cs
- Terminate.cs
- ArraySortHelper.cs
- Menu.cs
- StaticExtension.cs
- StringPropertyBuilder.cs
- DataGridColumnCollection.cs
- ToolboxComponentsCreatedEventArgs.cs
- GetChildSubtree.cs
- SettingsPropertyCollection.cs
- WindowsRebar.cs
- PeerName.cs
- PickBranchDesigner.xaml.cs
- ChannelManager.cs
- DbMetaDataFactory.cs
- DeviceSpecificDesigner.cs
- CustomValidator.cs
- FacetChecker.cs
- HttpChannelListener.cs
- HtmlLink.cs
- PriorityItem.cs
- DataSourceCache.cs
- FloaterParaClient.cs
- FormattedText.cs
- AccessibilityApplicationManager.cs
- ContainerFilterService.cs
- SID.cs
- NotifyParentPropertyAttribute.cs
- ComponentEditorPage.cs
- InputReport.cs
- WpfKnownMember.cs
- InvalidWMPVersionException.cs
- PageSetupDialog.cs
- AuthorizationRule.cs
- StateFinalizationDesigner.cs
- DataSourceControlBuilder.cs
- Panel.cs
- CustomServiceCredentials.cs
- ObjectListItemCollection.cs
- ClientRuntimeConfig.cs
- Soap12FormatExtensions.cs
- SerializationStore.cs
- PointCollection.cs
- DiscoveryRequestHandler.cs
- DataProtection.cs
- ProfileServiceManager.cs
- ConfigurationException.cs
- RayMeshGeometry3DHitTestResult.cs
- SqlUDTStorage.cs
- FontUnit.cs
- DataPager.cs
- CryptoStream.cs
- VariableQuery.cs
- TableLayoutSettings.cs
- TransportationConfigurationTypeInstallComponent.cs
- RepeatBehaviorConverter.cs
- ILGenerator.cs
- ScrollBarAutomationPeer.cs
- ControlCollection.cs
- DynamicPhysicalDiscoSearcher.cs
- XmlComment.cs
- RoleProviderPrincipal.cs
- CodeCatchClauseCollection.cs
- SamlEvidence.cs
- DictionaryChange.cs
- ImmutableClientRuntime.cs
- CompositeDataBoundControl.cs