Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromItemlotcriteria(ref DataRow row, Itemlotcriteria entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("abs_num", entity.absNum);
     row.SetField("itemlotcriteriauserfield", entity.itemlotcriteriauserfield);
     row.SetField("userfield", entity.userfield);
 }
Exemplo n.º 2
0
        public static Itemlotcriteria BuildItemlotcriteriaFromRow(DataRow row)
        {
            Itemlotcriteria entity = new Itemlotcriteria();

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