Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- PeerApplicationLaunchInfo.cs
- MetadataCacheItem.cs
- RuleSettings.cs
- BitmapScalingModeValidation.cs
- Missing.cs
- ApplicationManager.cs
- OutputCacheSettings.cs
- ExtendedProperty.cs
- GeneralTransform3D.cs
- TransactionalPackage.cs
- View.cs
- LineGeometry.cs
- XmlFormatWriterGenerator.cs
- GenerateScriptTypeAttribute.cs
- BufferedStream2.cs
- HtmlHistory.cs
- backend.cs
- XamlHttpHandlerFactory.cs
- DataGridViewAutoSizeModeEventArgs.cs
- GZipDecoder.cs
- HashRepartitionStream.cs
- NumericUpDownAcceleration.cs
- DataExchangeServiceBinder.cs
- StringReader.cs
- TraceHandlerErrorFormatter.cs
- QueryPageSettingsEventArgs.cs
- PackUriHelper.cs
- GlyphTypeface.cs
- XPathNodeInfoAtom.cs
- SerializationAttributes.cs
- BaseValidatorDesigner.cs
- WindowsNonControl.cs
- NativeMethods.cs
- NullableDecimalSumAggregationOperator.cs
- Splitter.cs
- Operator.cs
- PropagationProtocolsTracing.cs
- PenLineJoinValidation.cs
- CalloutQueueItem.cs
- PerformanceCountersElement.cs
- ImageAttributes.cs
- GPPOINTF.cs
- SqlMethods.cs
- MarkupCompiler.cs
- ParameterCollection.cs
- ProcessHostConfigUtils.cs
- ResourceBinder.cs
- ChangeTracker.cs
- _BaseOverlappedAsyncResult.cs
- TextSelectionHighlightLayer.cs
- AnnotationMap.cs
- StringValidatorAttribute.cs
- PerformanceCounterManager.cs
- DataRowCollection.cs
- VisualStyleTypesAndProperties.cs
- WebProxyScriptElement.cs
- DataSetMappper.cs
- UnauthorizedAccessException.cs
- AsyncResult.cs
- ConnectionPoint.cs
- BindingValueChangedEventArgs.cs
- TrackingRecord.cs
- Adorner.cs
- OwnerDrawPropertyBag.cs
- invalidudtexception.cs
- RowUpdatedEventArgs.cs
- ReadOnlyHierarchicalDataSource.cs
- SmtpAuthenticationManager.cs
- DSASignatureFormatter.cs
- XmlDataImplementation.cs
- RectangleConverter.cs
- CodeTryCatchFinallyStatement.cs
- ByteStreamGeometryContext.cs
- DataGridRelationshipRow.cs
- BamlRecords.cs
- XmlSchemaExternal.cs
- returneventsaver.cs
- AllMembershipCondition.cs
- FillRuleValidation.cs
- DocumentGrid.cs
- TextBoxLine.cs
- SafeNativeHandle.cs
- EncryptedXml.cs
- WebHeaderCollection.cs
- SspiWrapper.cs
- AdCreatedEventArgs.cs
- SqlDataSourceConfigureFilterForm.cs
- OptimizedTemplateContentHelper.cs
- XmlSchemaGroup.cs
- SimpleNameService.cs
- PageSettings.cs
- OdbcHandle.cs
- RoleManagerEventArgs.cs
- GCHandleCookieTable.cs
- MobileControlsSectionHandler.cs
- GridViewColumnCollection.cs
- ReturnType.cs
- ObjectListComponentEditor.cs
- XamlTypeMapper.cs
- SmtpNegotiateAuthenticationModule.cs