public static SqlTasks GetSqlTasks(SqlType dbType) { if (sqlTasks == null) { sqlTasks = new SqlTasks(dbType); } return(sqlTasks); }
/// <summary> /// 构造函数 构造函数 /// </summary> /// <param name="strServer">服务器名称</param> /// <param name="strDbName">数据库名称</param> /// <param name="strTableName">数据库表名</param> /// <param name="dbType">类型</param> /// <param name="blnNew">是否新增表,true 新增表,false,设计表</param> public FrmTableNew(ServerTag serverTag, string strDbName, string strTableName, SqlType dbType, bool blnNew) { InitializeComponent(); m_dal = new Bse_DataDictionaryDAL(); m_strTableName = strTableName; m_strServer = serverTag.Server; m_strDbName = strDbName; m_dbType = dbType; grdTable.EditMode = DataGridViewEditMode.EditOnEnter; grdTable.AutoGenerateColumns = false; m_databaseSchema = GlobalHelp.GetDatabaseSchema(serverTag.DBType, serverTag.Server, strDbName); m_dbHelper = DataBaseManager.GetDbHelper(m_dbType, m_databaseSchema.ConnectionString); m_sqlTasks = new SqlTasks(m_dbType); m_blnNew = blnNew; }