Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWtesautorcv(ref DataRow row, Wtesautorcv entity)
 {
     row.SetField("wtno", entity.wtno);
     row.SetField("wtsuf", entity.wtsuf);
     row.SetField("shiptowhse", entity.shiptowhse);
     row.SetField("jrnlno", entity.jrnlno);
     row.SetField("userfield", entity.userfield);
 }
Example #2
0
        public static Wtesautorcv BuildWtesautorcvFromRow(DataRow row)
        {
            Wtesautorcv entity = new Wtesautorcv();

            entity.wtno       = row.IsNull("wtno") ? 0 : row.Field <int>("wtno");
            entity.wtsuf      = row.IsNull("wtsuf") ? 0 : row.Field <int>("wtsuf");
            entity.shiptowhse = row.IsNull("shiptowhse") ? string.Empty : row.Field <string>("shiptowhse");
            entity.jrnlno     = row.IsNull("jrnlno") ? 0 : row.Field <int>("jrnlno");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }