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

            entity.rowidWterah = row.Field <byte[]>("rowid-wterah").ToStringEncoded();
            entity.mergefl     = row.Field <bool>("mergefl");
            entity.userfield   = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWtrrarreptadjmergerepts(ref DataRow row, Wtrrarreptadjmergerepts entity)
 {
     row.SetField("rowid-wterah", entity.rowidWterah.ToByteArray());
     row.SetField("mergefl", entity.mergefl);
     row.SetField("userfield", entity.userfield);
 }