I have a Code First EF class like so:
public class Event
{
[Key]
[DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
public int ID { g
To start, I am not aware of a good solution for this. I recommend you rethink what you are trying to do, or explain further why you need to do this. There's probably a better solution. The only solution I know of for what you want is ugly, and I can't really recommend it.
Perhaps someone will come along with a really awesome solution for you. Sorry, I know this was more of a non-answer for you. Good Luck.