Exemple #1
0
        public static Reptwizardvalsapbw BuildReptwizardvalsapbwFromRow(DataRow row)
        {
            Reptwizardvalsapbw entity = new Reptwizardvalsapbw();

            entity.currproc = row.IsNull("currproc") ? string.Empty : row.Field <string>("currproc");
            entity.wtno     = row.IsNull("wtno") ? 0 : row.Field <int>("wtno");
            entity.wtsuf    = row.IsNull("wtsuf") ? 0 : row.Field <int>("wtsuf");
            return(entity);
        }
Exemple #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromReptwizardvalsapbw(ref DataRow row, Reptwizardvalsapbw entity)
 {
     row.SetField("currproc", entity.currproc);
     row.SetField("wtno", entity.wtno);
     row.SetField("wtsuf", entity.wtsuf);
 }