View Generation

A first very simple implementation of view generation will ve available.

While creating migrations from an existing schema, the system will browse information_schema in order to retrieve views from schema and will produce simple generation script in order to rebuild them.

public class ViewMigration : IMigration {
  void Up(DbProvider db) {
    View view = db.AddView("vw_test", @"select......");
    view.Save();
  }

  void Down(DbProvider db){
    db.dropView("vw_test");
  }
}

Last edited Mar 29, 2008 at 2:18 PM by grava, version 6

Comments

No comments yet.