当前位置:首页 » 编程博文
开发技术指南» 文章正文
    引言: ACCESS数据库访问组件(二)ACCESS_Table.csu
 

 

 ·access数据库访问组件(四)    »显示摘要«
    摘要:using system;using system.data;using system.data.oledb;using system.collections; namespace xlang.videoonline.framework.database.access{ /// <summary> /// summary description for access_dataview......
 ·基于asp.net的网页复用方法    »显示摘要«
    摘要:摘要:以一个新闻网站页面为例,结合asp.net的特性,介绍了复用网页的方法。 abstract:this paper introduces some methods of reusable web page which combining with the features of asp.net, and taking a web page of a news web site as an e......


ACCESS数据库访问组件(二)

access数据库访问组件(二)access_table.cs

【程序编程相关:Linux上JDK的安装

【推荐阅读:提高Java程序内存效率

using system; 【扩展信息:Struts的一个小错误

namespace xlang.videoonline.framework.database.access

{

 /// <summary>

 /// summary description for access_datatable.

 /// </summary>

 public class datatable:system.data.datatable

 {

  private string _tablename;

  private string _primarykey;

  public string name

  {

   get { return _tablename; }

   set { _tablename=value; }

  }

  public string primarykey

  {

   get { return _primarykey; }

   set { _primarykey=value; }

  }

  public datatable()

  {

  }

  public datatable(string tablename)

  {

   _tablename=tablename;

  }

  public string createcommand(database.access.datarow[] rows)

  {

   string temp="create table "+_tablename+"(";

   for(int i=0;i<rows.getlength(0);i++)

   {

    temp+="["+rows[i].name+"] "+rows[i].type+(rows[i].isnull? ",":" not null,");

   }


...   下一页
 ·带信号量的生产者消费者问题    »显示摘要«
    摘要: 信号量的概念首先由e.w.dijkstra在1965年提出的。semaphore(信号量)是一个大于等于零的整型变量。 对信号量有两个原子操作:-和+,down()和up(),sleep()和wakeup(),p()和v(),wait() 和signal()。虽然它们名字都不一样,可意思都是相同的,拿down和up操作来说明。 down(t)操作 递减信号量t的值:先检查t是否大于0......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE