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
- SqlDataRecord.cs
- KeyEventArgs.cs
- LineUtil.cs
- TimeSpanOrInfiniteValidator.cs
- GenericsNotImplementedException.cs
- DetailsViewDeletedEventArgs.cs
- StorageComplexTypeMapping.cs
- ToolboxDataAttribute.cs
- MeasureData.cs
- Rectangle.cs
- ReachSerializer.cs
- ElementHostAutomationPeer.cs
- VirtualPathProvider.cs
- ApplicationHost.cs
- CustomAttribute.cs
- BaseValidatorDesigner.cs
- AuthenticationModeHelper.cs
- HttpPostedFile.cs
- ServiceModelConfigurationElementCollection.cs
- InternalResources.cs
- SinglePageViewer.cs
- MailBnfHelper.cs
- InputLanguage.cs
- IPipelineRuntime.cs
- ReadOnlyDictionary.cs
- DataGridViewAutoSizeModeEventArgs.cs
- JapaneseLunisolarCalendar.cs
- Constraint.cs
- CircleHotSpot.cs
- TypedReference.cs
- DetailsView.cs
- SafeNativeMethods.cs
- hresults.cs
- DataGridLengthConverter.cs
- SqlBinder.cs
- ExternalCalls.cs
- RawUIStateInputReport.cs
- CurrentChangingEventManager.cs
- BreakRecordTable.cs
- AutomationPeer.cs
- DataGridViewHeaderCell.cs
- HttpModule.cs
- InkCanvasAutomationPeer.cs
- PageTheme.cs
- CodeAccessSecurityEngine.cs
- SafeNativeMethodsCLR.cs
- SoapSchemaMember.cs
- ValidationUtility.cs
- MessageEncodingBindingElementImporter.cs
- HostExecutionContextManager.cs
- CacheDependency.cs
- CdpEqualityComparer.cs
- CustomAttributeFormatException.cs
- DataDocumentXPathNavigator.cs
- TextTreeRootTextBlock.cs
- MachineSettingsSection.cs
- EventListener.cs
- SqlDataAdapter.cs
- SharedStatics.cs
- TagPrefixAttribute.cs
- BuildProvider.cs
- CallTemplateAction.cs
- WebPartConnectionsConnectVerb.cs
- sqlpipe.cs
- RuleInfoComparer.cs
- LoginDesigner.cs
- ISFTagAndGuidCache.cs
- PeerInvitationResponse.cs
- Vars.cs
- IsolatedStorageException.cs
- TemplateInstanceAttribute.cs
- DataGridViewCellCollection.cs
- XmlSignatureProperties.cs
- Typography.cs
- ConsumerConnectionPoint.cs
- PointLightBase.cs
- CroppedBitmap.cs
- QuaternionKeyFrameCollection.cs
- StandardMenuStripVerb.cs
- FormatConvertedBitmap.cs
- PolygonHotSpot.cs
- LinqDataView.cs
- SerializationException.cs
- ObjectTokenCategory.cs
- XmlTextAttribute.cs
- ScrollItemProviderWrapper.cs
- AnimationClock.cs
- WebServiceErrorEvent.cs
- MappingModelBuildProvider.cs
- PrefixQName.cs
- IntSecurity.cs
- AssemblyBuilder.cs
- GradientSpreadMethodValidation.cs
- BackgroundFormatInfo.cs
- HeaderCollection.cs
- QuotedStringWriteStateInfo.cs
- ApplyTemplatesAction.cs
- LongCountAggregationOperator.cs
- BigInt.cs
- ChooseAction.cs