Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOelinesuperavailcriteria(ref DataRow row, Oelinesuperavailcriteria entity)
 {
     row.SetField("prod", entity.prod);
     row.SetField("whse", entity.whse);
     row.SetField("superfl", entity.superfl);
     row.SetField("porrarfl", entity.porrarfl);
 }
Exemple #2
0
        public static Oelinesuperavailcriteria BuildOelinesuperavailcriteriaFromRow(DataRow row)
        {
            Oelinesuperavailcriteria entity = new Oelinesuperavailcriteria();

            entity.prod     = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.whse     = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.superfl  = row.Field <bool>("superfl");
            entity.porrarfl = row.Field <bool>("porrarfl");
            return(entity);
        }