Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromVaesloadttcriteria(ref DataRow row, Vaesloadttcriteria entity)
 {
     row.SetField("vano", entity.vano);
     row.SetField("vasuf", entity.vasuf);
     row.SetField("seqno", entity.seqno);
     row.SetField("prod", entity.prod);
     row.SetField("whse", entity.whse);
     row.SetField("verno", entity.verno);
     row.SetField("stagecd", entity.stagecd);
     row.SetField("recordlimit", entity.recordlimit);
     row.SetField("userfield", entity.userfield);
 }
Exemplo n.º 2
0
        public static Vaesloadttcriteria BuildVaesloadttcriteriaFromRow(DataRow row)
        {
            Vaesloadttcriteria entity = new Vaesloadttcriteria();

            entity.vano        = row.IsNull("vano") ? 0 : row.Field <int>("vano");
            entity.vasuf       = row.IsNull("vasuf") ? 0 : row.Field <int>("vasuf");
            entity.seqno       = row.IsNull("seqno") ? 0 : row.Field <int>("seqno");
            entity.prod        = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.whse        = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.verno       = row.IsNull("verno") ? 0 : row.Field <int>("verno");
            entity.stagecd     = row.IsNull("stagecd") ? string.Empty : row.Field <string>("stagecd");
            entity.recordlimit = row.IsNull("recordlimit") ? 0 : row.Field <int>("recordlimit");
            entity.userfield   = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }