Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromLocpendingpickcriteria(ref DataRow row, Locpendingpickcriteria entity)
 {
     row.SetField("ch_co", entity.chCo);
     row.SetField("ch_wh", entity.chWh);
     row.SetField("ch_loc", entity.chLoc);
     row.SetField("locpendingpickcriteriauserfield", entity.locpendingpickcriteriauserfield);
     row.SetField("userfield", entity.userfield);
 }
Example #2
0
        public static Locpendingpickcriteria BuildLocpendingpickcriteriaFromRow(DataRow row)
        {
            Locpendingpickcriteria entity = new Locpendingpickcriteria();

            entity.chCo  = row.IsNull("ch_co") ? string.Empty : row.Field <string>("ch_co");
            entity.chWh  = row.IsNull("ch_wh") ? string.Empty : row.Field <string>("ch_wh");
            entity.chLoc = row.IsNull("ch_loc") ? string.Empty : row.Field <string>("ch_loc");
            entity.locpendingpickcriteriauserfield = row.IsNull("locpendingpickcriteriauserfield") ? string.Empty : row.Field <string>("locpendingpickcriteriauserfield");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }