예제 #1
0
        public static Updtoelinedsplttcriteria BuildUpdtoelinedsplttcriteriaFromRow(DataRow row)
        {
            Updtoelinedsplttcriteria entity = new Updtoelinedsplttcriteria();

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