Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOtittrackbanner(ref DataRow row, Otittrackbanner entity)
 {
     row.SetField("trackno", entity.trackno);
     row.SetField("vendno", entity.vendno);
     row.SetField("whse", entity.whse);
     row.SetField("stagecd", entity.stagecd);
     row.SetField("userfield", entity.userfield);
 }
Ejemplo n.º 2
0
        public static Otittrackbanner BuildOtittrackbannerFromRow(DataRow row)
        {
            Otittrackbanner entity = new Otittrackbanner();

            entity.trackno   = row.IsNull("trackno") ? 0 : row.Field <int>("trackno");
            entity.vendno    = row.IsNull("vendno") ? decimal.Zero : row.Field <decimal>("vendno");
            entity.whse      = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.stagecd   = row.IsNull("stagecd") ? 0 : row.Field <int>("stagecd");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }