Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromLoadoetranstypes(ref DataRow row, Loadoetranstypes entity)
 {
     row.SetField("seqno", entity.seqno);
     row.SetField("transtype", entity.transtype);
     row.SetField("transtypedesc", entity.transtypedesc);
     row.SetField("origincd", entity.origincd);
     row.SetField("origincdenable", entity.origincdenable);
     row.SetField("userfield", entity.userfield);
 }
Ejemplo n.º 2
0
        public static Loadoetranstypes BuildLoadoetranstypesFromRow(DataRow row)
        {
            Loadoetranstypes entity = new Loadoetranstypes();

            entity.seqno          = row.IsNull("seqno") ? 0 : row.Field <int>("seqno");
            entity.transtype      = row.IsNull("transtype") ? string.Empty : row.Field <string>("transtype");
            entity.transtypedesc  = row.IsNull("transtypedesc") ? string.Empty : row.Field <string>("transtypedesc");
            entity.origincd       = row.IsNull("origincd") ? string.Empty : row.Field <string>("origincd");
            entity.origincdenable = row.Field <bool>("origincdenable");
            entity.userfield      = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }