示例#1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            bool isRes = IOSQL.getInstance(uDataBase, strDBPwsd).iSDataBaseOpen();

            Debug.WriteLine("report db isconnection {0}", isRes);

            int count = IOSQL.getInstance(uDataBase, strDBPwsd).numOfCount("Employees");

            Debug.WriteLine("receive table row number is  " + count);
            loadMyReport(RES_FRPT);
        }
示例#2
0
        private void writeData_Click(object sender, RoutedEventArgs e)
        {
            string strSQL = "insert into employees values('aaa','123145464','hereerer','william','xia','1984-06-03')";

            IOSQL.getInstance(uDataBase, strDBPwsd).executeSQL(strSQL);
        }
示例#3
0
 private void initializeDataBase()
 {
     IOSQL.getInstance(uDataBase, strDBPwsd);
     IOSQL.getInstance(uDataBase).executeSQL(STRSQL.TABLE_EMPLOYYE);
 }