Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIceuremoveunavailcriteria(ref DataRow row, Iceuremoveunavailcriteria entity)
 {
     row.SetField("whse", entity.whse);
     row.SetField("prod", entity.prod);
     row.SetField("mode", entity.mode);
     row.SetField("jrnlno", entity.jrnlno);
     row.SetField("userfield", entity.userfield);
 }
Exemplo n.º 2
0
        public static Iceuremoveunavailcriteria BuildIceuremoveunavailcriteriaFromRow(DataRow row)
        {
            Iceuremoveunavailcriteria entity = new Iceuremoveunavailcriteria();

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