Пример #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromArettranscdload(ref DataRow row, Arettranscdload entity)
 {
     row.SetField("seqno", entity.seqno);
     row.SetField("transcd", entity.transcd);
     row.SetField("transcddesc", entity.transcddesc);
     row.SetField("userfield", entity.userfield);
 }
Пример #2
0
        public static Arettranscdload BuildArettranscdloadFromRow(DataRow row)
        {
            Arettranscdload entity = new Arettranscdload();

            entity.seqno       = row.IsNull("seqno") ? 0 : row.Field <int>("seqno");
            entity.transcd     = row.IsNull("transcd") ? 0 : row.Field <int>("transcd");
            entity.transcddesc = row.IsNull("transcddesc") ? string.Empty : row.Field <string>("transcddesc");
            entity.userfield   = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }