Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPdecgetproductresults(ref DataRow row, Pdecgetproductresults entity)
 {
     row.SetField("prod", entity.prod);
     row.SetField("descrip1", entity.descrip1);
     row.SetField("descrip2", entity.descrip2);
     row.SetField("userfield", entity.userfield);
 }
Exemplo n.º 2
0
        public static Pdecgetproductresults BuildPdecgetproductresultsFromRow(DataRow row)
        {
            Pdecgetproductresults entity = new Pdecgetproductresults();

            entity.prod      = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.descrip1  = row.IsNull("descrip1") ? string.Empty : row.Field <string>("descrip1");
            entity.descrip2  = row.IsNull("descrip2") ? string.Empty : row.Field <string>("descrip2");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }