Changeset 2197 for branches/HeuristicLab.Modeling Database Backend
- Timestamp:
- 07/28/09 16:28:52 (15 years ago)
- Location:
- branches/HeuristicLab.Modeling Database Backend/sources
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Modeling Database Backend/sources/HeuristicLab.CEDMA.Server/3.3/Server.cs
r2195 r2197 38 38 namespace HeuristicLab.CEDMA.Server { 39 39 public class Server : IViewable { 40 private static readonly string sqlServerCompactFile = AppDomain.CurrentDomain.BaseDirectory + "HeuristicLab.Modeling.database ";40 private static readonly string sqlServerCompactFile = AppDomain.CurrentDomain.BaseDirectory + "HeuristicLab.Modeling.database.sdf"; 41 41 private static readonly string sqlServerCompactConnectionString = @"Data Source=" + sqlServerCompactFile; 42 42 -
branches/HeuristicLab.Modeling Database Backend/sources/HeuristicLab.Modeling.Database.SQLServerCompact/3.2/DataObjects/InputVariable.cs
r2194 r2197 34 34 private EntityRef<Variable> variable; 35 35 [Association(Storage = "variable", ThisKey = "VariableId", OtherKey = "Id", IsForeignKey = true)] 36 public IVariable Variable {36 public Variable Variable { 37 37 get { return variable.Entity; } 38 } 39 40 IVariable IInputVariable.Variable { 41 get { return this.Variable; } 38 42 } 39 43 … … 53 57 private EntityRef<Model> model; 54 58 [Association(Storage = "model", ThisKey = "ModelId", OtherKey = "Id", IsForeignKey = true)] 55 public IModel Model {59 public Model Model { 56 60 get { return model.Entity; } 61 } 62 63 IModel IInputVariable.Model { 64 get { return this.Model;} 57 65 } 58 66 } -
branches/HeuristicLab.Modeling Database Backend/sources/HeuristicLab.Modeling.Database.SQLServerCompact/3.2/DataObjects/InputVariableResult.cs
r2194 r2197 37 37 private EntityRef<Variable> variable; 38 38 [Association(Storage = "variable", ThisKey = "VariableId", OtherKey = "Id", IsForeignKey = true)] 39 public IVariable Variable {39 public Variable Variable { 40 40 get { return variable.Entity; } 41 } 42 43 IVariable IInputVariableResult.Variable { 44 get { return this.Variable; } 41 45 } 42 46 … … 56 60 private EntityRef<Model> model; 57 61 [Association(Storage = "model", ThisKey = "ModelId", OtherKey = "Id", IsForeignKey = true)] 58 public IModel Model {62 public Model Model { 59 63 get { return model.Entity; } 64 } 65 66 IModel IInputVariableResult.Model { 67 get { return this.Model; } 60 68 } 61 69 … … 75 83 private EntityRef<Result> result; 76 84 [Association(Storage = "result", ThisKey = "ResultId", OtherKey = "Id", IsForeignKey = true)] 77 public IResult Result {85 public Result Result { 78 86 get { return result.Entity; } 87 } 88 89 IResult IInputVariableResult.Result { 90 get { return this.Result; } 79 91 } 80 92 -
branches/HeuristicLab.Modeling Database Backend/sources/HeuristicLab.Modeling.Database.SQLServerCompact/3.2/DataObjects/Model.cs
r2195 r2197 29 29 30 30 private byte[] data; 31 [Column(Storage = " model", DbType = "image", CanBeNull = false)]31 [Column(Storage = "data", DbType = "image", CanBeNull = false)] 32 32 public byte[] Data { 33 33 get { return this.data; } … … 50 50 private EntityRef<Algorithm> algorithm; 51 51 [Association(Storage = "algorithm", ThisKey = "AlgorithmId", OtherKey = "Id", IsForeignKey = true)] 52 public IAlgorithm Algorithm {52 public Algorithm Algorithm { 53 53 get { return this.algorithm.Entity; } 54 54 private set { … … 58 58 algorithm.Entity = null; 59 59 } 60 algorithm.Entity = (Algorithm)value;60 algorithm.Entity =value; 61 61 if (value != null) { 62 algorithmId = ((Algorithm)value).Id;62 algorithmId = value.Id; 63 63 } 64 64 } 65 65 } 66 } 67 68 IAlgorithm IModel.Algorithm { 69 get { return this.Algorithm; } 66 70 } 67 71 … … 81 85 private EntityRef<Variable> targetVariable; 82 86 [Association(Storage = "targetVariable", ThisKey = "TargetVariableId", OtherKey = "Id", IsForeignKey = true)] 83 public IVariable TargetVariable {87 public Variable TargetVariable { 84 88 get { return this.targetVariable.Entity; } 85 89 private set { … … 89 93 targetVariable.Entity = null; 90 94 } 91 targetVariable.Entity = (Variable)value;95 targetVariable.Entity = value; 92 96 if (value != null) { 93 targetVariableId = ((Variable)value).Id;97 targetVariableId = value.Id; 94 98 } 95 99 } 96 100 } 101 } 102 103 IVariable IModel.TargetVariable { 104 get { return this.TargetVariable; } 97 105 } 98 106 -
branches/HeuristicLab.Modeling Database Backend/sources/HeuristicLab.Modeling.Database.SQLServerCompact/3.2/DataObjects/ModelResult.cs
r2194 r2197 7 7 namespace HeuristicLab.Modeling.Database.SQLServerCompact { 8 8 [Table(Name = "ModelResult")] 9 public class ModelResult {9 public class ModelResult : IModelResult { 10 10 public ModelResult() { 11 11 this.model = default(EntityRef<Model>); … … 58 58 } 59 59 60 IModel IModelResult.Model { 61 get { return this.Model; } 62 } 63 60 64 private int resultId; 61 65 [Column(Storage = "resultId", CanBeNull = false)] … … 89 93 } 90 94 95 IResult IModelResult.Result { 96 get { return this.Result; } 97 } 98 91 99 } 92 100 }
Note: See TracChangeset
for help on using the changeset viewer.