摘要:
public Pages<stuclass> GetStudetPage(PageParams pagePar) { int size = pagePar.PageSize; string sql = "[dbo].[p_paging]"; SqlParameter[] par = new SqlP 阅读全文
摘要:
public class PageParams { /// <summary> /// 表名、视图名 /// </summary> public string TableName { get; set; } /// <summary> /// 标识列名(如:比如主键、标识,推荐使用索引列) /// 阅读全文
摘要:
public class Pages<T> where T:class { /// <summary> /// 数据总条数 /// </summary> public int SumCount { get; set; } /// <summary> /// 数据总页数 /// </summary> 阅读全文
摘要:
@model List<Model.stuclass> <table style="width:100%;"> <tr> <td> 学生编号</td> <td> 学生姓名</td> <td> 学生性别</td> <td> 学生年龄</td> <td>  阅读全文
摘要:
public List<Drop> Select() { string sql = "select * from StuClass"; DataTable dt = DbHelperSQL.ExecuteDataTable(DbHelperSQL.ConnB2c, CommandType.Text, 阅读全文
摘要:
create database Exam001 --数据库名 use Exam001 --使用数据库 create table Student --创建表 ( StuID int identity,--学生ID StuName varchar(50),--学生姓名 StuSex bit,--学生性别 阅读全文