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) }; }
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; } }
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 DA.ProblemClass ToEntity(DT.ProblemClass source) { if (source == null) return null; return new DA.ProblemClass { Id = source.Id, Name = source.Name, Description = source.Description }; }
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 }; }