示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromBarcodeidcriteria(ref DataRow row, Barcodeidcriteria entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("vendor_id", entity.vendorId);
     row.SetField("barcodeidcriteriauserfield", entity.barcodeidcriteriauserfield);
     row.SetField("userfield", entity.userfield);
 }
示例#2
0
        public static Barcodeidcriteria BuildBarcodeidcriteriaFromRow(DataRow row)
        {
            Barcodeidcriteria entity = new Barcodeidcriteria();

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