Table of Contents

Class Student

Namespace
H.Data.Test
Assembly
H.Data.Test.dll
public class Student : BindableBase, INotifyPropertyChanged, ICloneable
Inheritance
Student
Implements
Inherited Members
Extension Methods

Constructors

Student()

public Student()

Properties

Address

[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

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

Property Value

string

Emall

[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

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

Property Value

string

Score

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

Property Value

double

Tag

[Display(Name = "标签", GroupName = "基础信息")]
[Required]
public string Tag { get; set; }

Property Value

string

Tel

[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 Students Randoms(int c = 100)

Parameters

c int

Returns

Students