Using Entity Framework 4.1 code first and POCO entities in MVC3; I would like to create a single-row table called ActiveBlog, which has an id, and holds a reference to a blog table.
ActiveBlog
PK: ID, FK: BlogID
How can I define a table, both in the database and in my POCO entity, that is constraint to only hold one row?
Set a trigger in your database. See http://social.msdn.microsoft.com/forums/en-us/sqldatabaseengine/thread/FCC7CECA-CF2F-42E2-8E79-1DCB5A3B82EC