Code:
/ FX-1434 / FX-1434 / 1.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
- WebServiceEndpoint.cs
- XmlDeclaration.cs
- KeyTime.cs
- ServicePointManagerElement.cs
- SystemColorTracker.cs
- StylusDownEventArgs.cs
- StringFunctions.cs
- ProviderConnectionPointCollection.cs
- MetadataArtifactLoaderFile.cs
- DefaultHttpHandler.cs
- Automation.cs
- Interlocked.cs
- FileUtil.cs
- DoubleAverageAggregationOperator.cs
- future.cs
- MouseCaptureWithinProperty.cs
- CodeEventReferenceExpression.cs
- SetIndexBinder.cs
- BindingWorker.cs
- DependencyPropertyAttribute.cs
- ServiceMetadataContractBehavior.cs
- CacheOutputQuery.cs
- WebCategoryAttribute.cs
- TypefaceCollection.cs
- RepeaterCommandEventArgs.cs
- CheckBoxFlatAdapter.cs
- RequestCachePolicy.cs
- SafeProcessHandle.cs
- DurableInstanceProvider.cs
- PlainXmlDeserializer.cs
- ListItemCollection.cs
- Grant.cs
- FileChangesMonitor.cs
- propertytag.cs
- SmtpDateTime.cs
- ConfigXmlCDataSection.cs
- SystemWebCachingSectionGroup.cs
- XPathPatternBuilder.cs
- QilTypeChecker.cs
- HttpResponseInternalWrapper.cs
- Accessible.cs
- InfoCardClaim.cs
- FloaterBaseParaClient.cs
- EntityParameterCollection.cs
- EventWaitHandle.cs
- BaseCodeDomTreeGenerator.cs
- Style.cs
- MaskInputRejectedEventArgs.cs
- PropertyGridEditorPart.cs
- XamlSerializationHelper.cs
- ListViewAutomationPeer.cs
- Bold.cs
- DetailsViewDeletedEventArgs.cs
- SvcMapFile.cs
- WindowsAuthenticationEventArgs.cs
- AdjustableArrowCap.cs
- XmlNode.cs
- AttachedPropertyBrowsableAttribute.cs
- DataException.cs
- DataGridViewCellStyleChangedEventArgs.cs
- RulePatternOps.cs
- MergeFailedEvent.cs
- DataSourceXmlAttributeAttribute.cs
- PeerApplication.cs
- MsmqIntegrationOutputChannel.cs
- XmlDataSource.cs
- AggregateNode.cs
- RegisteredArrayDeclaration.cs
- PassportAuthenticationEventArgs.cs
- NetworkStream.cs
- ICspAsymmetricAlgorithm.cs
- EndpointReference.cs
- StrokeDescriptor.cs
- Model3D.cs
- StateBag.cs
- Ticks.cs
- IPCCacheManager.cs
- LoginUtil.cs
- CancelEventArgs.cs
- DocumentDesigner.cs
- ZipFileInfoCollection.cs
- ProfileProvider.cs
- WizardStepBase.cs
- AppDomain.cs
- HostingEnvironmentSection.cs
- DPCustomTypeDescriptor.cs
- RoutedUICommand.cs
- WorkflowTransactionOptions.cs
- DataGridViewLinkColumn.cs
- XsdDataContractImporter.cs
- ToolStripRendererSwitcher.cs
- EntityContainerEntitySet.cs
- InputMethodStateChangeEventArgs.cs
- OperationResponse.cs
- EntitySqlQueryBuilder.cs
- AttributeCollection.cs
- ConfigXmlWhitespace.cs
- BlockUIContainer.cs
- SchemaObjectWriter.cs
- __Filters.cs