Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWavepickemployeecriteria(ref DataRow row, Wavepickemployeecriteria entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("batchid", entity.batchid);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Wavepickemployeecriteria BuildWavepickemployeecriteriaFromRow(DataRow row)
        {
            Wavepickemployeecriteria entity = new Wavepickemployeecriteria();

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