Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromVaheaderlistcriteria(ref DataRow row, Vaheaderlistcriteria entity)
 {
     row.SetField("whse", entity.whse);
     row.SetField("shipprod", entity.shipprod);
     row.SetField("vano", entity.vano);
     row.SetField("vasuf", entity.vasuf);
     row.SetField("stagecd", entity.stagecd);
     row.SetField("enterdt", entity.enterdt);
     row.SetField("verno", entity.verno);
     row.SetField("recordcountlimit", entity.recordcountlimit);
     row.SetField("userfield", entity.userfield);
 }
Ejemplo n.º 2
0
        public static Vaheaderlistcriteria BuildVaheaderlistcriteriaFromRow(DataRow row)
        {
            Vaheaderlistcriteria entity = new Vaheaderlistcriteria();

            entity.whse             = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.shipprod         = row.IsNull("shipprod") ? string.Empty : row.Field <string>("shipprod");
            entity.vano             = row.IsNull("vano") ? 0 : row.Field <int>("vano");
            entity.vasuf            = row.IsNull("vasuf") ? 0 : row.Field <int>("vasuf");
            entity.stagecd          = row.IsNull("stagecd") ? 0 : row.Field <int>("stagecd");
            entity.enterdt          = row.Field <DateTime?>("enterdt");
            entity.verno            = row.IsNull("verno") ? 0 : row.Field <int>("verno");
            entity.recordcountlimit = row.IsNull("recordcountlimit") ? 0 : row.Field <int>("recordcountlimit");
            entity.userfield        = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }