/// <summary> /// /// </summary> private void GetConnectStr() { //_dbConnectStr = DBInfoHelp.BinaryReadDBConnectStr(); _dbConnectStr = DBInfoHelp.ReadSysDBConnect(); if (!string.IsNullOrEmpty(_dbConnectStr)) { _dbProvierFactory = LibDBProviderFactory.GetDbProviderFactory(DBInfoHelp.ProviderType); DBInfoHelp.Key = GetAccoutKey(); if (!string.IsNullOrEmpty(DBInfoHelp.Key)) { _dbConnect = null; _dbcmd = null; _dbConnectStr = DBInfoHelp.ReadDBConnect(); } } }
public void Initial(LibProviderType pType) { GetConnectStr(); _dbProvierFactory = LibDBProviderFactory.GetDbProviderFactory(pType); }
public void Initial() { GetConnectStr(); _dbProvierFactory = LibDBProviderFactory.GetDbProviderFactory(DBInfoHelp.ProviderType); }