コード例 #1
0
 private void TryCreateVersionTable()
 {
     _dataClient.Add
     .Table(VERSION_TABLE_NAME)
     .WithColumns(
         Column.String("migrationgroup").Size(200).NotNull(),
         Column.Int64("version").NotNull(),
         Column.String("info").Size(1000),
         Column.Date("applied")
         );
     _dataClient.AddPrimaryKey(VERSION_TABLE_NAME, "migrationgroup", "version");
     _dataClient.Commit();
 }