Is it possible to create, not just a table with EF CodeFirst, but also have the table be part of a schema?
You can specify the schema with data annotations as follows
[Table("MyTable", "MySchema")]
public class MyEntity
{
}
Or with fluent API
modelMoulder.Entity<MyEntity>().ToTable("MyTable", "MySchema");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With