Пример #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPhysinvcriteria(ref DataRow row, Physinvcriteria entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("user_id", entity.userId);
     row.SetField("physinvuserfield", entity.physinvuserfield);
     row.SetField("userfield", entity.userfield);
 }
Пример #2
0
        public static Physinvcriteria BuildPhysinvcriteriaFromRow(DataRow row)
        {
            Physinvcriteria entity = new Physinvcriteria();

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