Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromLoadunavailttcriteria(ref DataRow row, Loadunavailttcriteria entity)
 {
     row.SetField("prod", entity.prod);
     row.SetField("whse", entity.whse);
     row.SetField("reasunavty", entity.reasunavty);
     row.SetField("vendno", entity.vendno);
     row.SetField("userfield", entity.userfield);
 }
Esempio n. 2
0
        public static Loadunavailttcriteria BuildLoadunavailttcriteriaFromRow(DataRow row)
        {
            Loadunavailttcriteria entity = new Loadunavailttcriteria();

            entity.prod       = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.whse       = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.reasunavty = row.IsNull("reasunavty") ? string.Empty : row.Field <string>("reasunavty");
            entity.vendno     = row.IsNull("vendno") ? decimal.Zero : row.Field <decimal>("vendno");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }