自定义控件的使用二----DBGlobal.cs部分

发表于:2007-06-30来源:作者:点击数: 标签:
using System; namespace com.oztime.WorkShop.CodeBase.DB { /// summary /// Summary description for DBGlobal. /// /summary public class DBGlobal { public DBGlobal() { // // TODO: Add constructor logic here // } public static string DSN=DSN; /
using System;

namespace com.oztime.WorkShop.CodeBase.DB
{
    /// <summary>
    /// Summary description for DBGlobal.
    /// </summary>
    public class DBGlobal
    {
        public DBGlobal()
        {
            //
            // TODO: Add constructor logic here
            //
        }
        public static string DSN="DSN";
        /*--------------以下内容与用户类相关----------*/
        public static string SelectUserByID="select * from users where userid=@userid";
        public static string SelectUserByName="select * from users where username=@username";
        public static string AddNewUser="insert into users(username,password,usersex,useremail,usertitle) values(@username,@password,@usersex,@useremail,@usertitle)";
        public static string SelectCurrentUserID="select max(userid) from users";
        public static string SelectUserByNameAndPassword="select * from users where username=? and password=?";
        
        /*-----------------End-----------------------*/

    }
}
 

原文转自:http://www.ltesting.net