温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:博客源代码(课程设计,3层架构)
当前文件:
MVCBlog/App_Code/Leibie.cs,打开代码结构图
MVCBlog/App_Code/Leibie.cs,打开代码结构图1using System; 2
using System.Data; 3
using System.Configuration; 4
using System.Data.SqlClient; 5
using System.Collections.Generic; 6
using System.Data.OleDb; 7
8
/// <summary> 9
/// Leibie 的摘要说明 10
/// </summary> 11
public class Leibie 12
{ 13
private int _id; 14
private string _leibie; 15
16
// This is a named argument. 17
public int id 18
{ 19
get 20
{ 21
return this._id; 22
} 23
set 24
{ 25
this._id = value; 26
} 27
} 28
29
public string leibie 30
{ 31
get 32
{ 33
return this._leibie; 34
} 35
set 36
{ 37
this._leibie = value; 38
} 39
} 40
41
public Leibie() 42
{ 43
// 44
// TODO: 在此处添加构造函数逻辑 45
// 46
} 47
public Leibie(SqlDataReader dr) 48
{ 49
this._id =Convert.ToInt32( dr["ID"]); 50
this._leibie = dr["LEIBIE"].ToString(); 51
} 52
} 53







}