Changeset 2194 for branches/HeuristicLab.Modeling Database Backend/sources/HeuristicLab.Modeling.Database.SQLServerCompact/3.2/DataObjects/InputVariable.cs
- Timestamp:
- 07/28/09 15:29:10 (15 years ago)
- Location:
- branches/HeuristicLab.Modeling Database Backend/sources/HeuristicLab.Modeling.Database.SQLServerCompact
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Modeling Database Backend/sources/HeuristicLab.Modeling.Database.SQLServerCompact/3.2/DataObjects/InputVariable.cs
r2185 r2194 5 5 using System.Text; 6 6 7 namespace HeuristicLab.Modeling. SQLServerCompactBackend{7 namespace HeuristicLab.Modeling.Database.SQLServerCompact { 8 8 [Table(Name = "InputVariable")] 9 public class InputVariable {9 public class InputVariable : IInputVariable { 10 10 public InputVariable() { 11 11 this.model = default(EntityRef<Model>); … … 27 27 if (variable.HasLoadedOrAssignedValue) 28 28 throw new ForeignKeyReferenceAlreadyHasValueException(); 29 variableId = value; 29 variableId = value; 30 30 } 31 31 } … … 34 34 private EntityRef<Variable> variable; 35 35 [Association(Storage = "variable", ThisKey = "VariableId", OtherKey = "Id", IsForeignKey = true)] 36 public Variable Variable {36 public IVariable Variable { 37 37 get { return variable.Entity; } 38 38 } … … 53 53 private EntityRef<Model> model; 54 54 [Association(Storage = "model", ThisKey = "ModelId", OtherKey = "Id", IsForeignKey = true)] 55 public Model Model {55 public IModel Model { 56 56 get { return model.Entity; } 57 57 }
Note: See TracChangeset
for help on using the changeset viewer.