Gets or sets the AutoSync enumeration.
Public Property AutoSync As AutoSync Get Set
public AutoSync AutoSync { get; set; }
public: property AutoSync AutoSync { AutoSync get (); void set (AutoSync value); }
member AutoSync : AutoSync with get, set
<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
[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(); } } }
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