Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / CompMod / System / ComponentModel / Design / Data / DesignerDataColumn.cs / 1 / DesignerDataColumn.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel.Design.Data { using System; using System.Data; ////// Represents a single column of a table or view in a data connection. A /// collection of this type is returned from the DesignerDataTable.Columns /// and DesignerDataView.Columns properties. /// public sealed class DesignerDataColumn { private DbType _dataType; private object _defaultValue; private bool _identity; private int _length; private string _name; private bool _nullable; private int _precision; private bool _primaryKey; private int _scale; ////// public DesignerDataColumn(string name, DbType dataType) : this(name, dataType, null, false, false, false, -1, -1, -1) { } ////// public DesignerDataColumn(string name, DbType dataType, object defaultValue) : this(name, dataType, defaultValue, false, false, false, -1, -1, -1) { } ////// public DesignerDataColumn(string name, DbType dataType, object defaultValue, bool identity, bool nullable, bool primaryKey, int precision, int scale, int length) { _dataType = dataType; _defaultValue = defaultValue; _identity = identity; _length = length; _name = name; _nullable = nullable; _precision = precision; _primaryKey = primaryKey; _scale = scale; } ////// The type of the column. /// public DbType DataType { get { return _dataType; } } ////// The default value of this column. /// public object DefaultValue { get { return _defaultValue; } } ////// Whether this column is an identity column. /// public bool Identity { get { return _identity; } } ////// Returns the length of the column. /// public int Length { get { return _length; } } ////// The name of the column. /// public string Name { get { return _name; } } ////// Whether this column can contain nulls. /// public bool Nullable { get { return _nullable; } } ////// Returns the precision of the column. /// public int Precision { get { return _precision; } } ////// Whether this column is part of the primary key of the table it is contained in. /// public bool PrimaryKey { get { return _primaryKey; } } ////// Returns the scale of the column. /// public int Scale { get { return _scale; } } } } // 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
- MergablePropertyAttribute.cs
- BamlLocalizabilityResolver.cs
- ToolStripLocationCancelEventArgs.cs
- SecurityContext.cs
- ListDictionary.cs
- ColorContext.cs
- XmlDataSource.cs
- ExpressionBuilderCollection.cs
- Version.cs
- TableLayoutSettings.cs
- BaseTemplateCodeDomTreeGenerator.cs
- OdbcDataAdapter.cs
- SemanticAnalyzer.cs
- DataGridView.cs
- X509CertificateValidationMode.cs
- CheckBoxField.cs
- SoapHelper.cs
- GestureRecognizer.cs
- MemberPath.cs
- XmlObjectSerializerContext.cs
- PageHandlerFactory.cs
- WindowsStartMenu.cs
- XPathScanner.cs
- NamedPermissionSet.cs
- VirtualPathProvider.cs
- OuterGlowBitmapEffect.cs
- CutCopyPasteHelper.cs
- Utils.cs
- WorkflowDebuggerSteppingAttribute.cs
- SecurityCriticalDataForSet.cs
- RangeValidator.cs
- BindingExpressionBase.cs
- FixedSOMLineRanges.cs
- DataGridViewBindingCompleteEventArgs.cs
- MethodBuilderInstantiation.cs
- ServiceModelDictionary.cs
- ResolveDuplexCD1AsyncResult.cs
- listitem.cs
- ExpressionVisitorHelpers.cs
- PageAsyncTask.cs
- PropertyDescriptorCollection.cs
- MergeLocalizationDirectives.cs
- KeyManager.cs
- StagingAreaInputItem.cs
- InfoCardArgumentException.cs
- CryptoApi.cs
- followingsibling.cs
- DataGridViewRowEventArgs.cs
- TemplateControl.cs
- RulePatternOps.cs
- TrackingProfileCache.cs
- StructuredTypeInfo.cs
- WeakReadOnlyCollection.cs
- CachedTypeface.cs
- CollectionChangeEventArgs.cs
- COMException.cs
- ResourceDefaultValueAttribute.cs
- ReferentialConstraint.cs
- GridPattern.cs
- Regex.cs
- OperandQuery.cs
- SQLString.cs
- StorageAssociationTypeMapping.cs
- Pair.cs
- InputLanguageCollection.cs
- ProtectedConfiguration.cs
- StrongNameKeyPair.cs
- InkPresenterAutomationPeer.cs
- AffineTransform3D.cs
- Transactions.cs
- Rotation3DKeyFrameCollection.cs
- ErrorHandler.cs
- MexNamedPipeBindingCollectionElement.cs
- SoapTransportImporter.cs
- HelpEvent.cs
- ContainerParaClient.cs
- PropagatorResult.cs
- MulticastDelegate.cs
- StringToken.cs
- GPRECTF.cs
- SafeNativeMethods.cs
- DataListItemEventArgs.cs
- itemelement.cs
- MouseWheelEventArgs.cs
- MembershipSection.cs
- VerticalAlignConverter.cs
- AllMembershipCondition.cs
- FixedDocumentPaginator.cs
- FontStyle.cs
- TraceLog.cs
- SqlProviderManifest.cs
- Panel.cs
- TypeUtils.cs
- PersonalizationProvider.cs
- APCustomTypeDescriptor.cs
- FilterableAttribute.cs
- HashHelper.cs
- ServiceHttpHandlerFactory.cs
- TreeWalkHelper.cs
- PrimitiveCodeDomSerializer.cs