Exemplo n.º 1
0
        public static Vaeccriteria BuildVaeccriteriaFromRow(DataRow row)
        {
            Vaeccriteria entity = new Vaeccriteria();

            entity.whse  = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.vano  = row.IsNull("vano") ? 0 : row.Field <int>("vano");
            entity.vasuf = row.IsNull("vasuf") ? 0 : row.Field <int>("vasuf");
            return(entity);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromVaeccriteria(ref DataRow row, Vaeccriteria entity)
 {
     row.SetField("whse", entity.whse);
     row.SetField("vano", entity.vano);
     row.SetField("vasuf", entity.vasuf);
 }