Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromReporttransfer(ref DataRow row, Reporttransfer entity)
 {
     row.SetField("rptblob", entity.rptblob.ToByteArray());
     row.SetField("rptclob", entity.rptclob);
     row.SetField("usePDF", entity.usePDF);
     row.SetField("userfield", entity.userfield);
 }
Exemplo n.º 2
0
        public static Reporttransfer BuildReporttransferFromRow(DataRow row)
        {
            Reporttransfer entity = new Reporttransfer();

            entity.rptblob   = row.Field <byte[]>("rptblob").ToStringEncoded();
            entity.rptclob   = row.IsNull("rptclob") ? string.Empty : row.Field <string>("rptclob");
            entity.usePDF    = row.Field <bool>("usePDF");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }