Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromDeletedrplog(ref DataRow row, Deletedrplog entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("emp_num", entity.empNum);
     row.SetField("deletedate", entity.deletedate);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Deletedrplog BuildDeletedrplogFromRow(DataRow row)
        {
            Deletedrplog entity = new Deletedrplog();

            entity.coNum      = row.IsNull("co_num") ? string.Empty : row.Field <string>("co_num");
            entity.whNum      = row.IsNull("wh_num") ? string.Empty : row.Field <string>("wh_num");
            entity.empNum     = row.IsNull("emp_num") ? string.Empty : row.Field <string>("emp_num");
            entity.deletedate = row.Field <DateTime?>("deletedate");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }