Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromVaeicriteria(ref DataRow row, Vaeicriteria entity)
 {
     row.SetField("vano", entity.vano);
     row.SetField("vasuf", entity.vasuf);
     row.SetField("whse", entity.whse);
     row.SetField("prod", entity.prod);
     row.SetField("stagecd", entity.stagecd);
     row.SetField("verno", entity.verno);
     row.SetField("recordcountlimit", entity.recordcountlimit);
     row.SetField("userfield", entity.userfield);
 }
Esempio n. 2
0
        public static Vaeicriteria BuildVaeicriteriaFromRow(DataRow row)
        {
            Vaeicriteria entity = new Vaeicriteria();

            entity.vano             = row.IsNull("vano") ? 0 : row.Field <int>("vano");
            entity.vasuf            = row.IsNull("vasuf") ? 0 : row.Field <int>("vasuf");
            entity.whse             = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.prod             = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.stagecd          = row.IsNull("stagecd") ? 0 : row.Field <int>("stagecd");
            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);
        }