Exemplo n.º 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);
     }
 }
Exemplo n.º 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
     });
 }
Exemplo n.º 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)
     });
 }
Exemplo n.º 4
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, AlgorithmClass = Convert.ToDto(source.AlgorithmClass), DataType = Convert.ToDto(source.DataType)
     });
 }
Exemplo n.º 5
0
 partial void DeleteAlgorithm(Algorithm instance);
Exemplo n.º 6
0
		private void detach_Algorithms(Algorithm entity)
		{
			this.SendPropertyChanging();
			entity.Platform = null;
		}
Exemplo n.º 7
0
 partial void UpdateAlgorithm(Algorithm instance);
Exemplo n.º 8
0
 partial void InsertAlgorithm(Algorithm instance);
Exemplo n.º 9
0
		private void detach_Algorithms(Algorithm entity)
		{
			this.SendPropertyChanging();
			entity.AlgorithmClass = null;
		}
Exemplo n.º 10
0
		private void detach_Algorithms(Algorithm entity)
		{
			this.SendPropertyChanging();
			entity.BinaryData = null;
		}
Exemplo n.º 11
0
		private void attach_Algorithms(Algorithm entity)
		{
			this.SendPropertyChanging();
			entity.DataType = this;
		}