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
- MouseActionValueSerializer.cs
- CodeMethodInvokeExpression.cs
- GeneralTransform2DTo3D.cs
- UserNameSecurityTokenAuthenticator.cs
- TableMethodGenerator.cs
- PipelineModuleStepContainer.cs
- SqlCommandBuilder.cs
- CustomCredentialPolicy.cs
- AtomServiceDocumentSerializer.cs
- ObjectQuery.cs
- MediaCommands.cs
- ConstNode.cs
- NullExtension.cs
- DataGrid.cs
- EventProxy.cs
- BinaryObjectWriter.cs
- DataObjectMethodAttribute.cs
- AtomMaterializer.cs
- EntityDataSourceDataSelection.cs
- GregorianCalendarHelper.cs
- CqlWriter.cs
- PolicyStatement.cs
- VarRemapper.cs
- ExpressionConverter.cs
- ToolZone.cs
- ScrollViewer.cs
- ValidatorCollection.cs
- DataObjectMethodAttribute.cs
- objectresult_tresulttype.cs
- ConstantProjectedSlot.cs
- WebControlsSection.cs
- ForceCopyBuildProvider.cs
- WindowsStartMenu.cs
- SQLMoneyStorage.cs
- DataGridLength.cs
- FindSimilarActivitiesVerb.cs
- NullExtension.cs
- AppSettingsExpressionBuilder.cs
- StrongNameIdentityPermission.cs
- TabControlAutomationPeer.cs
- Transform3D.cs
- IDQuery.cs
- XmlSubtreeReader.cs
- IndentTextWriter.cs
- DataGridViewCheckBoxCell.cs
- EventSourceCreationData.cs
- ElementHost.cs
- HtmlButton.cs
- MouseCaptureWithinProperty.cs
- BlurEffect.cs
- XmlSchemaSimpleTypeList.cs
- AnnotationHighlightLayer.cs
- TextWriter.cs
- UInt32Converter.cs
- UIPermission.cs
- XmlSchemaComplexContent.cs
- AnonymousIdentificationModule.cs
- SQLString.cs
- VerticalConnector.xaml.cs
- MetabaseServerConfig.cs
- Style.cs
- SelectedGridItemChangedEvent.cs
- DataGridViewSelectedColumnCollection.cs
- InternalDispatchObject.cs
- ServiceDebugBehavior.cs
- CompiledELinqQueryState.cs
- SerializationHelper.cs
- CallbackHandler.cs
- CultureTable.cs
- Executor.cs
- LogicalExpr.cs
- BehaviorEditorPart.cs
- WorkflowItemPresenter.cs
- ParseHttpDate.cs
- SafePEFileHandle.cs
- IPGlobalProperties.cs
- SqlConnectionFactory.cs
- SelectingProviderEventArgs.cs
- CryptoConfig.cs
- TextMarkerSource.cs
- AssemblyResourceLoader.cs
- StorageSetMapping.cs
- ApplicationInfo.cs
- LineInfo.cs
- SelectionBorderGlyph.cs
- HtmlShim.cs
- SchemaTableColumn.cs
- XPathAncestorIterator.cs
- NamedPipeTransportBindingElement.cs
- KoreanCalendar.cs
- smtpconnection.cs
- EndpointDiscoveryBehavior.cs
- Errors.cs
- WindowsFormsHelpers.cs
- ChangeBlockUndoRecord.cs
- XmlValidatingReaderImpl.cs
- UIElement.cs
- AsyncCompletedEventArgs.cs
- DragSelectionMessageFilter.cs
- ObjectListComponentEditor.cs