Student
<!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->
[Serializable]
public
partial
class
Student:ISmartEntity
{
#region
ForceStaticCheck
public
const
string
TableName
=
"
Student
"
;
public
const
string
_ID
=
"
ID
"
;
public
const
string
_Name
=
"
Name
"
;
public
const
string
_Age
=
"
Age
"
;
public
const
string
_MentorID
=
"
MentorID
"
;
public
const
string
_Email
=
"
Email
"
;
public
const
string
_IsBoy
=
"
IsBoy
"
;
#endregion
#region
Property
#region
ID
private
System.Int32m_ID
=
0
;
public
System.Int32ID
{
get
{
return
this
.m_ID;
}
set
{
if
(
!
this
.dirtyColumnList.Contains(
"
ID
"
))
{
this
.dirtyColumnList.Add(
"
ID
"
);
}
this
.m_ID
=
value;
}
}
#endregion
#region
Name
private
System.Stringm_Name
=
""
;
public
System.StringName
{
get
{
return
this
.m_Name;
}
set
{
if
(
!
this
.dirtyColumnList.Contains(
"
Name
"
))
{
this
.dirtyColumnList.Add(
"
Name
"
);
}
this
.m_Name
=
value;
}
}
#endregion
#region
Age
private
System.Int32m_Age
=
0
;
public
System.Int32Age
{
get
{
return
this
.m_Age;
}
set
{
if
(
!
this
.dirtyColumnList.Contains(
"
Age
"
))
{
this
.dirtyColumnList.Add(
"
Age
"
);
}
this
.m_Age
=
value;
}
}
#endregion
#region
MentorID
private
System.Int32m_MentorID
=
0
;
public
System.Int32MentorID
{
get
{
return
this
.m_MentorID;
}
set
{
if
(
!
this
.dirtyColumnList.Contains(
"
MentorID
"
))
{
this
.dirtyColumnList.Add(
"
MentorID
"
);
}
this
.m_MentorID
=
value;
}
}
#endregion
#region
Email
private
System.Stringm_Email
=
""
;
public
System.StringEmail
{
get
{
return
this
.m_Email;
}
set
{
if
(
!
this
.dirtyColumnList.Contains(
"
Email
"
))
{
this
.dirtyColumnList.Add(
"
Email
"
);
}
this
.m_Email
=
value;
}
}
#endregion
#region
IsBoy
private
System.Booleanm_IsBoy
=
false
;
public
System.BooleanIsBoy
{
get
{
return
this
.m_IsBoy;
}
set
{
if
(
!
this
.dirtyColumnList.Contains(
"
IsBoy
"
))
{
this
.dirtyColumnList.Add(
"
IsBoy
"
);
}
this
.m_IsBoy
=
value;
}
}
#endregion
#endregion
#region
ISmartEntitymembers
#region
DirtyColumnList
[NonSerialized]
private
IList
<
string
>
dirtyColumnList
=
new
List
<
string
>
();
public
IList
<
string
>
DirtyColumnList
{
get
{
return
dirtyColumnList;}
}
#endregion
#region
Clean
public
void
Clean()
{
this
.dirtyColumnList.Clear();
}
#endregion