Example #1
0
 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);
     }
 }
Example #2
0
 public static DT.Algorithm ToDto(DA.Algorithm source)
 {
     if (source == null)
     {
         return(null);
     }
     return(new DT.Algorithm {
         Id = source.Id, Name = source.Name, Description = source.Description, PlatformId = source.PlatformId, AlgorithmClassId = source.AlgorithmClassId, DataTypeName = source.DataType.Name, DataTypeTypeName = source.DataType.TypeName
     });
 }
Example #3
0
 private static DT.Algorithm ToDto(DA.Algorithm source)
 {
     if (source == null)
     {
         return(null);
     }
     return(new DT.Algorithm {
         Id = source.Id, Name = source.Name, Description = source.Description, AlgorithmClass = source.AlgorithmClass.Name, Platform = source.Platform.Name, DataType = Convert.ToDto(source.DataType)
     });
 }
 public static DT.Algorithm ToDto(DA.Algorithm source)
 {
     if (source == null)
     {
         return(null);
     }
     return(new DT.Algorithm {
         Id = source.Id, Name = source.Name, Description = source.Description, AlgorithmClass = Convert.ToDto(source.AlgorithmClass), DataType = Convert.ToDto(source.DataType)
     });
 }
Example #5
0
 partial void DeleteAlgorithm(Algorithm instance);
Example #6
0
		private void detach_Algorithms(Algorithm entity)
		{
			this.SendPropertyChanging();
			entity.Platform = null;
		}
Example #7
0
 partial void UpdateAlgorithm(Algorithm instance);
Example #8
0
 partial void InsertAlgorithm(Algorithm instance);
Example #9
0
		private void detach_Algorithms(Algorithm entity)
		{
			this.SendPropertyChanging();
			entity.AlgorithmClass = null;
		}
Example #10
0
		private void detach_Algorithms(Algorithm entity)
		{
			this.SendPropertyChanging();
			entity.BinaryData = null;
		}
Example #11
0
		private void attach_Algorithms(Algorithm entity)
		{
			this.SendPropertyChanging();
			entity.DataType = this;
		}