示例#1
0
文件: DB.cs 项目: keithsullivan3/CIS
 public static void createOccupation(int Id, string occupation, int clusterId, int annualGross, int monthlyGross, int marriedAnnualTaxes,
     int marriedMonthlyTaxes, int marriedAfterTaxes, int singleAnnualTaxes, int singleMonthlyTaxes, int singleAfterTaxes, int studentLoans,
     double requiredGpa, int requiredEducation)
 {
     DB d1 = new DB();
     d1.Insert("INSERT INTO occupation VALUES (" + Id + ", '" + occupation + "' , " + clusterId + " , " + annualGross + ", " + monthlyGross + ", " + marriedAnnualTaxes + ", " +
         marriedMonthlyTaxes + ", " + marriedAfterTaxes + ", " + singleAnnualTaxes + ", " + singleMonthlyTaxes + ", " + singleAfterTaxes + " , " + studentLoans + ", " +
         requiredGpa + ", " + requiredEducation + ")");
 }
示例#2
0
文件: DB.cs 项目: keithsullivan3/CIS
 public static void createStudent(string firstName, string lastName, string classPeriod, string teacher, string group, string sex, double gpa, int educationId,
     int occupationId, string married, string children, int childrenNumber, string creditCard, int creditUse, int creditScore, int schoolId, 
     int salary, int netMonthlyIncome, int studentLoans, int maritalStatusId)
 {
     DB d1 = new DB();
     d1.Insert("INSERT INTO student (FirstName, LastName, ClassPeriod, Teacher, StudentGroup, Sex, GPA, EducationId, OccupationId, Married, Children, ChildrenNumber, " +
         "CreditCard, CreditUseId, CreditScore, SchoolId, Salary, NetMonthlyIncome, StudentLoans, MaritalStatusId) " +
         "VALUES ('" + firstName + "' , '" + lastName + "' , '" + classPeriod + "' , '" + teacher + "' , '" + group + "' , '" + sex +
         "' , " + gpa + " , " + educationId + " , " + occupationId + " , '" + married + "' , '" + children + "' , " + childrenNumber +
         " , '" + creditCard + "' , " + creditUse + " , " + creditScore + " , " + schoolId + " , " + salary + " , " + netMonthlyIncome +
         " , " + studentLoans + " , " + maritalStatusId + ")");
 }
示例#3
0
文件: DB.cs 项目: keithsullivan3/CIS
 public static void createSchool(int schoolId, string school)
 {
     DB d1 = new DB();
     d1.Insert("INSERT INTO schools VALUES("+ schoolId + ", '" + school + "')");
 }