Table of Contents

Class Student

Namespace
HeBianGu.Base.WpfBase
Assembly
HeBianGu.Base.WpfBase.dll
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

string

Age

[Display(Name = "年龄", GroupName = "基础信息")]
[Required]
public int Age { get; set; }

Property Value

int

Class

[DataGridColumn("*")]
[Display(Name = "班级", GroupName = "基础信息")]
[Required]
public string Class { get; set; }

Property Value

string

Emall

[DataGridColumn("2*")]
[Display(Name = "邮箱", GroupName = "基础信息")]
[Required]
public string Emall { get; set; }

Property Value

string

IsEnbled

[Display(Name = "可用", GroupName = "其他信息")]
[Required]
public bool IsEnbled { get; set; }

Property Value

bool

Name

[DataGridColumn("*")]
[Display(Name = "姓名", GroupName = "基础信息")]
[Required]
public string Name { get; set; }

Property Value

string

Score

[Display(Name = "分数", GroupName = "成绩信息")]
public double Score { get; set; }

Property Value

double

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

string

Time

[Display(Name = "时间", GroupName = "其他信息")]
[Required]
public DateTime Time { get; set; }

Property Value

DateTime

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

Student

Randoms(int)

public static List<Student> Randoms(int c = 100)

Parameters

c int

Returns

List<Student>