Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DBConnectionString.cs
- DataBinder.cs
- ColorConvertedBitmap.cs
- AuthenticationModulesSection.cs
- DefaultValueTypeConverter.cs
- SettingsBase.cs
- RawMouseInputReport.cs
- Model3D.cs
- Configuration.cs
- ListViewItem.cs
- XmlImplementation.cs
- OdbcUtils.cs
- ListViewUpdateEventArgs.cs
- MenuItemCollection.cs
- InkCanvasSelection.cs
- AutomationPropertyInfo.cs
- InvokeHandlers.cs
- PromptBuilder.cs
- LayoutTable.cs
- Normalization.cs
- XmlSerializerFactory.cs
- MatrixAnimationUsingPath.cs
- ZipIOModeEnforcingStream.cs
- ApplicationInterop.cs
- XslTransform.cs
- SafeReversePInvokeHandle.cs
- FirstMatchCodeGroup.cs
- COAUTHINFO.cs
- WebHttpBindingElement.cs
- DSACryptoServiceProvider.cs
- DetailsViewCommandEventArgs.cs
- CapiSafeHandles.cs
- FilterQuery.cs
- ToolStripItemEventArgs.cs
- NetSectionGroup.cs
- SafeFindHandle.cs
- StorageEntityTypeMapping.cs
- SmiSettersStream.cs
- HotSpotCollection.cs
- SortFieldComparer.cs
- HashRepartitionStream.cs
- CodeAttributeArgumentCollection.cs
- EntityDataSourceChangingEventArgs.cs
- DataList.cs
- TransformerInfo.cs
- XmlTextReaderImpl.cs
- GenericAuthenticationEventArgs.cs
- LinqDataSourceStatusEventArgs.cs
- DbConnectionStringBuilder.cs
- LayoutInformation.cs
- JournalEntryStack.cs
- SafeNativeMethods.cs
- CalendarDataBindingHandler.cs
- CapabilitiesState.cs
- MarkupExtensionSerializer.cs
- TableLayoutStyleCollection.cs
- MobileErrorInfo.cs
- FontSourceCollection.cs
- NumberSubstitution.cs
- OutOfMemoryException.cs
- ListViewInsertedEventArgs.cs
- KeyedCollection.cs
- Visual.cs
- EllipseGeometry.cs
- BridgeDataReader.cs
- CachedFontFace.cs
- GlyphRun.cs
- PnrpPeerResolverBindingElement.cs
- ClientBuildManagerCallback.cs
- XmlSchemaSequence.cs
- WorkflowDesignerMessageFilter.cs
- RenderContext.cs
- InteropAutomationProvider.cs
- DataControlFieldCell.cs
- EtwTrace.cs
- StdRegProviderWrapper.cs
- SharedPersonalizationStateInfo.cs
- DataStreamFromComStream.cs
- WorkflowView.cs
- CompositeFontInfo.cs
- ContextInformation.cs
- EntityClientCacheEntry.cs
- RIPEMD160Managed.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- HealthMonitoringSectionHelper.cs
- ComponentResourceKeyConverter.cs
- ImageListStreamer.cs
- XmlDataLoader.cs
- DeleteIndexBinder.cs
- ProfileParameter.cs
- ALinqExpressionVisitor.cs
- RequestCacheValidator.cs
- _CommandStream.cs
- MarkerProperties.cs
- NamedObject.cs
- DirectoryInfo.cs
- AffineTransform3D.cs
- WebPartActionVerb.cs
- ContainerAction.cs
- EntryWrittenEventArgs.cs