示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWavesummarycriteria(ref DataRow row, Wavesummarycriteria entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("batchid", entity.batchid);
     row.SetField("row_id", entity.rowId.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }
示例#2
0
        public static Wavesummarycriteria BuildWavesummarycriteriaFromRow(DataRow row)
        {
            Wavesummarycriteria entity = new Wavesummarycriteria();

            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.batchid   = row.IsNull("batchid") ? 0 : row.Field <int>("batchid");
            entity.rowId     = row.Field <byte[]>("row_id").ToStringEncoded();
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }