Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromReptwizardvalsapbp(ref DataRow row, Reptwizardvalsapbp entity)
 {
     row.SetField("currproc", entity.currproc);
     row.SetField("receiverno", entity.receiverno);
     row.SetField("pono", entity.pono);
     row.SetField("posuf", entity.posuf);
 }
Exemple #2
0
        public static Reptwizardvalsapbp BuildReptwizardvalsapbpFromRow(DataRow row)
        {
            Reptwizardvalsapbp entity = new Reptwizardvalsapbp();

            entity.currproc   = row.IsNull("currproc") ? string.Empty : row.Field <string>("currproc");
            entity.receiverno = row.IsNull("receiverno") ? string.Empty : row.Field <string>("receiverno");
            entity.pono       = row.IsNull("pono") ? 0 : row.Field <int>("pono");
            entity.posuf      = row.IsNull("posuf") ? 0 : row.Field <int>("posuf");
            return(entity);
        }