Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

135
Views
How to add new fields to an existing model coming from nuget package

I have a nuget package in my project, and I am using one model from that package. Below

public class InOrderItemModel
{
    public InOrderItemModel();
    public string Description { get; set; }
    public int Quantity { get; set; }
    public decimal Price { get; set; }
}

In the above class I need to add few more properties so that I can populate and use it. I have to add below

public string OfferCode { get; set; }
public int ItemId { get; set; }
public decimal Price { get; set; }

I don't want to create a new class. Don't want to disturb existing value assignments and all. I just want to get the required properties so that I can add data and use it when required How can I do that ?

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!