Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Data / System / Data / Sql / SqlFacetAttribute.cs / 1 / SqlFacetAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All Rights Reserved. // Information Contained Herein is Proprietary and Confidential. // //[....] //[....] //daltudov //[....] //beysims //[....] //vadimt //----------------------------------------------------------------------------- using System; namespace Microsoft.SqlServer.Server { [ AttributeUsage( AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.ReturnValue | AttributeTargets.Parameter, AllowMultiple = false, Inherited = false ) ] #if WINFSInternalOnly internal #else public #endif class SqlFacetAttribute: Attribute { private bool m_IsFixedLength; private int m_MaxSize; private int m_Scale; private int m_Precision; private bool m_IsNullable; // Is this a fixed size field? public bool IsFixedLength { get { return this.m_IsFixedLength; } set { this.m_IsFixedLength = value; } } // The maximum size of the field (in bytes or characters depending on the field type) // or -1 if the size can be unlimited. public int MaxSize { get { return this.m_MaxSize; } set { this.m_MaxSize = value; } } // Precision, only valid for numeric types. public int Precision { get { return this.m_Precision; } set { this.m_Precision = value; } } // Scale, only valid for numeric types. public int Scale { get { return this.m_Scale; } set { this.m_Scale = value; } } // Is this field nullable? public bool IsNullable { get { return this.m_IsNullable; } set { this.m_IsNullable = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All Rights Reserved. // Information Contained Herein is Proprietary and Confidential. // //[....] //[....] //daltudov //[....] //beysims //[....] //vadimt //----------------------------------------------------------------------------- using System; namespace Microsoft.SqlServer.Server { [ AttributeUsage( AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.ReturnValue | AttributeTargets.Parameter, AllowMultiple = false, Inherited = false ) ] #if WINFSInternalOnly internal #else public #endif class SqlFacetAttribute: Attribute { private bool m_IsFixedLength; private int m_MaxSize; private int m_Scale; private int m_Precision; private bool m_IsNullable; // Is this a fixed size field? public bool IsFixedLength { get { return this.m_IsFixedLength; } set { this.m_IsFixedLength = value; } } // The maximum size of the field (in bytes or characters depending on the field type) // or -1 if the size can be unlimited. public int MaxSize { get { return this.m_MaxSize; } set { this.m_MaxSize = value; } } // Precision, only valid for numeric types. public int Precision { get { return this.m_Precision; } set { this.m_Precision = value; } } // Scale, only valid for numeric types. public int Scale { get { return this.m_Scale; } set { this.m_Scale = value; } } // Is this field nullable? public bool IsNullable { get { return this.m_IsNullable; } set { this.m_IsNullable = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebDescriptionAttribute.cs
- Screen.cs
- httpstaticobjectscollection.cs
- ReadOnlyTernaryTree.cs
- AudioLevelUpdatedEventArgs.cs
- Classification.cs
- SecurityContext.cs
- ProfileManager.cs
- ElementsClipboardData.cs
- SqlDependencyListener.cs
- ConfigErrorGlyph.cs
- TemplateParser.cs
- _NegoStream.cs
- ConfigViewGenerator.cs
- PointValueSerializer.cs
- DialogResultConverter.cs
- NeutralResourcesLanguageAttribute.cs
- SharedPersonalizationStateInfo.cs
- NavigationWindow.cs
- CollectionEditVerbManager.cs
- MailMessageEventArgs.cs
- BlockCollection.cs
- CellConstantDomain.cs
- invalidudtexception.cs
- ApplyHostConfigurationBehavior.cs
- WebPartTracker.cs
- FocusWithinProperty.cs
- RenderOptions.cs
- QuadTree.cs
- HTMLTagNameToTypeMapper.cs
- MemberRelationshipService.cs
- QilLiteral.cs
- WaitHandle.cs
- InvalidFilterCriteriaException.cs
- Matrix.cs
- XmlParserContext.cs
- WorkflowWebHostingModule.cs
- activationcontext.cs
- TypeSemantics.cs
- SmtpTransport.cs
- ExtenderProvidedPropertyAttribute.cs
- SubpageParaClient.cs
- SchemaInfo.cs
- ResourceIDHelper.cs
- XmlDeclaration.cs
- CredentialSelector.cs
- StorageMappingItemLoader.cs
- TypeElement.cs
- OleDbException.cs
- NullRuntimeConfig.cs
- LZCodec.cs
- precedingsibling.cs
- WindowsStreamSecurityUpgradeProvider.cs
- SimpleTableProvider.cs
- CollectionBase.cs
- StatusBarItemAutomationPeer.cs
- StyleHelper.cs
- TimelineGroup.cs
- WindowsNonControl.cs
- WebCategoryAttribute.cs
- Unit.cs
- SchemaImporterExtensionElement.cs
- WindowsEditBox.cs
- StaticTextPointer.cs
- BamlLocalizationDictionary.cs
- XmlSerializerVersionAttribute.cs
- TreeViewItem.cs
- DialogResultConverter.cs
- BasicBrowserDialog.cs
- FormsAuthenticationUser.cs
- SqlMethodAttribute.cs
- ComboBoxAutomationPeer.cs
- XmlArrayItemAttribute.cs
- GenerateHelper.cs
- DisableDpiAwarenessAttribute.cs
- DocumentOrderComparer.cs
- Pkcs9Attribute.cs
- configsystem.cs
- MaterialGroup.cs
- DefaultEvaluationContext.cs
- DBCommand.cs
- PerformanceCounters.cs
- TdsValueSetter.cs
- IdentifierCreationService.cs
- UnsafeNativeMethods.cs
- WebPartConnectionCollection.cs
- SemaphoreSecurity.cs
- TypeExtension.cs
- BitmapVisualManager.cs
- XmlSchemaObjectCollection.cs
- AdRotator.cs
- SafeHandle.cs
- VideoDrawing.cs
- ContentElement.cs
- AsnEncodedData.cs
- ModuleBuilder.cs
- XamlPoint3DCollectionSerializer.cs
- AssemblyHash.cs
- Visual.cs
- WebColorConverter.cs