Class Student
public class Student : NotifyPropertyChangedBase, INotifyPropertyChanged, ICloneable
- Inheritance
-
Student
- Implements
- Inherited Members
- Extension Methods
Constructors
Student()
public Student()
Properties
Address
[DataGridColumn("2*")]
[Display(Name = "地址", GroupName = "基础信息")]
[Required]
public string Address { get; set; }
Property Value
Age
[Display(Name = "年龄", GroupName = "基础信息")]
[Required]
public int Age { get; set; }
Property Value
Class
[DataGridColumn("*")]
[Display(Name = "班级", GroupName = "基础信息")]
[Required]
public string Class { get; set; }
Property Value
Emall
[DataGridColumn("2*")]
[Display(Name = "邮箱", GroupName = "基础信息")]
[Required]
public string Emall { get; set; }
Property Value
IsEnbled
[Display(Name = "可用", GroupName = "其他信息")]
[Required]
public bool IsEnbled { get; set; }
Property Value
Name
[DataGridColumn("*")]
[Display(Name = "姓名", GroupName = "基础信息")]
[Required]
public string Name { get; set; }
Property Value
Score
[Display(Name = "分数", GroupName = "成绩信息")]
public double Score { get; set; }
Property Value
Tel
[DataGridColumn("2*")]
[Display(Name = "电话号码", GroupName = "基础信息")]
[Required]
[RegularExpression("^1[3|4|5|7|8][0-9]{9}$", ErrorMessage = "手机号码不合法!")]
public string Tel { get; set; }
Property Value
Time
[Display(Name = "时间", GroupName = "其他信息")]
[Required]
public DateTime Time { get; set; }
Property Value
Methods
Clone()
Creates a new object that is a copy of the current instance.
public object Clone()
Returns
- object
A new object that is a copy of this instance.
Random()
public static Student Random()
Returns
Randoms(int)
public static List<Student> Randoms(int c = 100)
Parameters
c
int