Exemple #1
0
        public static Oelinehistcriteria BuildOelinehistcriteriaFromRow(DataRow row)
        {
            Oelinehistcriteria entity = new Oelinehistcriteria();

            entity.orderno = row.IsNull("orderno") ? 0 : row.Field <int>("orderno");
            entity.lineno  = row.IsNull("lineno") ? 0 : row.Field <int>("lineno");
            return(entity);
        }
Exemple #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOelinehistcriteria(ref DataRow row, Oelinehistcriteria entity)
 {
     row.SetField("orderno", entity.orderno);
     row.SetField("lineno", entity.lineno);
 }