首页 > 开发 > 综合 > 正文

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

2024-07-21 02:16:45
字体:
来源:转载
供稿:网友
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 [email protected]";
        public static string selectuserbyname="select * from users where [email protected]";
        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-----------------------*/

    }
}
 

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表