Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- CurrencyManager.cs
- FontFamily.cs
- ListViewItem.cs
- EventMappingSettingsCollection.cs
- WindowsComboBox.cs
- DataGridTablesFactory.cs
- ProfilePropertyMetadata.cs
- DocumentOrderQuery.cs
- FontDifferentiator.cs
- Camera.cs
- PageSettings.cs
- ListViewGroup.cs
- FrugalList.cs
- InvalidAsynchronousStateException.cs
- FileSystemWatcher.cs
- SmtpSection.cs
- OSFeature.cs
- OptimizerPatterns.cs
- ChildChangedEventArgs.cs
- OptimisticConcurrencyException.cs
- TextElementEnumerator.cs
- Container.cs
- StatusBarDrawItemEvent.cs
- XmlComment.cs
- EntityDataSourceDesignerHelper.cs
- PointCollection.cs
- COSERVERINFO.cs
- Int32Rect.cs
- QilXmlReader.cs
- ArgumentsParser.cs
- HttpValueCollection.cs
- WindowsMenu.cs
- ListViewGroup.cs
- MailHeaderInfo.cs
- RadioButtonRenderer.cs
- WizardPanelChangingEventArgs.cs
- ConvertersCollection.cs
- HttpCachePolicyElement.cs
- OdbcCommand.cs
- IsolatedStorageFile.cs
- ProfileBuildProvider.cs
- SchemaNotation.cs
- ConfigsHelper.cs
- CryptoProvider.cs
- DocumentReference.cs
- RadioButton.cs
- Dispatcher.cs
- WebPartDescription.cs
- ThicknessAnimationUsingKeyFrames.cs
- DeferredReference.cs
- TaiwanCalendar.cs
- CodeTypeConstructor.cs
- NetworkAddressChange.cs
- BooleanKeyFrameCollection.cs
- DictionaryBase.cs
- ServiceModelEnhancedConfigurationElementCollection.cs
- EntityClientCacheKey.cs
- AppDomainUnloadedException.cs
- BitFlagsGenerator.cs
- EndpointPerformanceCounters.cs
- InputScope.cs
- PopupEventArgs.cs
- NumberEdit.cs
- MethodBuilderInstantiation.cs
- GZipDecoder.cs
- WebPartDisplayModeEventArgs.cs
- ModelUIElement3D.cs
- OdbcErrorCollection.cs
- PKCS1MaskGenerationMethod.cs
- XmlDownloadManager.cs
- CodePropertyReferenceExpression.cs
- Point3DCollection.cs
- Matrix3DValueSerializer.cs
- CodeSubDirectoriesCollection.cs
- FactoryId.cs
- XsltCompileContext.cs
- DataGridViewAutoSizeModeEventArgs.cs
- ComAwareEventInfo.cs
- AbandonedMutexException.cs
- SettingsPropertyValue.cs
- GraphicsContainer.cs
- StrongNameUtility.cs
- SettingsProviderCollection.cs
- UIElementParagraph.cs
- ProfileManager.cs
- X509RawDataKeyIdentifierClause.cs
- ContextQuery.cs
- DetailsViewPagerRow.cs
- TypeResolvingOptionsAttribute.cs
- ImageUrlEditor.cs
- Column.cs
- RecordsAffectedEventArgs.cs
- ConditionCollection.cs
- TTSEngineProxy.cs
- DbException.cs
- ToolStripGripRenderEventArgs.cs
- OpenTypeLayoutCache.cs
- GeometryDrawing.cs
- JournalNavigationScope.cs
- StylusDownEventArgs.cs