I\'m trying to connect to an SQL Server 2008 database in a shared hosting environment from C# from within an ASP.NET MVC 3 application connecting via EF (code first).
<
You don't say which version of EF you're using. If you're using Code First (4.1) you can specify the schema on a table attribute:
[Table("Users", Schema = "myschema")]
public class User { .. }
You can use Scott's article (the second one) as a basis, but you add an additional parameter. ie.:
modelBuilder.Entity().ToTable("TableName", "SchemaName");