using System;
using System.Web;
using System.Data.SqlClient;
using System.Configuration;

using VA.Modules.JDingMember.Interface.MemberConsume.ClassLibrary.Config;

namespace VA.Modules.JDingMember.Interface.MemberConsume.ClassLibrary.DataAccess
{
	/// <summary>
	/// DbHelperConfig 的摘要说明。
	/// </summary>
	public class DAOBase
	{
		public string ConnectionString = String.Empty;

		public string _langVersion;
		public string LangVersion
		{
			get { return _langVersion; }
			set { _langVersion = value; }
		}

        /// <summary>
        /// 表前缀；
        /// </summary>
        protected string Tb_Prefix
        {
            get { return DBConfig.Tb_Prefix; }
        }

        /// <summary>
        /// 视图前缀；
        /// </summary>
        protected string View_Prefix
        {
            get { return DBConfig.View_Prefix; }
        }

        /// <summary>
        /// 函数前缀；
        /// </summary>
        protected string Function_Prefix
        {
            get { return DBConfig.Function_Prefix; }
        }

        /// <summary>
        /// 存储过程前缀；
        /// </summary>
        protected string Sp_Prefix
        {
            get { return DBConfig.Sp_Prefix; }
        }

		public DAOBase()
		{
            this.ConnectionString = DBConfig.ConnectionString;
		}

		public DAOBase(string connectionString)
		{			
			this.ConnectionString = connectionString;
		}	
	}
}
