using System; using System.Reflection; namespace Cowain.Bake.Model.Entity { public class TaskEntity : TTaskRecord { public int FromStationNumber { get; set; } public int FromRow { get; set; } public int FromColumn { get; set; } public int ToStationNumber { get; set; } public int ToRow { get; set; } public int ToColumn { get; set; } public int CountCmd { get; set; } //public void Copy(TTaskRecord parent, TaskEntity child) //{ // foreach (PropertyInfo prop in typeof(TTaskRecord).GetProperties()) // { // if (prop.CanRead && prop.CanWrite) // { // var value = prop.GetValue(parent); // prop.SetValue(child, value); // } // } //} } }