Exemple #1
0
 void MigrationUpdating(object sender, TableEventArgs e)
 {
     repository.Update(e.Table.Name, e.Values, e.Where);
 }
Exemple #2
0
 void MigrationTableCreate(object sender, TableEventArgs e)
 {
     repository.CreateTable(e.Table);
 }
Exemple #3
0
 void MigrationTableDrop(object sender, TableEventArgs e)
 {
     repository.DropTable(e.Table.Name);
 }
Exemple #4
0
 void MigrationDeleting(object sender, TableEventArgs e)
 {
     repository.Delete(e.Table.Name, e.Where);
 }
Exemple #5
0
 void MigrationInserting(object sender, TableEventArgs e)
 {
     repository.Insert(e.Table.Name, e.Values);
 }
Exemple #6
0
 void MigrationColumnAdd(object sender, TableEventArgs e)
 {
     repository.AddColumns(e.Table.Name, e.Table.Columns.ToArray());
 }
Exemple #7
0
 void MigrationColumnRemove(object sender, TableEventArgs e)
 {
     repository.RemoveColumns(e.Table.Name, e.Table.ColumnNames.ToArray());
 }
Exemple #8
0
 protected virtual void OnTableDrop(TableEventArgs e)
 {
     if (TableDrop != null) {
         TableDrop(this, e);
     }
 }
Exemple #9
0
 protected virtual void OnUpdating(TableEventArgs e)
 {
     if (Updating != null) {
         Updating(this, e);
     }
 }
Exemple #10
0
 protected virtual void OnTableCreate(TableEventArgs e)
 {
     if (TableCreate != null) {
         TableCreate(this, e);
     }
 }
Exemple #11
0
 protected virtual void OnInserting(TableEventArgs e)
 {
     if (Inserting != null) {
         Inserting(this, e);
     }
 }
Exemple #12
0
 protected virtual void OnDeleting(TableEventArgs e)
 {
     if (Deleting != null) {
         Deleting(this, e);
     }
 }
Exemple #13
0
 protected virtual void OnColumnRemove(TableEventArgs e)
 {
     if (ColumnRemove != null) {
         ColumnRemove(this, e);
     }
 }
Exemple #14
0
 protected virtual void OnColumnAdd(TableEventArgs e)
 {
     if (ColumnAdd != null) {
         ColumnAdd(this, e);
     }
 }