Beispiel #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWtlinecancelchangecriteria(ref DataRow row, Wtlinecancelchangecriteria entity)
 {
     row.SetField("maintmode", entity.maintmode);
     row.SetField("wtno", entity.wtno);
     row.SetField("wtsuf", entity.wtsuf);
     row.SetField("lineno", entity.lineno);
     row.SetField("userfield", entity.userfield);
 }
Beispiel #2
0
        public static Wtlinecancelchangecriteria BuildWtlinecancelchangecriteriaFromRow(DataRow row)
        {
            Wtlinecancelchangecriteria entity = new Wtlinecancelchangecriteria();

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