Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromAbcapplycriteria(ref DataRow row, Abcapplycriteria entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("abcapplyuserfield", entity.abcapplyuserfield);
     row.SetField("userfield", entity.userfield);
 }
Exemplo n.º 2
0
        public static Abcapplycriteria BuildAbcapplycriteriaFromRow(DataRow row)
        {
            Abcapplycriteria entity = new Abcapplycriteria();

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