Beispiel #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSeqcontrolcriteria(ref DataRow row, Seqcontrolcriteria entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("sc_type", entity.scType);
     row.SetField("sc_table", entity.scTable);
     row.SetField("sc_id", entity.scId);
     row.SetField("seqcontrolcriteriauserfield", entity.seqcontrolcriteriauserfield);
     row.SetField("userfield", entity.userfield);
 }
Beispiel #2
0
        public static Seqcontrolcriteria BuildSeqcontrolcriteriaFromRow(DataRow row)
        {
            Seqcontrolcriteria entity = new Seqcontrolcriteria();

            entity.coNum   = row.IsNull("co_num") ? string.Empty : row.Field <string>("co_num");
            entity.whNum   = row.IsNull("wh_num") ? string.Empty : row.Field <string>("wh_num");
            entity.scType  = row.IsNull("sc_type") ? string.Empty : row.Field <string>("sc_type");
            entity.scTable = row.IsNull("sc_table") ? string.Empty : row.Field <string>("sc_table");
            entity.scId    = row.IsNull("sc_id") ? string.Empty : row.Field <string>("sc_id");
            entity.seqcontrolcriteriauserfield = row.IsNull("seqcontrolcriteriauserfield") ? string.Empty : row.Field <string>("seqcontrolcriteriauserfield");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }