Beispiel #1
0
        public static Loadwtlinehistorycriteria BuildLoadwtlinehistorycriteriaFromRow(DataRow row)
        {
            Loadwtlinehistorycriteria entity = new Loadwtlinehistorycriteria();

            entity.wtno   = row.IsNull("wtno") ? 0 : row.Field <int>("wtno");
            entity.lineno = row.IsNull("lineno") ? 0 : row.Field <int>("lineno");
            return(entity);
        }
Beispiel #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromLoadwtlinehistorycriteria(ref DataRow row, Loadwtlinehistorycriteria entity)
 {
     row.SetField("wtno", entity.wtno);
     row.SetField("lineno", entity.lineno);
 }