Example #1
0
        public static Oelinecommsubtotmovecriteria BuildOelinecommsubtotmovecriteriaFromRow(DataRow row)
        {
            Oelinecommsubtotmovecriteria entity = new Oelinecommsubtotmovecriteria();

            entity.movetype      = row.IsNull("movetype") ? string.Empty : row.Field <string>("movetype");
            entity.lineno        = row.IsNull("lineno") ? 0 : row.Field <int>("lineno");
            entity.linetype      = row.IsNull("linetype") ? string.Empty : row.Field <string>("linetype");
            entity.seqno         = row.IsNull("seqno") ? 0 : row.Field <int>("seqno");
            entity.descrip       = row.IsNull("descrip") ? string.Empty : row.Field <string>("descrip");
            entity.descrip1      = row.IsNull("descrip1") ? string.Empty : row.Field <string>("descrip1");
            entity.intseqnoafter = row.IsNull("intseqnoafter") ? 0 : row.Field <int>("intseqnoafter");
            entity.userfield     = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Example #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOelinecommsubtotmovecriteria(ref DataRow row, Oelinecommsubtotmovecriteria entity)
 {
     row.SetField("movetype", entity.movetype);
     row.SetField("lineno", entity.lineno);
     row.SetField("linetype", entity.linetype);
     row.SetField("seqno", entity.seqno);
     row.SetField("descrip", entity.descrip);
     row.SetField("descrip1", entity.descrip1);
     row.SetField("intseqnoafter", entity.intseqnoafter);
     row.SetField("userfield", entity.userfield);
 }