/*store all the records in the requried table names * the userInfoTable, created a table for the file and dumps all data * should store datatypes in a table; * */ public void storeInTable(string userId, string tableName) {//This method is used manualCodes.DataTypeFinder df = new manualCodes.DataTypeFinder(); df.setData(this.innerdata); df.operate(); this.dataType = df.getDataType2(); string actualTableName = tableName; manualCodes.DatabaseAccessLayer.insertUserInfoTable(userId, actualTableName); manualCodes.DatabaseAccessLayer.createAndFillData(actualTableName, this.innerdata, dataType); string[] types2 = getDataTypes(this.dataType);//solves the mapping error from team work manualCodes.DatabaseAccessLayer.insertTableDataTypes(actualTableName, types2); manualCodes.DatabaseAccessLayer.insertUserTableIdTableNameMap(userId, actualTableName, actualTableName); }
/*store all the records in the requried table names * the userInfoTable, created a table for the file and dumps all data * should store datatypes in a table; * */ public void storeInTable(string userId, string tableName) { //This method is used manualCodes.DataTypeFinder df = new manualCodes.DataTypeFinder(); df.setData(this.innerdata); df.operate(); this.dataType = df.getDataType2(); string actualTableName = tableName; manualCodes.DatabaseAccessLayer.insertUserInfoTable(userId,actualTableName); manualCodes.DatabaseAccessLayer.createAndFillData(actualTableName,this.innerdata,dataType); string[] types2=getDataTypes(this.dataType);//solves the mapping error from team work manualCodes.DatabaseAccessLayer.insertTableDataTypes(actualTableName, types2); manualCodes.DatabaseAccessLayer.insertUserTableIdTableNameMap(userId,actualTableName,actualTableName); }