2023-01-13 15:30:20 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Configuration;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Epost.DAL
|
|
|
|
|
{
|
|
|
|
|
public class DB_Oracle
|
|
|
|
|
{
|
|
|
|
|
private DataBaseOpration.OprationOraDAL db;
|
2023-07-18 11:18:52 +08:00
|
|
|
|
//private string _strOracleMIDConnString = ConfigurationManager.ConnectionStrings["OraMidConnString"].ConnectionString;
|
2023-01-13 15:30:20 +08:00
|
|
|
|
|
|
|
|
|
public DB_Oracle()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
|
|
/// 此方法是本类实例的唯一全局访问点
|
|
|
|
|
|
|
|
|
|
/// (双重加锁 Double-Check Locking)
|
|
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
public DataBaseOpration.OprationOraDAL GetInstance()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
//如实例不存在,则New一个新实例,否则返回已有实例
|
2023-07-18 11:18:52 +08:00
|
|
|
|
//if (db == null)
|
|
|
|
|
//{
|
2023-01-13 15:30:20 +08:00
|
|
|
|
|
2023-07-18 11:18:52 +08:00
|
|
|
|
// db = new DataBaseOpration.OprationOraDAL(_strOracleMIDConnString);
|
2023-01-13 15:30:20 +08:00
|
|
|
|
|
2023-07-18 11:18:52 +08:00
|
|
|
|
//}
|
2023-01-13 15:30:20 +08:00
|
|
|
|
return db;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|