-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPerson.cs
41 lines (39 loc) · 1.29 KB
/
Person.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Developer Express Code Central Example:
// How to implement CRUD operations using XtraGrid and LinqServeModeSource
//
// This example demonstrates how to implement create, update and delete operations
// using XtraGrid and LinqServeModeSource.
// This example works with the standard
// SQL Northwind database.
//
// You can find sample updates and versions for different programming languages here:
// http://www.devexpress.com/example=E4498
using System;
namespace LinqServerModeSource {
class Person {
string firstName;
string secondName;
string comments;
public Person(string firstName, string secondName) {
this.firstName = firstName;
this.secondName = secondName;
comments = String.Empty;
}
public Person(string firstName, string secondName, string comments)
: this(firstName, secondName) {
this.comments = comments;
}
public string FirstName {
get { return firstName; }
set { firstName = value; }
}
public string SecondName {
get { return secondName; }
set { secondName = value; }
}
public string Comments {
get { return comments; }
set { comments = value; }
}
}
}