Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Data / System / Data / Sql / SqlFacetAttribute.cs / 1305376 / 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 ) ] public 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
- Misc.cs
- HMACSHA256.cs
- DescendantQuery.cs
- X509CertificateCollection.cs
- WindowsMenu.cs
- Bidi.cs
- SelectedPathEditor.cs
- AuthorizationSection.cs
- DataGridViewComboBoxColumn.cs
- RegionInfo.cs
- ThreadStartException.cs
- OleDbPropertySetGuid.cs
- FileStream.cs
- ObjectListTitleAttribute.cs
- QueryPageSettingsEventArgs.cs
- CornerRadiusConverter.cs
- pingexception.cs
- xml.cs
- RichTextBoxAutomationPeer.cs
- ReverseQueryOperator.cs
- SignerInfo.cs
- Lasso.cs
- CapabilitiesState.cs
- InProcStateClientManager.cs
- EpmCustomContentDeSerializer.cs
- RequestQueue.cs
- SystemNetworkInterface.cs
- SqlCacheDependencyDatabaseCollection.cs
- JournalEntryListConverter.cs
- TileModeValidation.cs
- DataGridViewAutoSizeModeEventArgs.cs
- PointCollectionValueSerializer.cs
- bidPrivateBase.cs
- GradientStopCollection.cs
- MarkedHighlightComponent.cs
- IdnMapping.cs
- OleDbPropertySetGuid.cs
- DictionaryBase.cs
- DataSourceCache.cs
- DataContractSerializer.cs
- LabelLiteral.cs
- FullTextState.cs
- ColorConvertedBitmap.cs
- MenuItemBinding.cs
- PolicyChain.cs
- Rect.cs
- ViewBase.cs
- BigInt.cs
- ConnectionPoint.cs
- Pen.cs
- iisPickupDirectory.cs
- SystemFonts.cs
- MetadataCollection.cs
- Compiler.cs
- XmlComment.cs
- DBParameter.cs
- DataSourceSelectArguments.cs
- PagerStyle.cs
- MimeMapping.cs
- DataServiceContext.cs
- TemplateControlBuildProvider.cs
- StructuredType.cs
- _LoggingObject.cs
- PersonalizableAttribute.cs
- SingleObjectCollection.cs
- xmlsaver.cs
- FieldToken.cs
- Char.cs
- ProviderConnectionPoint.cs
- DoubleAnimation.cs
- ClientSession.cs
- PathFigure.cs
- IntegrationExceptionEventArgs.cs
- ExpressionVisitor.cs
- IteratorFilter.cs
- WrappedIUnknown.cs
- ContentElement.cs
- AVElementHelper.cs
- MobileSysDescriptionAttribute.cs
- SwitchElementsCollection.cs
- MimeTypeAttribute.cs
- QueryContinueDragEvent.cs
- ConfigurationPermission.cs
- ServiceModelExtensionCollectionElement.cs
- UTF8Encoding.cs
- XmlSchemaSubstitutionGroup.cs
- Command.cs
- PropertyMapper.cs
- MetaTableHelper.cs
- AttributeQuery.cs
- SelectedCellsChangedEventArgs.cs
- XmlAttributeCollection.cs
- ClientOptions.cs
- _AutoWebProxyScriptEngine.cs
- DocumentGrid.cs
- XmlNode.cs
- BrowsableAttribute.cs
- QilXmlWriter.cs
- AnimationStorage.cs
- RelationshipEnd.cs