C# Class WeenyMapper.Specs.RepositoryAcceptanceSpecs

Inheritance: AcceptanceSpecsBase
显示文件 Open project: erikojebo/WeenyMapper

Protected Methods

Method Description
CreateRepository ( IConvention convention ) : Repository
PerformSetUp ( ) : void

Private Methods

Method Description
Accidentally_calling_Insert_with_a_collection_still_inserts_the_objects ( ) : void
Alias_can_be_given_to_the_starting_table_of_a_query ( ) : void
An_object_can_be_inserted_into_the_database_and_read_back_via_a_query_on_the_given_id ( ) : void
AssertEqualsManagerAndSubordinates ( Employee employee, Employee actualEmployee ) : void
Bool_properties_can_be_used_in_queries_without_explicit_comparison_to_true_or_false ( ) : void
Collections_are_loaded_correctly_for_list_query_where_entity_is_joined_to_itself_with_multiple_collections_using_only_parent_to_child_relation ( ) : void
Collections_are_loaded_correctly_for_query_fetching_only_a_single_entity_where_entity_is_joined_to_itself_with_multiple_collections_using_only_parent_to_child_relation ( ) : void
Condition_can_be_placed_on_aliased_table_when_joining_entity_to_itself ( ) : void
Condition_can_be_placed_on_table_without_alias_when_joining_with_aliased_table ( ) : void
Conditions_on_multiple_tables_are_combined_with_the_expected_operator_precedence ( ) : void
Conditions_on_multiple_tables_are_combined_with_the_expected_operator_precedence_when_specifying_conditions_alternating_between_tables ( ) : void
Conjuncted_conditions_on_multiple_aliased_tables_can_be_specified_in_a_single_join_query ( ) : void
Connection_scopes_can_be_disposed_manually ( ) : void
Connection_scopes_can_be_nested ( ) : void
Default_convention_only_maps_non_static_public_read_write_properties ( ) : void
Delete_commands_can_be_issued_to_update_multiple_entities_at_once ( ) : void
Deleting_an_entity_deletes_the_corresponding_row_and_no_other_row ( ) : void
Different_relations_on_same_entity_can_be_loaded_in_separate_queries_using_caching_repository ( ) : void
Disjuncted_conditions_on_multiple_tables_can_be_specified_in_a_single_join_query ( ) : void
Entities_with_identity_generated_ids_gets_assigned_id_written_to_id_property_after_insert ( ) : void
Entities_with_relation_mapped_as_both_reference_and_foreign_key_value_can_be_written_and_read_back_again_using_join ( ) : void
Entities_with_relation_mapped_as_both_reference_and_foreign_key_value_can_be_written_and_read_back_again_using_single_table_query ( ) : void
Entity_can_be_joined_to_itself_without_constraints ( ) : void
Entity_with_navigation_property_cah_be_joined_to_entity_without_collection_property ( ) : void
Entity_without_primary_key_can_be_written_and_read_back_again ( ) : void
Enum_values_are_stored_as_integers ( ) : void
Exception_is_thrown_for_invalid_join ( ) : void
Exceptions_in_a_nested_transaction_rolls_back_the_whole_transaction ( ) : void
Expressions_can_be_used_to_run_queries ( ) : void
Find_query_can_be_evaluated_to_a_single_scalar_value ( ) : void
Id_column_does_not_have_to_be_included_in_partial_select_for_entity_with_int_id ( ) : void
Id_column_does_not_have_to_be_included_in_partial_select_for_entity_with_string_id ( ) : void
Less_than_and_greater_than_can_be_used_for_filtering ( ) : void
Less_than_or_equal_and_greater_than_or_equal_can_be_used_for_filtering ( ) : void
Linq_contains_call_within_composite_query_expressions_can_be_used_to_run_sql_in_queries ( ) : void
Many_to_one_relationship_can_be_written_and_read_back_again_in_single_query_using_join ( ) : void
Multi_level_relationship_can_be_written_and_read_back_again_in_single_query_using_join ( ) : void
Multi_level_relationship_directed_from_child_to_parent_can_be_written_and_read_back_in_single_query ( ) : void
Multi_level_relationship_directed_from_middle_level_out_to_parent_and_to_child_can_be_read_with_two_way_relations ( ) : void
Multiple_entities_can_be_inserted_with_one_operation ( ) : void
Multiple_matching_objects_can_be_read_with_a_single_query ( ) : void
Multiple_operations_can_use_the_same_connection_when_explicitly_using_a_connection_scope ( ) : void
Multiple_partial_objects_can_be_read_by_explicitly_specifying_which_columns_to_fetch ( ) : void
Multiple_properties_can_be_used_when_querying_for_objects ( ) : void
Multiple_where_clauses_can_be_combined_using_And_when_querying_for_objects ( ) : void
Multiple_where_clauses_can_be_combined_using_Or_when_querying_for_objects ( ) : void
Multiple_where_clauses_can_be_combined_using_both_And_and_Or_when_querying_for_objects ( ) : void
Multiple_where_clauses_containing_multiple_conditions_can_be_combined_using_both_And_and_Or_when_querying_for_objects ( ) : void
Navigation_property_id_value_takes_precedence_over_explicit_foreign_key_id_property_value_when_both_are_set ( ) : void
Not_equals_operator_can_be_used_to_filter_result ( ) : void
Not_operator_can_be_used_to_filter_result ( ) : void
Object_can_join_two_child_collections_using_only_parent_to_child_relation ( ) : void
Object_with_table_and_columns_using_non_default_conventions_can_be_written_updated_and_read ( ) : void
One_way_child_to_parent_relationship_of_a_joined_table_can_be_loaded_with_another_join ( ) : void
One_way_parent_to_child_relation_of_a_joined_table_can_be_loaded_with_another_join ( ) : void
Only_properties_matching_ShouldMap_predicate_in_current_convention_should_be_read_and_written_to_the_database ( ) : void
Operations_can_be_made_transactionally ( ) : void
Order_by_clauses_can_be_specified_for_multiple_tables_in_a_join ( ) : void
Paging_query_without_explicit_ordering_orders_by_primary_key ( ) : void
Parent_entity_with_collection_navigation_property_can_be_joined_to_child_entity_without_navigation_property_but_with_foreign_key_property ( ) : void
Part_of_the_result_can_be_returned_from_find_query_by_specifying_page_number_and_size ( ) : void
Partial_object_can_be_read_by_explicitly_specifying_which_columns_to_fetch ( ) : void
Partial_selects_can_be_specified_for_multiple_tables_in_a_join ( ) : void
Properties_which_already_have_values_are_not_set_to_null_if_another_query_is_run_with_caching_enabled_where_those_properties_are_not_loaded ( ) : void
Query_for_single_entity_without_any_match_returns_null ( ) : void
Query_with_filter_on_explicit_null_value_generates_an_IS_NULL_condition_in_the_query ( ) : void
Query_with_value_comparison_to_variable_that_is_null_generates_an_IS_NULL_condition_in_the_query ( ) : void
Relationship_for_entity_with_both_foreign_key_id_property_and_navigation_property_can_be_changed_by_setting_the_foreign_key_id_even_though_the_navigation_property_is_null ( ) : void
Result_count_can_be_limited_by_using_Top ( ) : void
Result_from_find_query_can_be_ordered_by_multiple_columns ( ) : void
Scalar_values_can_be_returned_for_find_query_matching_multiple_entities ( ) : void
Setting_the_convention_on_one_repository_instance_does_not_change_the_convention_of_another_repository_instance ( ) : void
String_StartsWith_and_EndsWith_call_can_be_used_to_execute_like_queries ( ) : void
String_contains_call_can_be_used_to_execute_like_query ( ) : void
Subset_of_the_columns_of_a_table_can_be_read_by_specifying_a_target_type_which_contains_properties_matching_the_subset ( ) : void
The_number_of_items_satisfying_a_series_of_constraints_can_be_read_with_a_count_query ( ) : void
Transactions_are_not_rolled_back_if_already_rolled_back_from_exception_during_execution_of_a_SQL_statement ( ) : void
Update_can_be_performed_by_setting_a_reference_property_to_another_entity ( ) : void
Update_commands_can_be_issued_to_update_multiple_entities_at_once ( ) : void
Updating_an_object_updates_the_database_entry_with_the_corresponding_id ( ) : void

Method Details

CreateRepository() protected method

protected CreateRepository ( IConvention convention ) : Repository
convention IConvention
return Repository

PerformSetUp() protected method

protected PerformSetUp ( ) : void
return void