Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntity / System / Data / Map / ViewGeneration / Utils / ExceptionHelpers.cs / 2 / ExceptionHelpers.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Text; using System.Data.Mapping.ViewGeneration.Structures; using System.Diagnostics; using System.Data.Common.Utils; namespace System.Data.Mapping.ViewGeneration.Utils { // Miscellaneous helper routines for generating mapping exceptions internal static class ExceptionHelpers { // effects: if condition is false, throws an InvalidOperation // exception with resourceMmessage that is looked up in the resources internal static void CheckAndThrowRes(bool condition, FuncformatMessage) { if (condition == false) { StringBuilder builder = new StringBuilder(); builder.Append(System.Data.Entity.Strings.ViewGen_Internal_Error); builder.AppendLine(formatMessage()); throw EntityUtil.InvalidOperation(builder.ToString()); } } // effects: if condition is false, throws an InvalidOperation // exception with a message where the resourceFormatString is looked up in // the resources internal static void CheckAndThrowResArgs(bool condition, Func
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RenderData.cs
- Relationship.cs
- AsymmetricCryptoHandle.cs
- RuntimeArgumentHandle.cs
- MimeTypeAttribute.cs
- Nodes.cs
- CompositeDataBoundControl.cs
- Ray3DHitTestResult.cs
- Effect.cs
- NavigationHelper.cs
- MappingException.cs
- XPathChildIterator.cs
- NameTable.cs
- DesignerMetadata.cs
- BitmapEffectCollection.cs
- Point4DConverter.cs
- AttachedProperty.cs
- HttpServerVarsCollection.cs
- QuadraticBezierSegment.cs
- ReadOnlyDictionary.cs
- EntityDataSourceDesignerHelper.cs
- RegexCode.cs
- RolePrincipal.cs
- ProxyWebPart.cs
- CacheForPrimitiveTypes.cs
- RequestFactory.cs
- SqlProfileProvider.cs
- DataGridCellsPanel.cs
- QuaternionRotation3D.cs
- AuthenticatedStream.cs
- HierarchicalDataSourceControl.cs
- AccessedThroughPropertyAttribute.cs
- XmlAttributes.cs
- SafeFreeMibTable.cs
- ComponentEvent.cs
- __Filters.cs
- LinkLabel.cs
- indexingfiltermarshaler.cs
- SafeHandle.cs
- EntryPointNotFoundException.cs
- InstanceBehavior.cs
- CodeLinePragma.cs
- BindingMemberInfo.cs
- CustomErrorCollection.cs
- CompensationToken.cs
- XsdDuration.cs
- InteropTrackingRecord.cs
- Errors.cs
- VirtualPathProvider.cs
- UniqueConstraint.cs
- SolidBrush.cs
- LinearKeyFrames.cs
- ReturnValue.cs
- DataException.cs
- VideoDrawing.cs
- HtmlInputSubmit.cs
- AllMembershipCondition.cs
- JsonCollectionDataContract.cs
- ResponseBodyWriter.cs
- StructuralType.cs
- RangeBaseAutomationPeer.cs
- CounterCreationDataCollection.cs
- safex509handles.cs
- ResourceContainer.cs
- SByte.cs
- InstallerTypeAttribute.cs
- TypeDependencyAttribute.cs
- EntityDataSourceWrapper.cs
- DataPagerFieldCollection.cs
- BitSet.cs
- EntityReference.cs
- ReversePositionQuery.cs
- ReturnValue.cs
- XmlWellformedWriter.cs
- EdgeProfileValidation.cs
- PolygonHotSpot.cs
- CatalogPartCollection.cs
- LongTypeConverter.cs
- ToolStripMenuItemDesigner.cs
- SoapSchemaMember.cs
- SmiEventSink.cs
- XmlProcessingInstruction.cs
- Win32Native.cs
- ViewStateModeByIdAttribute.cs
- SiteMembershipCondition.cs
- FormViewCommandEventArgs.cs
- Soap12ServerProtocol.cs
- TextTreeObjectNode.cs
- EntityAdapter.cs
- LambdaValue.cs
- shaper.cs
- FloatUtil.cs
- DataGridViewColumnConverter.cs
- Console.cs
- BasicExpressionVisitor.cs
- Assembly.cs
- LocalIdCollection.cs
- XmlSchemaExporter.cs
- NativeMethodsCLR.cs
- ChangeNode.cs