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

            entity.vendno    = row.IsNull("vendno") ? decimal.Zero : row.Field <decimal>("vendno");
            entity.totalty   = row.IsNull("totalty") ? string.Empty : row.Field <string>("totalty");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromVendorbaldisplaycriteria(ref DataRow row, Vendorbaldisplaycriteria entity)
 {
     row.SetField("vendno", entity.vendno);
     row.SetField("totalty", entity.totalty);
     row.SetField("userfield", entity.userfield);
 }