This documentation is archived and is not being maintained.

ColumnAttribute.AutoSync Property

Gets or sets the AutoSync enumeration.

Namespace:  System.Data.Linq.Mapping
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

'Declaration
Public Property AutoSync As AutoSync
'Usage
Dim instance As ColumnAttribute 
Dim value As AutoSync 

value = instance.AutoSync

instance.AutoSync = value

Property Value

Type: System.Data.Linq.Mapping.AutoSync
The AutoSync value.

   <Column(Storage:="_EmployeeID", DbType:="Int", AutoSync:=AutoSync.OnInsert)> _
Public Property EmployeeID() As System.Nullable(Of Integer)
       Get 
           Return Me._EmployeeID
       End Get 
       Set(ByVal value As System.Nullable(Of Integer))
           If (Me._EmployeeID.Equals(value) = False) Then 
               If Me._Employee.HasLoadedOrAssignedValue Then 
                   Throw New System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException
               End If 
               Me.OnEmployeeIDChanging(value)
               Me.SendPropertyChanging()
               Me._EmployeeID = value
               Me.SendPropertyChanged("EmployeeID")
               Me.OnEmployeeIDChanged()
           End If 
       End Set 
   End Property

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5
Show: