title: Entity Framework Model or Database first and Code first without Visual Studio?
body: <p>The MSDN tutorials and videos show how to use visual studio to interrogate a database and write C# code. They also show how to parse the code and generate a database. This works but it is difficult to automate.</p>
  
  <p>They all use visual studio which requires mouse clicks.</p>
  
  <p>(1) How can I fire up a powershell command prompt and automate the generation of C# code from a database (without using Visual Studio)?</p>
  
  <p>(2) How can I automate the generation of a database from my C# code (again, using powershell and no visual studio)?</p>
  
  <p>Thanks
  Siegfried</p>