Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Common / EntitySql / Parameter.cs / 1 / Parameter.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backup [....] //--------------------------------------------------------------------- namespace System.Data.Common.EntitySql { using System; using System.Globalization; using System.Collections; using System.Collections.Generic; ////// represents an ast parameter node /// internal sealed class Parameter : Expr { private string _name; ////// initializes parameter /// /// /// /// ////// internal Parameter( string parameterName, string query, int inputPos ) : base(query, inputPos) { _name = parameterName.Substring(1); // // valid parameter format is: @({LETTER})(_|{LETTER}|{DIGIT})* // if (_name.StartsWith("_", StringComparison.OrdinalIgnoreCase) || Char.IsDigit(_name, 0)) { throw EntityUtil.EntitySqlError(ErrCtx, System.Data.Entity.Strings.InvalidParameterFormat(_name)); } } ///Thrown if the parameter name does not conform to the expected format ////// returns parameter parameterName (without @ sign) /// internal string Name { get { return _name; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backup [....] //--------------------------------------------------------------------- namespace System.Data.Common.EntitySql { using System; using System.Globalization; using System.Collections; using System.Collections.Generic; ////// represents an ast parameter node /// internal sealed class Parameter : Expr { private string _name; ////// initializes parameter /// /// /// /// ////// internal Parameter( string parameterName, string query, int inputPos ) : base(query, inputPos) { _name = parameterName.Substring(1); // // valid parameter format is: @({LETTER})(_|{LETTER}|{DIGIT})* // if (_name.StartsWith("_", StringComparison.OrdinalIgnoreCase) || Char.IsDigit(_name, 0)) { throw EntityUtil.EntitySqlError(ErrCtx, System.Data.Entity.Strings.InvalidParameterFormat(_name)); } } ///Thrown if the parameter name does not conform to the expected format ////// returns parameter parameterName (without @ sign) /// internal string Name { get { return _name; } } } } // 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
- StrongNameUtility.cs
- ViewLoader.cs
- DashStyle.cs
- MruCache.cs
- StructuredTypeEmitter.cs
- _BasicClient.cs
- OracleBFile.cs
- TextProviderWrapper.cs
- WebPartAddingEventArgs.cs
- SchemaTableOptionalColumn.cs
- ConnectionPointCookie.cs
- ModuleBuilder.cs
- X509CertificateCollection.cs
- PeerToPeerException.cs
- ValidationSummary.cs
- DbBuffer.cs
- CorrelationManager.cs
- StringValidatorAttribute.cs
- RegexMatchCollection.cs
- DesignerActionKeyboardBehavior.cs
- CompiledRegexRunnerFactory.cs
- ValidationEventArgs.cs
- ScriptIgnoreAttribute.cs
- ManagementPath.cs
- HandlerMappingMemo.cs
- Content.cs
- SHA384.cs
- HttpCachePolicy.cs
- CellNormalizer.cs
- Function.cs
- BackgroundFormatInfo.cs
- AssemblyInfo.cs
- RowUpdatedEventArgs.cs
- FeatureAttribute.cs
- CreateUserWizardStep.cs
- ProfileService.cs
- DrawingState.cs
- Pkcs9Attribute.cs
- ProtocolsSection.cs
- TimerElapsedEvenArgs.cs
- StrokeRenderer.cs
- Base64Decoder.cs
- TreeView.cs
- BoolLiteral.cs
- StyleTypedPropertyAttribute.cs
- XmlSchemaSimpleContentExtension.cs
- TypeSemantics.cs
- ButtonAutomationPeer.cs
- TypeConverterHelper.cs
- DataGridViewCellMouseEventArgs.cs
- XamlGridLengthSerializer.cs
- IpcChannelHelper.cs
- WebBrowsableAttribute.cs
- ImpersonateTokenRef.cs
- PaintEvent.cs
- ComponentCollection.cs
- Helper.cs
- XmlObjectSerializerReadContextComplex.cs
- SoapServerMethod.cs
- ECDiffieHellman.cs
- XsdDateTime.cs
- ThreadSafeList.cs
- HtmlListAdapter.cs
- WindowsNonControl.cs
- DataGridViewCellValidatingEventArgs.cs
- VBIdentifierNameEditor.cs
- CompilationUnit.cs
- GridViewDeleteEventArgs.cs
- SqlDataSourceDesigner.cs
- BamlRecordReader.cs
- SourceChangedEventArgs.cs
- InvalidEnumArgumentException.cs
- WebPartVerb.cs
- XmlExtensionFunction.cs
- ConfigurationProperty.cs
- SortAction.cs
- RectangleConverter.cs
- EventMappingSettings.cs
- FusionWrap.cs
- ExtensibleClassFactory.cs
- OrCondition.cs
- SuppressIldasmAttribute.cs
- PackagePart.cs
- BCryptSafeHandles.cs
- StringExpressionSet.cs
- Knowncolors.cs
- TableProvider.cs
- ExpandCollapseIsCheckedConverter.cs
- coordinatorscratchpad.cs
- MissingManifestResourceException.cs
- WindowsButton.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- GeneratedCodeAttribute.cs
- MemoryFailPoint.cs
- printdlgexmarshaler.cs
- DetailsViewUpdateEventArgs.cs
- __ConsoleStream.cs
- Constraint.cs
- MenuRendererStandards.cs
- XmlArrayItemAttributes.cs