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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OleServicesContext.cs
- EntryWrittenEventArgs.cs
- BitArray.cs
- WindowsToolbarItemAsMenuItem.cs
- QueuePathEditor.cs
- WSSecurityJan2004.cs
- DependencyPropertyHelper.cs
- FieldDescriptor.cs
- ReadOnlyMetadataCollection.cs
- TrayIconDesigner.cs
- OLEDB_Enum.cs
- DbParameterHelper.cs
- PrintDocument.cs
- XmlNamespaceMapping.cs
- BitmapPalettes.cs
- GroupBoxAutomationPeer.cs
- CustomCredentialPolicy.cs
- CheckPair.cs
- Range.cs
- ListViewUpdatedEventArgs.cs
- DataGridViewTextBoxEditingControl.cs
- Stacktrace.cs
- FocusManager.cs
- ArgumentElement.cs
- BulletChrome.cs
- BasicExpandProvider.cs
- mediapermission.cs
- ReaderWriterLockWrapper.cs
- DocumentPage.cs
- XhtmlBasicObjectListAdapter.cs
- BoolExpressionVisitors.cs
- PtsCache.cs
- CapabilitiesState.cs
- ActivityTypeResolver.xaml.cs
- VisualStyleElement.cs
- DocobjHost.cs
- StatusBar.cs
- Normalizer.cs
- ConfigPathUtility.cs
- Matrix.cs
- StoreItemCollection.cs
- TraceHwndHost.cs
- BitmapSizeOptions.cs
- SqlStatistics.cs
- DateTimeHelper.cs
- StyleBamlRecordReader.cs
- BaseTemplateBuildProvider.cs
- VerificationAttribute.cs
- TextBounds.cs
- DataObject.cs
- InvalidDocumentContentsException.cs
- ResourceAssociationTypeEnd.cs
- FunctionParameter.cs
- FileIOPermission.cs
- SynchronousChannel.cs
- StringSorter.cs
- ProtectedConfigurationSection.cs
- UnsafeNativeMethodsPenimc.cs
- UriTemplateTableMatchCandidate.cs
- Activity.cs
- WindowsUpDown.cs
- DataBoundControlAdapter.cs
- WebPartUtil.cs
- CanonicalizationDriver.cs
- XmlHierarchicalEnumerable.cs
- IFlowDocumentViewer.cs
- MDIControlStrip.cs
- AttachedAnnotationChangedEventArgs.cs
- RC2CryptoServiceProvider.cs
- LinkUtilities.cs
- RemotingAttributes.cs
- RecipientInfo.cs
- TreeNodeBindingCollection.cs
- InitialServerConnectionReader.cs
- FixedPage.cs
- SeekStoryboard.cs
- MessageBuilder.cs
- ExceptionUtil.cs
- SafeFileMappingHandle.cs
- SerializationStore.cs
- WebEventTraceProvider.cs
- CuspData.cs
- DebugInfoExpression.cs
- EndOfStreamException.cs
- StylusPointPropertyId.cs
- StylusPointProperties.cs
- ModelItemImpl.cs
- SqlAliaser.cs
- XPathPatternParser.cs
- HyperLinkColumn.cs
- ValidationErrorCollection.cs
- EncoderParameters.cs
- StoreItemCollection.cs
- mda.cs
- LambdaCompiler.Lambda.cs
- JsonWriter.cs
- HttpSysSettings.cs
- LookupNode.cs
- NullableBoolConverter.cs
- XmlHierarchyData.cs