Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPackinglistpocriteria(ref DataRow row, Packinglistpocriteria entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("rt_num", entity.rtNum);
     row.SetField("packinglistpocriteriauserfield", entity.packinglistpocriteriauserfield);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Packinglistpocriteria BuildPackinglistpocriteriaFromRow(DataRow row)
        {
            Packinglistpocriteria entity = new Packinglistpocriteria();

            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.rtNum = row.IsNull("rt_num") ? string.Empty : row.Field <string>("rt_num");
            entity.packinglistpocriteriauserfield = row.IsNull("packinglistpocriteriauserfield") ? string.Empty : row.Field <string>("packinglistpocriteriauserfield");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }