Пример #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIceuloaddetailscriteria(ref DataRow row, Iceuloaddetailscriteria entity)
 {
     row.SetField("whse", entity.whse);
     row.SetField("prod", entity.prod);
     row.SetField("reasunavty", entity.reasunavty);
     row.SetField("mode", entity.mode);
     row.SetField("userfield", entity.userfield);
 }
Пример #2
0
        public static Iceuloaddetailscriteria BuildIceuloaddetailscriteriaFromRow(DataRow row)
        {
            Iceuloaddetailscriteria entity = new Iceuloaddetailscriteria();

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