Does anyone know how to change the mapped db table for an entity in EF4 (entity framework 4)?
Later edit: I think i\'ve found the place where the table names are def
You can execute a stored proc that changes the table name, passing the tablename as a variable. Then import the stored proc into EF4.
CREATE PROCEDURE ChangeTableName @TableName varchar(200) AS BEGIN SET NOCOUNT ON; EXEC sp_rename "User", @TableName END GO