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
- ActiveXHelper.cs
- Animatable.cs
- PathGeometry.cs
- TransportSecurityHelpers.cs
- PageContent.cs
- FigureParaClient.cs
- FlowLayoutPanel.cs
- SHA1Managed.cs
- Grant.cs
- StorageFunctionMapping.cs
- ReceiveContext.cs
- DataServiceConfiguration.cs
- CorePropertiesFilter.cs
- RemotingSurrogateSelector.cs
- StringCollection.cs
- SoapElementAttribute.cs
- DetailsViewPageEventArgs.cs
- CopyOfAction.cs
- Helper.cs
- M3DUtil.cs
- EngineSiteSapi.cs
- ReflectEventDescriptor.cs
- Logging.cs
- SafeArrayRankMismatchException.cs
- ToolboxCategory.cs
- TraceContext.cs
- DataRowCollection.cs
- VisualStyleElement.cs
- FileDetails.cs
- SqlWebEventProvider.cs
- SingleObjectCollection.cs
- FlowchartDesignerCommands.cs
- PointLight.cs
- MsmqIntegrationValidationBehavior.cs
- webeventbuffer.cs
- DataTransferEventArgs.cs
- RIPEMD160Managed.cs
- HtmlInputPassword.cs
- CustomWebEventKey.cs
- QueryCacheEntry.cs
- RemoteWebConfigurationHostServer.cs
- ToolStripItemEventArgs.cs
- FilterException.cs
- PermissionSetTriple.cs
- ManifestResourceInfo.cs
- GroupBox.cs
- Content.cs
- FontDialog.cs
- ProfileSection.cs
- MessageVersion.cs
- EntityDataSourceWizardForm.cs
- CompilerState.cs
- FontCollection.cs
- ContourSegment.cs
- WriteStateInfoBase.cs
- DebugViewWriter.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- DataGridViewCellCancelEventArgs.cs
- RowToFieldTransformer.cs
- PartitionResolver.cs
- WebPartConnectionsConfigureVerb.cs
- DeclarationUpdate.cs
- DrawingContext.cs
- documentation.cs
- CookieProtection.cs
- TextBox.cs
- ScriptingJsonSerializationSection.cs
- Win32.cs
- UInt16.cs
- SystemNetworkInterface.cs
- AudienceUriMode.cs
- PartialCachingControl.cs
- SqlFactory.cs
- Rect3D.cs
- AcceptorSessionSymmetricTransportSecurityProtocol.cs
- IRCollection.cs
- PackWebRequestFactory.cs
- Atom10ItemFormatter.cs
- RecordConverter.cs
- TransactionTraceIdentifier.cs
- HeaderedContentControl.cs
- Verify.cs
- PrintControllerWithStatusDialog.cs
- Int32EqualityComparer.cs
- CommandBindingCollection.cs
- DataSourceCache.cs
- XmlSchemaAll.cs
- Journaling.cs
- ResourceExpressionBuilder.cs
- FileDialog_Vista_Interop.cs
- IntegerValidatorAttribute.cs
- PolyLineSegmentFigureLogic.cs
- LookupBindingPropertiesAttribute.cs
- DataGridTablesFactory.cs
- Package.cs
- ShutDownListener.cs
- ToolStripDropTargetManager.cs
- DocumentViewerHelper.cs
- CodeTypeReferenceCollection.cs