Connection_can_be_obtained_after_initializing_the_context_when_using_EntityConnection_from_app_config_and_contains_cookie() { using (var context = new SimpleModelContextForModelFirst("name=EntityConnectionForSimpleModel")) { Connection_can_be_obtained_after_initializing_the_context_and_contains_cookie(context); } }
public void Named_connection_string_using_name_keyword_on_derived_context_can_be_used_to_create_context_for_existing_model() { using (var context = new SimpleModelContextForModelFirst("name=EntityConnectionForSimpleModel")) { Assert.NotNull(context.Products); VerifySimpleModelContext(context); } }
Connection_can_be_obtained_after_initializing_the_context_when_using_EntityConnection_built_from_connection_string_and_contains_cookie () { using (var context = new SimpleModelContextForModelFirst(SimpleModelEntityConnectionString)) { Connection_can_be_obtained_after_initializing_the_context_and_contains_cookie(context); } }
public void Entity_connection_string_on_derived_context_can_be_used_to_create_context_for_existing_model() { using (var context = new SimpleModelContextForModelFirst(SimpleModelEntityConnectionString)) { Assert.NotNull(context.Products); VerifySimpleModelContext(context); } }
public void Connection_can_be_obtained_after_initializing_the_context_when_using_existing_EntityConnection_and_contains_cookie() { using (var connection = new EntityConnection(SimpleModelEntityConnectionString)) { using (var context = new SimpleModelContextForModelFirst(connection)) { Connection_can_be_obtained_after_initializing_the_context_and_contains_cookie(context); } } }