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); } }
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 }); }
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) }); }
partial void DeleteAlgorithm(Algorithm instance);
private void detach_Algorithms(Algorithm entity) { this.SendPropertyChanging(); entity.Platform = null; }
partial void UpdateAlgorithm(Algorithm instance);
partial void InsertAlgorithm(Algorithm instance);
private void detach_Algorithms(Algorithm entity) { this.SendPropertyChanging(); entity.AlgorithmClass = null; }
private void detach_Algorithms(Algorithm entity) { this.SendPropertyChanging(); entity.BinaryData = null; }
private void attach_Algorithms(Algorithm entity) { this.SendPropertyChanging(); entity.DataType = this; }