示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromApsdgetlistcriteria(ref DataRow row, Apsdgetlistcriteria entity)
 {
     row.SetField("vendno", entity.vendno);
     row.SetField("shipfmno", entity.shipfmno);
     row.SetField("shipviaty", entity.shipviaty);
     row.SetField("userfield", entity.userfield);
 }
示例#2
0
        public static Apsdgetlistcriteria BuildApsdgetlistcriteriaFromRow(DataRow row)
        {
            Apsdgetlistcriteria entity = new Apsdgetlistcriteria();

            entity.vendno    = row.IsNull("vendno") ? decimal.Zero : row.Field <decimal>("vendno");
            entity.shipfmno  = row.IsNull("shipfmno") ? 0 : row.Field <int>("shipfmno");
            entity.shipviaty = row.IsNull("shipviaty") ? string.Empty : row.Field <string>("shipviaty");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }