Exemplo n.º 1
0
        public static Poblanketcheckshipfmnosingle BuildPoblanketcheckshipfmnosingleFromRow(DataRow row)
        {
            Poblanketcheckshipfmnosingle entity = new Poblanketcheckshipfmnosingle();

            entity.name        = row.IsNull("name") ? string.Empty : row.Field <string>("name");
            entity.shipviaty   = row.IsNull("shipviaty") ? string.Empty : row.Field <string>("shipviaty");
            entity.shipviadesc = row.IsNull("shipviadesc") ? string.Empty : row.Field <string>("shipviadesc");
            entity.apssrowid   = row.Field <byte[]>("apssrowid").ToStringEncoded();
            return(entity);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPoblanketcheckshipfmnosingle(ref DataRow row, Poblanketcheckshipfmnosingle entity)
 {
     row.SetField("name", entity.name);
     row.SetField("shipviaty", entity.shipviaty);
     row.SetField("shipviadesc", entity.shipviadesc);
     row.SetField("apssrowid", entity.apssrowid.ToByteArray());
 }