Beispiel #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcseegetlistresults(ref DataRow row, Icseegetlistresults entity)
 {
     row.SetField("custno", entity.custno);
     row.SetField("arscnotesfl", entity.arscnotesfl);
     row.SetField("shipto", entity.shipto);
     row.SetField("arssnotesfl", entity.arssnotesfl);
     row.SetField("shiptoname", entity.shiptoname);
     row.SetField("prod", entity.prod);
     row.SetField("prodnotesfl", entity.prodnotesfl);
     row.SetField("proddescrip", entity.proddescrip);
     row.SetField("icseerowid", entity.icseerowid.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }
Beispiel #2
0
        public static Icseegetlistresults BuildIcseegetlistresultsFromRow(DataRow row)
        {
            Icseegetlistresults entity = new Icseegetlistresults();

            entity.custno      = row.IsNull("custno") ? decimal.Zero : row.Field <decimal>("custno");
            entity.arscnotesfl = row.IsNull("arscnotesfl") ? string.Empty : row.Field <string>("arscnotesfl");
            entity.shipto      = row.IsNull("shipto") ? string.Empty : row.Field <string>("shipto");
            entity.arssnotesfl = row.IsNull("arssnotesfl") ? string.Empty : row.Field <string>("arssnotesfl");
            entity.shiptoname  = row.IsNull("shiptoname") ? string.Empty : row.Field <string>("shiptoname");
            entity.prod        = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.prodnotesfl = row.IsNull("prodnotesfl") ? string.Empty : row.Field <string>("prodnotesfl");
            entity.proddescrip = row.IsNull("proddescrip") ? string.Empty : row.Field <string>("proddescrip");
            entity.icseerowid  = row.Field <byte[]>("icseerowid").ToStringEncoded();
            entity.userfield   = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }