Beispiel #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromDnbilaunchrequest(ref DataRow row, Dnbilaunchrequest entity)
 {
     row.SetField("requesttype", entity.requesttype);
     row.SetField("custno", entity.custno);
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("userfield", entity.userfield);
 }
Beispiel #2
0
        public static Dnbilaunchrequest BuildDnbilaunchrequestFromRow(DataRow row)
        {
            Dnbilaunchrequest entity = new Dnbilaunchrequest();

            entity.requesttype = row.IsNull("requesttype") ? string.Empty : row.Field <string>("requesttype");
            entity.custno      = row.IsNull("custno") ? decimal.Zero : row.Field <decimal>("custno");
            entity.orderno     = row.IsNull("orderno") ? 0 : row.Field <int>("orderno");
            entity.ordersuf    = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf");
            entity.userfield   = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }