title: Populating objects in C#
body: <p>I have Order,OrderDetails and OrderStatus objects as shown below:</p>
  
  <pre><code>public class Order
  {
    public override int OrderId { get; set; }
    public string FName { get; set; }
    public string MName { get; set; }
    public string LName { get; set; }
    public string Street { get; set; }
    public string City { get; set; }
    public List&lt;OrderDetails&gt; OrderDetails { get; set; };
  }
  
  public class OrderDetails
  {
    public override int OrderdetailsId { get; set; }
    public int OrderId { get; set; }
    public int ProductID { get; set; }
    public int Qty { get; set; }
    public List&lt;OrderStatus&gt; OrderStat { get; set; };
  }
  
  public class OrderStatus
  {
  public override int OrderdetailsStatusId { get; set; }  
  public int OrderdetailsId  { get; set; }
  public int StatusID { get; set; }
  
  }
  </code></pre>
  
  <p>I cannot use LinQ. I want to populate the order object like we do in LinQ.</p>
  
  <p>How do I populate all all the properties in Order object:
  for eg.</p>
  
  <pre><code>Order o =new Order();
  o.FName="John";
  o.LName="abc";
  o.Street="TStreet";
  o.City="Atlanta";
  </code></pre>
  
  <p>then
  o.Orderdetails.Add(orderdetails)</p>
  
  <p>How do I do that here in C# when not using LinQ.</p>