Esempio n. 1
0
        public static Invserials BuildInvserialsFromRow(DataRow row)
        {
            Invserials entity = new Invserials();

            entity.serialNum   = row.IsNull("serial_num") ? string.Empty : row.Field <string>("serial_num");
            entity.serialRowID = row.Field <byte[]>("serialRowID").ToStringEncoded();
            entity.userfield   = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Esempio n. 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromInvserials(ref DataRow row, Invserials entity)
 {
     row.SetField("serial_num", entity.serialNum);
     row.SetField("serialRowID", entity.serialRowID.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }