Example #1
0
 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);
     }
 }
Example #2
0
 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);
     }
 }
Example #3
0
 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);
     }
 }
Example #4
0
 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);
     }
 }
Example #5
0
 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);
         }
     }
 }