_productID;
}
set
{
if ((this._productID != value))
{
this._productID = value;
}
}
}
[Column(Name = "Name", Storage = "_productName", DBType = "nvarchar(50)")]
public string ProductName
{
get
{
return this._productName;
}
set
{
if ((this._productName != value))
{
this._productName = value;
}
}
}
[Column(Name = "SalesPersonID", Storage = "_salesPersonID", DBType = "int")]
public int SalesPerson
{
get
{
return this._salesPersonID;
}
set
{
if ((this._salesPersonID != value))
231
Part III: LINQ to SQL
{
this._salesPersonID = value;
}
}
}
[Column(Name = "FirstName", Storage = "_firstName", DBType = "nvarchar(50)")]
public string FirstName
{
get
{
return this._firstName;
}
set
{
if ((this._firstName != value))
{
this._firstName = value;
}
}
}
[Column(Name = "MiddleName", Storage = "_middleName", DBType = "nvarchar(50)")]
public string MiddleName
{
get
{
return this._middleName;
}
set
{
if ((this._middleName != value))
{
this._middleName = value;
}
}
}
[Column(Name = "LastName", Storage = "_lastName", DBType = "nvarchar(50)")]
public string LastName
{
get
{
return this.
Pages:
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378