JumboTCMS_src/JumboTCMS.DAL/Common.cs
(开头部分) 19KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
* 程序名称: JumboTCMS(将博内容管理系统通用版)
*
* 程序版本: 7.x
*
* 程序作者: 子木将博 (QQ:791104444@qq.com,仅限商业合作)
*
* 版权申明: http://www.jumbotcms.net/about/copyright.html
*
* 技术答疑: http://forum.jumbotcms.net/
*
*/
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.OleDb;
using System.Data.SqlClient;
using System.Web;
using System.Web.UI;
using JumboTCMS.Common;
using JumboTCMS.DBUtility;
namespace JumboTCMS.DAL
{
public class Common
{
public static string connectionString = Const.ConnectionString;
public string DBType = Const.DatabaseType;
public string ORDER_BY_RND()
{
/*Access版本的随机没Sql Server的好,凑合着用吧
* */
if (DBType == "0")
{
Random rand = new Random((int)DateTime.Now.Ticks);
return "rnd(-(id+" + rand.Next(99999) + "))";
}
else
return "newid()";
}
public string vbCrlf = "\r\n";//换行符
protected JumboTCMS.Entity.Site site;
public Common()
{
if (System.Web.HttpContext.Current.Application["jcmsV7"] == null)
{
System.Web.HttpContext.Current.Application.Lock();
System.Web.HttpContext.Current.Application["jcmsV7"] = new JumboTCMS.DAL.SiteDAL().GetEntity();
System.Web.HttpContext.Current.Application.UnLock();
}
}
/// <summary>
///
/// </summary>
/// <param name="_formatsystem">是否初始化site</param>
public Common(bool _formatsystem)
{
if (System.Web.HttpContext.Current.Application["jcmsV7"] == null)
{
后面还有 408 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。