Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWlaowhsesettings(ref DataRow row, Wlaowhsesettings entity)
 {
     row.SetField("whse", entity.whse);
     row.SetField("modwlfl", entity.modwlfl);
     row.SetField("wlwhsefl", entity.wlwhsefl);
     row.SetField("wlrcvonlyfl", entity.wlrcvonlyfl);
     row.SetField("wlesbfl", entity.wlesbfl);
     row.SetField("errormsg", entity.errormsg);
     row.SetField("userfield", entity.userfield);
 }
Example #2
0
        public static Wlaowhsesettings BuildWlaowhsesettingsFromRow(DataRow row)
        {
            Wlaowhsesettings entity = new Wlaowhsesettings();

            entity.whse        = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.modwlfl     = row.Field <bool>("modwlfl");
            entity.wlwhsefl    = row.Field <bool>("wlwhsefl");
            entity.wlrcvonlyfl = row.Field <bool>("wlrcvonlyfl");
            entity.wlesbfl     = row.Field <bool>("wlesbfl");
            entity.errormsg    = row.IsNull("errormsg") ? string.Empty : row.Field <string>("errormsg");
            entity.userfield   = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }