title: How do i input text in EF Core through Console.Readline?
body: <p>I want to be able to enter a name tomy database through Console.Readline();
  But I never manage to make it work.
  I have tested the following options down below. But I always get an error that there is no object or that it is not possible to convert a string to my model</p>
  <p>Any ideas?</p>
  <p><strong>My code</strong></p>
  <pre><code> private readonly ApplicationDbContext _db;
          private readonly Customer _customer;
  
          public AddCustomer(ApplicationDbContext db, Customer customer)
          {
              _db = db;
              _customer = customer;
          }
  
  
          public void AddCustomers()
          {
  
  
       var CustomerName = _customer.Name.ToString();
   
  
              Console.WriteLine(&quot;Please enter customer name&quot;);
              CustomerName = Console.ReadLine();
              _db.Add(CustomerName);
  
  
  
          }
  
        
      }
  
  </code></pre>
  <p><strong>My model</strong></p>
  <pre><code>public class Customer
      {
          [Key]
          public int Id { get; set; }
  
          public string Name { get; set; }
  
          public string CustomerDog { get; set; }
  
          public string CustomerDogBreed { get; set; }
  
          public int CustomerDogSocialNumber { get; set; }
  
          public Services services { get; set; }
  
      }
  
  </code></pre>