title: Working with GUIDs and Entity Framework
body: <p><a href="https://stackoverflow.com/questions/332273/entity-framework-guid">This question</a> highlights that you can not use server side generated GUIDs with the entity framework.  But, I want the generation of the GUID handled at the DAL level of Database API (ie, when an entity's constructor is called, I want the id of the entity to be initialized to a new GUID).  My plan is to write a small tool to generate a bunch of code files that are partial classes of the entities.  I have a way to do it, the question is: Am I out of my mind for doing it this way or is this the way I should be doing it? </p>
  
  <p>My issue is, when the edmx file is update, I don't want to have to also edit a bunch of code files, I just want to run a tool that will do what is necessary.</p>
  
  <p>Again, Is my head on straight?</p>