I'm defining POCO's, used with the Code First capabilities of Entity Framework 4.0.
Part of my data comes from an external source, and for that data I need to keep the identity column value identical to that of the external source, I sometimes need to set the ID myself. But for the same entities I sometimes don't have an Id and would like an Auto increment like behavior.
Is it possible to define the POCO in such a way, that when I set the value it would use it, and when I don't, it would auto increment? According to this mySQL forum answer mySQL is supposed to handle this scenario pretty well, but it seems that with the Entity Framwork doesn't...