Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcsebdelete(ref DataRow row, Icsebdelete entity)
 {
     row.SetField("functionname", entity.functionname);
     row.SetField("intype", entity.intype);
     row.SetField("ordertype", entity.ordertype);
     row.SetField("prod", entity.prod);
     row.SetField("whse", entity.whse);
     row.SetField("bundleid", entity.bundleid);
     row.SetField("units", entity.units);
     row.SetField("inquirefl", entity.inquirefl);
     row.SetField("secure", entity.secure);
     row.SetField("bundleseqno", entity.bundleseqno);
     row.SetField("userfield", entity.userfield);
 }
Ejemplo n.º 2
0
        public static Icsebdelete BuildIcsebdeleteFromRow(DataRow row)
        {
            Icsebdelete entity = new Icsebdelete();

            entity.functionname = row.IsNull("functionname") ? string.Empty : row.Field <string>("functionname");
            entity.intype       = row.IsNull("intype") ? string.Empty : row.Field <string>("intype");
            entity.ordertype    = row.IsNull("ordertype") ? string.Empty : row.Field <string>("ordertype");
            entity.prod         = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.whse         = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.bundleid     = row.IsNull("bundleid") ? string.Empty : row.Field <string>("bundleid");
            entity.units        = row.IsNull("units") ? string.Empty : row.Field <string>("units");
            entity.inquirefl    = row.Field <bool>("inquirefl");
            entity.secure       = row.IsNull("secure") ? 0 : row.Field <int>("secure");
            entity.bundleseqno  = row.IsNull("bundleseqno") ? 0 : row.Field <int>("bundleseqno");
            entity.userfield    = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }