Usually CodeFirst uses reflection for load the definition of the tables during DbContext startup.
When you have a lot of tables, I read that it needs about 300% the time required for EF Database First or Entity First.
Is that problem related only to Microsoft driver, or the same problem is also for dotConnect?
because I need to create a model with a lot of tables, so I have to decide if use Code First (I prefer) or Model First...
Related to that, if I generate the edmx with this instructions:
Code: Select all
using (DalContext context = new DalContext(new OracleConnection(connBuilder.ToString())))
{
using (var writer = new XmlTextWriter(Settings.Default.EdmxPath, Encoding.Default))
{
EdmxWriter.WriteEdmx(context, writer);
}
Thank you in advance[/code]