Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/08/10 19:14:58 (14 years ago)
Author:
gkronber
Message:

Worked on deployment server. Fixed DB-schema. Implemented all test-cases. #860

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DeploymentServer Prototype/HeuristicLab.Services/HeuristicLab.Services.Deployment.DataAccess/PluginStoreClasses.designer.cs

    r2742 r2766  
    3434    partial void UpdateDependency(Dependency instance);
    3535    partial void DeleteDependency(Dependency instance);
     36    partial void InsertProductPlugin(ProductPlugin instance);
     37    partial void UpdateProductPlugin(ProductPlugin instance);
     38    partial void DeleteProductPlugin(ProductPlugin instance);
    3639    partial void InsertPlugin(Plugin instance);
    3740    partial void UpdatePlugin(Plugin instance);
     
    126129    private long _DependencyId;
    127130   
    128     private EntityRef<Plugin> _Plugin;
    129    
    130     private EntityRef<Plugin> _Plugin1;
    131    
    132131    #region Extensibility Method Definitions
    133132    partial void OnLoaded();
     
    142141    public Dependency()
    143142    {
    144       this._Plugin = default(EntityRef<Plugin>);
    145       this._Plugin1 = default(EntityRef<Plugin>);
    146143      OnCreated();
    147144    }
     
    158155        if ((this._PluginId != value))
    159156        {
    160           if (this._Plugin1.HasLoadedOrAssignedValue)
    161           {
    162             throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
    163           }
    164157          this.OnPluginIdChanging(value);
    165158          this.SendPropertyChanging();
     
    182175        if ((this._DependencyId != value))
    183176        {
    184           if (this._Plugin.HasLoadedOrAssignedValue)
    185           {
    186             throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
    187           }
    188177          this.OnDependencyIdChanging(value);
    189178          this.SendPropertyChanging();
     
    195184    }
    196185   
    197     [Association(Name="Plugin_Dependency", Storage="_Plugin", ThisKey="DependencyId", OtherKey="Id", IsForeignKey=true)]
    198     public Plugin Plugin
    199     {
    200       get
    201       {
    202         return this._Plugin.Entity;
    203       }
    204       set
    205       {
    206         Plugin previousValue = this._Plugin.Entity;
    207         if (((previousValue != value)
    208               || (this._Plugin.HasLoadedOrAssignedValue == false)))
    209         {
    210           this.SendPropertyChanging();
    211           if ((previousValue != null))
    212           {
    213             this._Plugin.Entity = null;
    214             previousValue.Dependencies.Remove(this);
    215           }
    216           this._Plugin.Entity = value;
    217           if ((value != null))
    218           {
    219             value.Dependencies.Add(this);
    220             this._DependencyId = value.Id;
    221           }
    222           else
    223           {
    224             this._DependencyId = default(long);
    225           }
    226           this.SendPropertyChanged("Plugin");
    227         }
    228       }
    229     }
    230    
    231     [Association(Name="Plugin_Dependency1", Storage="_Plugin1", ThisKey="PluginId", OtherKey="Id", IsForeignKey=true)]
    232     public Plugin Plugin1
    233     {
    234       get
    235       {
    236         return this._Plugin1.Entity;
    237       }
    238       set
    239       {
    240         Plugin previousValue = this._Plugin1.Entity;
    241         if (((previousValue != value)
    242               || (this._Plugin1.HasLoadedOrAssignedValue == false)))
    243         {
    244           this.SendPropertyChanging();
    245           if ((previousValue != null))
    246           {
    247             this._Plugin1.Entity = null;
    248             previousValue.Dependencies1.Remove(this);
    249           }
    250           this._Plugin1.Entity = value;
    251           if ((value != null))
    252           {
    253             value.Dependencies1.Add(this);
    254             this._PluginId = value.Id;
    255           }
    256           else
    257           {
    258             this._PluginId = default(long);
    259           }
    260           this.SendPropertyChanged("Plugin1");
    261         }
    262       }
    263     }
    264    
    265186    public event PropertyChangingEventHandler PropertyChanging;
    266187   
     
    285206 
    286207  [Table(Name="dbo.ProductPlugin")]
    287   public partial class ProductPlugin
     208  public partial class ProductPlugin : INotifyPropertyChanging, INotifyPropertyChanged
    288209  {
    289210   
     211    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
     212   
    290213    private long _ProductId;
    291214   
    292215    private long _PluginId;
    293216   
     217    #region Extensibility Method Definitions
     218    partial void OnLoaded();
     219    partial void OnValidate(System.Data.Linq.ChangeAction action);
     220    partial void OnCreated();
     221    partial void OnProductIdChanging(long value);
     222    partial void OnProductIdChanged();
     223    partial void OnPluginIdChanging(long value);
     224    partial void OnPluginIdChanged();
     225    #endregion
     226   
    294227    public ProductPlugin()
    295228    {
    296     }
    297    
    298     [Column(Storage="_ProductId", DbType="BigInt NOT NULL")]
     229      OnCreated();
     230    }
     231   
     232    [Column(Storage="_ProductId", DbType="BigInt NOT NULL", IsPrimaryKey=true)]
    299233    public long ProductId
    300234    {
     
    307241        if ((this._ProductId != value))
    308242        {
     243          this.OnProductIdChanging(value);
     244          this.SendPropertyChanging();
    309245          this._ProductId = value;
    310         }
    311       }
    312     }
    313    
    314     [Column(Storage="_PluginId", DbType="BigInt NOT NULL")]
     246          this.SendPropertyChanged("ProductId");
     247          this.OnProductIdChanged();
     248        }
     249      }
     250    }
     251   
     252    [Column(Storage="_PluginId", DbType="BigInt NOT NULL", IsPrimaryKey=true)]
    315253    public long PluginId
    316254    {
     
    323261        if ((this._PluginId != value))
    324262        {
     263          this.OnPluginIdChanging(value);
     264          this.SendPropertyChanging();
    325265          this._PluginId = value;
    326         }
     266          this.SendPropertyChanged("PluginId");
     267          this.OnPluginIdChanged();
     268        }
     269      }
     270    }
     271   
     272    public event PropertyChangingEventHandler PropertyChanging;
     273   
     274    public event PropertyChangedEventHandler PropertyChanged;
     275   
     276    protected virtual void SendPropertyChanging()
     277    {
     278      if ((this.PropertyChanging != null))
     279      {
     280        this.PropertyChanging(this, emptyChangingEventArgs);
     281      }
     282    }
     283   
     284    protected virtual void SendPropertyChanged(String propertyName)
     285    {
     286      if ((this.PropertyChanged != null))
     287      {
     288        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
    327289      }
    328290    }
     
    340302   
    341303    private string _Version;
    342    
    343     private EntitySet<Dependency> _Dependencies;
    344    
    345     private EntitySet<Dependency> _Dependencies1;
    346304   
    347305    private EntityRef<PluginPackage> _PluginPackage;
     
    361319    public Plugin()
    362320    {
    363       this._Dependencies = new EntitySet<Dependency>(new Action<Dependency>(this.attach_Dependencies), new Action<Dependency>(this.detach_Dependencies));
    364       this._Dependencies1 = new EntitySet<Dependency>(new Action<Dependency>(this.attach_Dependencies1), new Action<Dependency>(this.detach_Dependencies1));
    365321      this._PluginPackage = default(EntityRef<PluginPackage>);
    366322      OnCreated();
     
    424380          this.OnVersionChanged();
    425381        }
    426       }
    427     }
    428    
    429     [Association(Name="Plugin_Dependency", Storage="_Dependencies", ThisKey="Id", OtherKey="DependencyId")]
    430     public EntitySet<Dependency> Dependencies
    431     {
    432       get
    433       {
    434         return this._Dependencies;
    435       }
    436       set
    437       {
    438         this._Dependencies.Assign(value);
    439       }
    440     }
    441    
    442     [Association(Name="Plugin_Dependency1", Storage="_Dependencies1", ThisKey="Id", OtherKey="PluginId")]
    443     public EntitySet<Dependency> Dependencies1
    444     {
    445       get
    446       {
    447         return this._Dependencies1;
    448       }
    449       set
    450       {
    451         this._Dependencies1.Assign(value);
    452382      }
    453383    }
     
    500430        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
    501431      }
    502     }
    503    
    504     private void attach_Dependencies(Dependency entity)
    505     {
    506       this.SendPropertyChanging();
    507       entity.Plugin = this;
    508     }
    509    
    510     private void detach_Dependencies(Dependency entity)
    511     {
    512       this.SendPropertyChanging();
    513       entity.Plugin = null;
    514     }
    515    
    516     private void attach_Dependencies1(Dependency entity)
    517     {
    518       this.SendPropertyChanging();
    519       entity.Plugin1 = this;
    520     }
    521    
    522     private void detach_Dependencies1(Dependency entity)
    523     {
    524       this.SendPropertyChanging();
    525       entity.Plugin1 = null;
    526432    }
    527433  }
     
    707613    }
    708614   
    709     [Column(Storage="_Id", DbType="BigInt NOT NULL", IsPrimaryKey=true)]
     615    [Column(Storage="_Id", AutoSync=AutoSync.OnInsert, DbType="BigInt NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
    710616    public long Id
    711617    {
Note: See TracChangeset for help on using the changeset viewer.