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
- GraphicsContext.cs
- FormViewPageEventArgs.cs
- ContractMapping.cs
- QueryStringConverter.cs
- DataControlCommands.cs
- AddInSegmentDirectoryNotFoundException.cs
- ColorConverter.cs
- XmlSortKey.cs
- Formatter.cs
- NoneExcludedImageIndexConverter.cs
- SelectionEditingBehavior.cs
- SiteIdentityPermission.cs
- CodeNamespaceCollection.cs
- WindowsListView.cs
- sqlcontext.cs
- CmsInterop.cs
- GradientStopCollection.cs
- WindowPattern.cs
- QueueSurrogate.cs
- TagPrefixInfo.cs
- ObjectNotFoundException.cs
- ZoneMembershipCondition.cs
- TextTreeTextElementNode.cs
- EditorZoneDesigner.cs
- DecimalAnimation.cs
- DirectoryInfo.cs
- DynamicObject.cs
- LogExtentCollection.cs
- CatalogPart.cs
- PipelineModuleStepContainer.cs
- ListViewGroupCollectionEditor.cs
- InputProcessorProfilesLoader.cs
- VariantWrapper.cs
- _CommandStream.cs
- ProfileBuildProvider.cs
- StrokeCollectionDefaultValueFactory.cs
- XmlCharType.cs
- ThrowHelper.cs
- CompensableActivity.cs
- control.ime.cs
- returneventsaver.cs
- Substitution.cs
- Token.cs
- GroupItem.cs
- EncoderNLS.cs
- WorkflowElementDialogWindow.xaml.cs
- SqlPersistenceProviderFactory.cs
- HiddenField.cs
- SqlCaseSimplifier.cs
- DataGridHeaderBorder.cs
- RectangleGeometry.cs
- Accessors.cs
- DocumentViewerBaseAutomationPeer.cs
- InvalidTimeZoneException.cs
- SqlConnectionString.cs
- SystemDiagnosticsSection.cs
- SqlCacheDependencyDatabase.cs
- Int64AnimationBase.cs
- SoapUnknownHeader.cs
- RunClient.cs
- XmlArrayItemAttribute.cs
- FieldToken.cs
- WindowsIdentity.cs
- StrokeNodeOperations2.cs
- printdlgexmarshaler.cs
- DataControlFieldHeaderCell.cs
- MenuItemBindingCollection.cs
- AutomationPeer.cs
- ListSortDescription.cs
- DataSourceComponent.cs
- TextServicesCompartment.cs
- SQLBoolean.cs
- FreezableCollection.cs
- RequestCacheManager.cs
- OpenTypeCommon.cs
- ClientConvert.cs
- DiagnosticsConfigurationHandler.cs
- ExceptionTranslationTable.cs
- Point3DKeyFrameCollection.cs
- HtmlInputCheckBox.cs
- Library.cs
- TableDetailsRow.cs
- DataGridViewComboBoxCell.cs
- DynamicDataRouteHandler.cs
- IndexedSelectQueryOperator.cs
- WindowsButton.cs
- XPathCompileException.cs
- SamlAuthenticationStatement.cs
- SymbolResolver.cs
- MediaTimeline.cs
- InstanceHandleReference.cs
- EventProviderTraceListener.cs
- Dump.cs
- WebRequestModuleElement.cs
- XmlSchemaInfo.cs
- DataGridViewSelectedRowCollection.cs
- Int32Collection.cs
- AccessDataSource.cs
- LocatorPart.cs
- XmlAttributeCache.cs