We are working with entity framework 4.1 - code first. We need to be able to name our constraints and not have their names auto-generated by SQL Server. Is this possible?<
Could you run some raw sql to rename them after creation? You may need to disable the EdmMetadata convention.
context.Database.ExecuteSqlCommand( @"DECLARE @pk sysname SELECT @pk = name FROM sysobjects WHERE parent_obj = object_id('users') and xtype = 'pk' EXEC sp_rename @pk, 'pk_users_UserId' ");