Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DLinq / Dlinq / Exceptions.cs / 1305376 / Exceptions.cs
using System; using System.Collections.Generic; using System.Data.Linq.Provider; using System.Linq; using System.Diagnostics.CodeAnalysis; namespace System.Data.Linq { ////// DLinq-specific custom exception factory. /// [SuppressMessage("Microsoft.Usage", "CA2237:MarkISerializableTypesWithSerializable", Justification = "Unknown reason.")] [SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors", Justification = "Unknown reason.")] public class ChangeConflictException : Exception { public ChangeConflictException() { } public ChangeConflictException(string message) : base(message) { } public ChangeConflictException(string message, Exception innerException) : base(message, innerException) { } } ////// An attempt was made to add an object to the identity cache with a key that is already in use /// [SuppressMessage("Microsoft.Usage", "CA2237:MarkISerializableTypesWithSerializable", Justification = "Unknown reason.")] [SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors", Justification = "Unknown reason.")] public class DuplicateKeyException : InvalidOperationException { private object duplicate; public DuplicateKeyException(object duplicate) { this.duplicate = duplicate; } public DuplicateKeyException(object duplicate, string message) : base(message) { this.duplicate = duplicate; } public DuplicateKeyException(object duplicate, string message, Exception innerException) : base(message, innerException) { this.duplicate = duplicate; } ////// The object whose duplicate key caused the exception. /// public object Object { get { return duplicate; } } } ////// An attempt was made to change an FK but the Entity is Loaded /// [SuppressMessage("Microsoft.Usage", "CA2237:MarkISerializableTypesWithSerializable", Justification = "Unknown reason.")] [SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors", Justification = "Unknown reason.")] public class ForeignKeyReferenceAlreadyHasValueException : InvalidOperationException { public ForeignKeyReferenceAlreadyHasValueException() { } public ForeignKeyReferenceAlreadyHasValueException(string message) : base(message) { } public ForeignKeyReferenceAlreadyHasValueException(string message, Exception innerException) : base(message, innerException) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RectangleHotSpot.cs
- ReadOnlyActivityGlyph.cs
- DBConnectionString.cs
- TdsRecordBufferSetter.cs
- CachedBitmap.cs
- TableAdapterManagerHelper.cs
- URLMembershipCondition.cs
- ContainerParaClient.cs
- ObjectAssociationEndMapping.cs
- Matrix3DConverter.cs
- RankException.cs
- PromptStyle.cs
- HtmlInputReset.cs
- PerformanceCounterLib.cs
- Empty.cs
- ValidatingReaderNodeData.cs
- Random.cs
- DragSelectionMessageFilter.cs
- Variable.cs
- SmiRequestExecutor.cs
- RealProxy.cs
- InitializationEventAttribute.cs
- EventSetter.cs
- Oci.cs
- Matrix3DValueSerializer.cs
- DataGridItemEventArgs.cs
- CachedFontFamily.cs
- CaseInsensitiveHashCodeProvider.cs
- ApplicationServicesHostFactory.cs
- _UriTypeConverter.cs
- WindowsButton.cs
- PropertyInfoSet.cs
- Attributes.cs
- StorageAssociationSetMapping.cs
- XsltOutput.cs
- SmtpDigestAuthenticationModule.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- ScriptControl.cs
- _SSPIWrapper.cs
- FlowLayoutSettings.cs
- SQLInt16.cs
- ControlBuilderAttribute.cs
- DesignerActionUIStateChangeEventArgs.cs
- PasswordTextContainer.cs
- DbParameterCollection.cs
- ZipPackagePart.cs
- DecimalConstantAttribute.cs
- TimeZone.cs
- MediaPlayerState.cs
- TargetConverter.cs
- ConfigUtil.cs
- ObjectDataSourceEventArgs.cs
- WhitespaceRule.cs
- FloaterParaClient.cs
- Environment.cs
- RawUIStateInputReport.cs
- XmlSchemaAny.cs
- MenuItem.cs
- SoapReflectionImporter.cs
- NativeMethods.cs
- DataServiceResponse.cs
- PropertySet.cs
- DerivedKeyCachingSecurityTokenSerializer.cs
- InfoCardRSACryptoProvider.cs
- X509Utils.cs
- XmlCDATASection.cs
- _ConnectOverlappedAsyncResult.cs
- ScriptResourceAttribute.cs
- Parameter.cs
- QilGenerator.cs
- EntityDataReader.cs
- COM2PropertyBuilderUITypeEditor.cs
- WebPartConnectionsCloseVerb.cs
- CacheChildrenQuery.cs
- DSACryptoServiceProvider.cs
- HtmlPageAdapter.cs
- GC.cs
- FormatVersion.cs
- DecryptRequest.cs
- PageClientProxyGenerator.cs
- StyleSelector.cs
- BrowserDefinition.cs
- WebPart.cs
- PrintingPermission.cs
- XPathNodeHelper.cs
- MemberAccessException.cs
- CookieProtection.cs
- MachineSettingsSection.cs
- DetailsViewUpdateEventArgs.cs
- SelectionGlyphBase.cs
- URLIdentityPermission.cs
- BoolLiteral.cs
- CanExecuteRoutedEventArgs.cs
- UInt64.cs
- WizardStepBase.cs
- RowUpdatedEventArgs.cs
- XmlElementList.cs
- GridViewColumn.cs
- DiscriminatorMap.cs
- HttpModuleCollection.cs