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
- DataViewSetting.cs
- StrokeNodeOperations2.cs
- FormsAuthenticationTicket.cs
- Size.cs
- TwoPhaseCommit.cs
- SmtpFailedRecipientsException.cs
- BamlRecords.cs
- SupportsEventValidationAttribute.cs
- Pair.cs
- SchemaNamespaceManager.cs
- XmlIterators.cs
- DataColumnCollection.cs
- ProfileService.cs
- TileBrush.cs
- nulltextcontainer.cs
- XamlSerializationHelper.cs
- SerializationTrace.cs
- XmlArrayAttribute.cs
- EventMap.cs
- FormatterServices.cs
- SequentialWorkflowRootDesigner.cs
- LinkedResourceCollection.cs
- sqlpipe.cs
- X509ChainElement.cs
- SQLMoney.cs
- Funcletizer.cs
- DataGridViewCellStyle.cs
- SiteMapProvider.cs
- ScaleTransform.cs
- LoadedOrUnloadedOperation.cs
- MarginCollapsingState.cs
- TypefaceMetricsCache.cs
- GeneralEndpointIdentity.cs
- XPathAncestorQuery.cs
- BitmapSourceSafeMILHandle.cs
- ComponentDispatcherThread.cs
- IPAddressCollection.cs
- DoubleLink.cs
- DescendantQuery.cs
- SmtpNegotiateAuthenticationModule.cs
- X509CertificateChain.cs
- Int64.cs
- ObjectDataSourceDesigner.cs
- SupportingTokenListenerFactory.cs
- querybuilder.cs
- StrokeCollection2.cs
- FullTrustAssembly.cs
- DataGridViewRowPrePaintEventArgs.cs
- Version.cs
- MultiPartWriter.cs
- basevalidator.cs
- UniqueIdentifierService.cs
- GPStream.cs
- DoubleCollectionValueSerializer.cs
- IDReferencePropertyAttribute.cs
- MembershipSection.cs
- CodeCastExpression.cs
- DefaultHttpHandler.cs
- EnumBuilder.cs
- MenuEventArgs.cs
- ColorContextHelper.cs
- StatusBar.cs
- BreakRecordTable.cs
- Transactions.cs
- FileStream.cs
- StringUtil.cs
- GridItemPattern.cs
- SafeLibraryHandle.cs
- DiscoveryClientDocuments.cs
- Char.cs
- NotImplementedException.cs
- DataSetUtil.cs
- WebPartZone.cs
- CultureTableRecord.cs
- ShapingWorkspace.cs
- AccessControlEntry.cs
- AccessText.cs
- TabPanel.cs
- XPathNodeList.cs
- ScalarOps.cs
- SqlCommand.cs
- DoubleLinkList.cs
- HeaderedItemsControl.cs
- ArrangedElementCollection.cs
- WMIGenerator.cs
- DocumentSchemaValidator.cs
- TemplateControlBuildProvider.cs
- TableParaClient.cs
- Page.cs
- XmlReflectionImporter.cs
- SystemDiagnosticsSection.cs
- ProxyHelper.cs
- Token.cs
- dsa.cs
- DataGridViewCellStyleConverter.cs
- XmlSchemaObjectTable.cs
- BStrWrapper.cs
- _DisconnectOverlappedAsyncResult.cs
- ConfigurationException.cs
- CodeMemberEvent.cs