예제 #1
0
파일: Program.cs 프로젝트: ortiqui/Database
        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();
            }
        }