Example #1
0
 public static FbConectar GetInstance()
 {
     if (FbConectar.Fb == null)
     {
         FbConectar.Fb = new FbConectar();
     }
     return(FbConectar.Fb);
 }
        public static void Conectar(string bancoDados)
        {
            switch (bancoDados)
            {
            case "M":
                mySql = MySqlConectar.GetInstance();
                break;

            case "L":
                sqlLite = SQLiteConectar.GetInstance();
                break;

            case "F":
                fb = FbConectar.GetInstance();
                break;
            }
        }