示例#1
0
        public static void TestProvider(DataProviderType providerType)
        {
            DatabaseCore db = DatabaseCore.Create(providerType, @"Data Source=(localdb)\MSSQLLocalDB;Database=ZKTecoTime;User ID=manuel.ortiz;Password=1910Skynet;Pooling=true;Encrypt=False;TrustServerCertificate=False;Trusted_Connection=Yes;");

            using (var cn = db.CreateOpenConnection())
            {
                cn.Open();
                cn.Close();
                cn.Dispose();
            }
        }