Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 4
 AutoSync Property
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2010/.NET Framework 4

Other versions are also available for the following:
.NET Framework Class Library
ColumnAttribute..::.AutoSync Property

Gets or sets the AutoSync enumeration.

Namespace:  System.Data.Linq.Mapping
Assembly:  System.Data.Linq (in System.Data.Linq.dll)
Visual Basic
Public Property AutoSync As AutoSync
    Get
    Set
C#
public AutoSync AutoSync { get; set; }
Visual C++
public:
property AutoSync AutoSync {
    AutoSync get ();
    void set (AutoSync value);
}
F#
member AutoSync : AutoSync with get, set

Property Value

Type: System.Data.Linq.Mapping..::.AutoSync
The AutoSync value.
Visual Basic
   <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
C#
    [Column(Storage="_EmployeeID", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
    public int EmployeeID
    {
        get
        {
            return this._EmployeeID;
        }
        set
        {
            if ((this._EmployeeID != value))
            {
                this.OnEmployeeIDChanging(value);
                this.SendPropertyChanging();
                this._EmployeeID = value;
                this.SendPropertyChanged("EmployeeID");
                this.OnEmployeeIDChanged();
            }
        }
    }

.NET Framework

Supported in: 4, 3.5

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Not helpful      Ralph Compton   |   Edit   |   Show History
What is this for exactly?
Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker