Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPoblanketupdateresults(ref DataRow row, Poblanketupdateresults entity)
 {
     row.SetField("pono", entity.pono);
     row.SetField("posuf", entity.posuf);
     row.SetField("name", entity.name);
     row.SetField("descrip", entity.descrip);
     row.SetField("apsvrowid", entity.apsvrowid.ToByteArray());
     row.SetField("apssrowid", entity.apssrowid.ToByteArray());
 }
Example #2
0
        public static Poblanketupdateresults BuildPoblanketupdateresultsFromRow(DataRow row)
        {
            Poblanketupdateresults entity = new Poblanketupdateresults();

            entity.pono      = row.IsNull("pono") ? 0 : row.Field <int>("pono");
            entity.posuf     = row.IsNull("posuf") ? 0 : row.Field <int>("posuf");
            entity.name      = row.IsNull("name") ? string.Empty : row.Field <string>("name");
            entity.descrip   = row.IsNull("descrip") ? string.Empty : row.Field <string>("descrip");
            entity.apsvrowid = row.Field <byte[]>("apsvrowid").ToStringEncoded();
            entity.apssrowid = row.Field <byte[]>("apssrowid").ToStringEncoded();
            return(entity);
        }