コード例 #1
0
 public static void Register()
 {
     table      = new DatabaseGenerator.TableData();
     table.Name = "Persons";
     table.ConnectionStringName = "LargeDatabaseConnectionString";
     table.Fields.Add(new DatabaseGenerator.FieldData("FirstName", firstNames));
     table.Fields.Add(new DatabaseGenerator.FieldData("LastName", lastNames));
     table.Fields.Add(new DatabaseGenerator.FieldData("Phone", GeneratePhone));
     table.RecordCount = 20000;
     DatabaseGenerator.RegisterTable("GeneratedPersonTable", table);
 }
コード例 #2
0
 public static void Register()
 {
     table      = new DatabaseGenerator.TableData();
     table.Name = "Emails";
     table.ConnectionStringName = "LargeDatabaseConnectionString";
     table.Fields.Add(new DatabaseGenerator.FieldData("Subject", subjects));
     table.Fields.Add(new DatabaseGenerator.FieldData("From", names));
     table.Fields.Add(new DatabaseGenerator.FieldData("Sent", GenerateSent));
     table.Fields.Add(new DatabaseGenerator.FieldData("Size", GenerateSize));
     table.Fields.Add(new DatabaseGenerator.FieldData("HasAttachment", GenerateHasAttachment));
     table.RecordCount = 300000;
     DatabaseGenerator.RegisterTable("GeneratedEmailTable", table);
 }