Entity Framework DbContext constructor with connection string
问题 Can someone help me understand the following two approaches to pass a connection string to the DbContext ? Approach #1: public EWebDBContextEMS() : base("mainConnectionString") { } and approach #2: public EWebDBContextEMS() : base("name=mainConnectionString") { } This article states that name=... will get created by designer, but I tested with pure DbContext code, it works as well. Is this an intented behaviour of the DbContext constructor? And in the documentation, it does not mention that