Пример #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcepeserialmaster(ref DataRow row, Icepeserialmaster entity)
 {
     row.SetField("prod", entity.prod);
     row.SetField("whse", entity.whse);
     row.SetField("serlotno", entity.serlotno);
     row.SetField("statusty", entity.statusty);
     row.SetField("userfield", entity.userfield);
 }
Пример #2
0
        public static Icepeserialmaster BuildIcepeserialmasterFromRow(DataRow row)
        {
            Icepeserialmaster entity = new Icepeserialmaster();

            entity.prod      = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.whse      = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.serlotno  = row.IsNull("serlotno") ? string.Empty : row.Field <string>("serlotno");
            entity.statusty  = row.IsNull("statusty") ? string.Empty : row.Field <string>("statusty");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }