8,493
社区成员




StudentMangerDataContext db = new StudentMangerDataContext();
var Data = from s in db.sp_SelectStudent() select s;
[Function(Name="dbo.sp_SelectStudent")]
public ISingleResult<sp_SelectStudent_个结果> sp_SelectStudent()
{
IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())));
return ((ISingleResult<sp_SelectStudent_个结果>)(result.ReturnValue));
}
}
public partial class sp_SelectStudent_个结果
{
private int _stu_id;
private System.Nullable<int> _ClassesId;
private string _stu_name;
private System.Nullable<int> _sex;
private System.Nullable<int> _age;
public sp_SelectStudent_个结果()
{
}
[Column(Storage="_stu_id", DbType="Int NOT NULL")]
public int stu_id
{
get
{
return this._stu_id;
}
set
{
if ((this._stu_id != value))
{
this._stu_id = value;
}
}
}
[Column(Storage="_ClassesId", DbType="Int")]
public System.Nullable<int> ClassesId
{
get
{
return this._ClassesId;
}
set
{
if ((this._ClassesId != value))
{
this._ClassesId = value;
}
}
}
[Column(Storage="_stu_name", DbType="NVarChar(20)")]
public string stu_name
{
get
{
return this._stu_name;
}
set
{
if ((this._stu_name != value))
{
this._stu_name = value;
}
}
}
[Column(Storage="_sex", DbType="Int")]
public System.Nullable<int> sex
{
get
{
return this._sex;
}
set
{
if ((this._sex != value))
{
this._sex = value;
}
}
}
[Column(Storage="_age", DbType="Int")]
public System.Nullable<int> age
{
get
{
return this._age;
}
set
{
if ((this._age != value))
{
this._age = value;
}
}
}