Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HttpPostedFile.cs
- MLangCodePageEncoding.cs
- HostedHttpContext.cs
- DataContract.cs
- Debugger.cs
- RadioButtonBaseAdapter.cs
- AQNBuilder.cs
- SafeBitVector32.cs
- CellParagraph.cs
- RC2.cs
- SizeKeyFrameCollection.cs
- SessionSymmetricMessageSecurityProtocolFactory.cs
- HostingEnvironmentSection.cs
- PersonalizableTypeEntry.cs
- AdvancedBindingPropertyDescriptor.cs
- SubpageParagraph.cs
- RemoteWebConfigurationHostStream.cs
- ProcessThreadCollection.cs
- MarkupCompilePass2.cs
- HttpsChannelFactory.cs
- Cloud.cs
- BaseCollection.cs
- HtmlInputText.cs
- OutputCacheProfile.cs
- DataServiceHost.cs
- StructuralCache.cs
- EventRouteFactory.cs
- Popup.cs
- securitycriticaldataformultiplegetandset.cs
- IntSecurity.cs
- XamlStream.cs
- RenderData.cs
- __FastResourceComparer.cs
- MsmqIntegrationSecurity.cs
- PropertyTabChangedEvent.cs
- WebPartManagerInternals.cs
- ToolStripSeparatorRenderEventArgs.cs
- AmbientLight.cs
- ImageInfo.cs
- ActivityFunc.cs
- Action.cs
- WebPartsSection.cs
- DataObjectCopyingEventArgs.cs
- Serializer.cs
- DataGridLength.cs
- CommonRemoteMemoryBlock.cs
- LoadedOrUnloadedOperation.cs
- CacheMode.cs
- PauseStoryboard.cs
- TreeNodeConverter.cs
- FlowPosition.cs
- SID.cs
- RectangleF.cs
- TraceContextRecord.cs
- CorrelationService.cs
- SelectionRange.cs
- SettingsProviderCollection.cs
- ParserOptions.cs
- DynamicRenderer.cs
- SqlDataSourceSelectingEventArgs.cs
- Span.cs
- PairComparer.cs
- TemplateXamlParser.cs
- PropertyChange.cs
- SqlBooleanMismatchVisitor.cs
- PersonalizableAttribute.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- DataGridColumnStyleMappingNameEditor.cs
- ShaperBuffers.cs
- DynamicMetaObjectBinder.cs
- DesignTimeParseData.cs
- EventKeyword.cs
- XmlParserContext.cs
- ArrayWithOffset.cs
- ListSortDescription.cs
- Parser.cs
- ContractComponent.cs
- CommandPlan.cs
- TextEditorTables.cs
- XmlTextReaderImplHelpers.cs
- GeneralTransform.cs
- MouseEvent.cs
- DayRenderEvent.cs
- WhiteSpaceTrimStringConverter.cs
- HttpRequestBase.cs
- PriorityChain.cs
- SizeAnimationClockResource.cs
- ValueConversionAttribute.cs
- BindingMAnagerBase.cs
- __Filters.cs
- XsdBuilder.cs
- BitmapEffectInputData.cs
- ToolboxItemAttribute.cs
- DesignOnlyAttribute.cs
- PrintPreviewDialog.cs
- TaskFileService.cs
- SmtpException.cs
- ToolStripLocationCancelEventArgs.cs
- MarkedHighlightComponent.cs
- ChameleonKey.cs