Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcentrylotsgridinfo(ref DataRow row, Icentrylotsgridinfo entity)
 {
     row.SetField("seqno", entity.seqno);
     row.SetField("columnid", entity.columnid);
     row.SetField("columnlabel", entity.columnlabel);
     row.SetField("columnenabled", entity.columnenabled);
     row.SetField("columnhidden", entity.columnhidden);
     row.SetField("lotsgridinfo", entity.lotsgridinfo);
     row.SetField("userfield", entity.userfield);
 }
Esempio n. 2
0
        public static Icentrylotsgridinfo BuildIcentrylotsgridinfoFromRow(DataRow row)
        {
            Icentrylotsgridinfo entity = new Icentrylotsgridinfo();

            entity.seqno         = row.IsNull("seqno") ? 0 : row.Field <int>("seqno");
            entity.columnid      = row.IsNull("columnid") ? string.Empty : row.Field <string>("columnid");
            entity.columnlabel   = row.IsNull("columnlabel") ? string.Empty : row.Field <string>("columnlabel");
            entity.columnenabled = row.Field <bool>("columnenabled");
            entity.columnhidden  = row.Field <bool>("columnhidden");
            entity.lotsgridinfo  = row.IsNull("lotsgridinfo") ? string.Empty : row.Field <string>("lotsgridinfo");
            entity.userfield     = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }