コード例 #1
0
ファイル: Convert.cs プロジェクト: thunder176/HeuristicLab
 public static DA.Problem ToEntity(DT.Problem source, DA.OKBDataContext okb) {
   if (source == null) return null;
   return new DA.Problem { Id = source.Id, Name = source.Name, Description = source.Description, PlatformId = source.PlatformId, ProblemClassId = source.ProblemClassId, DataType = Convert.ToEntity(source.DataTypeName, source.DataTypeTypeName, okb) };
 }
コード例 #2
0
ファイル: Convert.cs プロジェクト: thunder176/HeuristicLab
 public static void ToEntity(DT.ProblemClass source, DA.ProblemClass target) {
   if ((source != null) && (target != null)) {
     target.Id = source.Id; target.Name = source.Name; target.Description = source.Description;
   }
 }
コード例 #3
0
ファイル: Convert.cs プロジェクト: thunder176/HeuristicLab
 public static void ToEntity(DT.Algorithm source, DA.Algorithm target, DA.OKBDataContext okb) {
   if ((source != null) && (target != null)) {
     target.Id = source.Id; target.Name = source.Name; target.Description = source.Description; target.PlatformId = source.PlatformId; target.AlgorithmClassId = source.AlgorithmClassId; target.DataType = Convert.ToEntity(source.DataTypeName, source.DataTypeTypeName, okb);
   }
 }
コード例 #4
0
ファイル: Convert.cs プロジェクト: thunder176/HeuristicLab
 public static DA.ProblemClass ToEntity(DT.ProblemClass source) {
   if (source == null) return null;
   return new DA.ProblemClass { Id = source.Id, Name = source.Name, Description = source.Description };
 }
コード例 #5
0
ファイル: Convert.cs プロジェクト: thunder176/HeuristicLab
 public static DA.Platform ToEntity(DT.Platform source) {
   if (source == null) return null;
   return new DA.Platform { Id = source.Id, Name = source.Name, Description = source.Description };
 }