Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOmorderdropcriteria(ref DataRow row, Omorderdropcriteria entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("auto_alloc_rvs", entity.autoAllocRvs);
     row.SetField("userfield", entity.userfield);
 }
Esempio n. 2
0
        public static Omorderdropcriteria BuildOmorderdropcriteriaFromRow(DataRow row)
        {
            Omorderdropcriteria entity = new Omorderdropcriteria();

            entity.coNum        = row.IsNull("co_num") ? string.Empty : row.Field <string>("co_num");
            entity.whNum        = row.IsNull("wh_num") ? string.Empty : row.Field <string>("wh_num");
            entity.autoAllocRvs = row.Field <bool>("auto_alloc_rvs");
            entity.userfield    = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }