Пример #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcentryserialsgridinfo(ref DataRow row, Icentryserialsgridinfo 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("userfield", entity.userfield);
 }
Пример #2
0
        public static Icentryserialsgridinfo BuildIcentryserialsgridinfoFromRow(DataRow row)
        {
            Icentryserialsgridinfo entity = new Icentryserialsgridinfo();

            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.userfield     = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }