示例#1
0
 public UpdateSchemaResult UpdateSchema(bool dontCreateIfFirstTableNotExist, params DBTable[] tables)
 {
     var args = new DataStoreUpdateSchemaEventArgs(dontCreateIfFirstTableNotExist, tables);
     RaiseDataStoreUpdateSchema(args);
     dataStoreCore.UpdateSchema(false, args.Tables);
     return UpdateSchemaResult.SchemaExists;
 }
示例#2
0
 protected void RaiseDataStoreUpdateSchema(DataStoreUpdateSchemaEventArgs args)
 {
     if (DataStoreUpdateSchema != null) {
         DataStoreUpdateSchema(this, args);
     }
 }
示例#3
0
 public virtual UpdateSchemaResult UpdateSchema(bool dontCreateIfFirstTableNotExist, params DBTable[] tables){
     var args = new DataStoreUpdateSchemaEventArgs(dontCreateIfFirstTableNotExist, tables);
     OnDataStoreUpdateSchema(args);
     return dataStoreCore.UpdateSchema(false, args.Tables);
 }