Compare commits
	
		
			3 Commits
		
	
	
		
			54502060f6
			...
			4ae34c4756
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 4ae34c4756 | |||
| 
						 | 
					756fd94e27 | ||
| 
						 | 
					d658215381 | 
							
								
								
									
										226
									
								
								.editorconfig
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										226
									
								
								.editorconfig
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,226 @@
 | 
			
		||||
# Remove the line below if you want to inherit .editorconfig settings from higher directories
 | 
			
		||||
root = true
 | 
			
		||||
 | 
			
		||||
# C# files
 | 
			
		||||
[*.cs]
 | 
			
		||||
 | 
			
		||||
#### Core EditorConfig Options ####
 | 
			
		||||
 | 
			
		||||
# Indentation and spacing
 | 
			
		||||
indent_size = 4
 | 
			
		||||
indent_style = tab
 | 
			
		||||
tab_width = 4
 | 
			
		||||
 | 
			
		||||
# New line preferences
 | 
			
		||||
end_of_line = crlf
 | 
			
		||||
insert_final_newline = false
 | 
			
		||||
 | 
			
		||||
#### .NET Coding Conventions ####
 | 
			
		||||
 | 
			
		||||
# Organize usings
 | 
			
		||||
dotnet_separate_import_directive_groups = false
 | 
			
		||||
dotnet_sort_system_directives_first = true
 | 
			
		||||
file_header_template = unset
 | 
			
		||||
 | 
			
		||||
# this. and Me. preferences
 | 
			
		||||
dotnet_style_qualification_for_event = false
 | 
			
		||||
dotnet_style_qualification_for_field = false
 | 
			
		||||
dotnet_style_qualification_for_method = false
 | 
			
		||||
dotnet_style_qualification_for_property = false
 | 
			
		||||
 | 
			
		||||
# Language keywords vs BCL types preferences
 | 
			
		||||
dotnet_style_predefined_type_for_locals_parameters_members = true
 | 
			
		||||
dotnet_style_predefined_type_for_member_access = true
 | 
			
		||||
 | 
			
		||||
# Parentheses preferences
 | 
			
		||||
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity
 | 
			
		||||
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity
 | 
			
		||||
dotnet_style_parentheses_in_other_operators = never_if_unnecessary
 | 
			
		||||
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity
 | 
			
		||||
 | 
			
		||||
# Modifier preferences
 | 
			
		||||
dotnet_style_require_accessibility_modifiers = for_non_interface_members
 | 
			
		||||
 | 
			
		||||
# Expression-level preferences
 | 
			
		||||
dotnet_style_coalesce_expression = true
 | 
			
		||||
dotnet_style_collection_initializer = true
 | 
			
		||||
dotnet_style_explicit_tuple_names = true
 | 
			
		||||
dotnet_style_namespace_match_folder = true
 | 
			
		||||
dotnet_style_null_propagation = true
 | 
			
		||||
dotnet_style_object_initializer = true
 | 
			
		||||
dotnet_style_operator_placement_when_wrapping = beginning_of_line
 | 
			
		||||
dotnet_style_prefer_auto_properties = true
 | 
			
		||||
dotnet_style_prefer_compound_assignment = true
 | 
			
		||||
dotnet_style_prefer_conditional_expression_over_assignment = true
 | 
			
		||||
dotnet_style_prefer_conditional_expression_over_return = true
 | 
			
		||||
dotnet_style_prefer_foreach_explicit_cast_in_source = when_strongly_typed
 | 
			
		||||
dotnet_style_prefer_inferred_anonymous_type_member_names = true
 | 
			
		||||
dotnet_style_prefer_inferred_tuple_names = true
 | 
			
		||||
dotnet_style_prefer_is_null_check_over_reference_equality_method = true
 | 
			
		||||
dotnet_style_prefer_simplified_boolean_expressions = true
 | 
			
		||||
dotnet_style_prefer_simplified_interpolation = true
 | 
			
		||||
 | 
			
		||||
# Field preferences
 | 
			
		||||
dotnet_style_readonly_field = true
 | 
			
		||||
 | 
			
		||||
# Parameter preferences
 | 
			
		||||
dotnet_code_quality_unused_parameters = all
 | 
			
		||||
 | 
			
		||||
# Suppression preferences
 | 
			
		||||
dotnet_remove_unnecessary_suppression_exclusions = none
 | 
			
		||||
 | 
			
		||||
# New line preferences
 | 
			
		||||
dotnet_style_allow_multiple_blank_lines_experimental = false
 | 
			
		||||
dotnet_style_allow_statement_immediately_after_block_experimental = false
 | 
			
		||||
 | 
			
		||||
#### C# Coding Conventions ####
 | 
			
		||||
 | 
			
		||||
# var preferences
 | 
			
		||||
csharp_style_var_elsewhere = true
 | 
			
		||||
csharp_style_var_for_built_in_types = true
 | 
			
		||||
csharp_style_var_when_type_is_apparent = true
 | 
			
		||||
 | 
			
		||||
# Expression-bodied members
 | 
			
		||||
csharp_style_expression_bodied_accessors = true
 | 
			
		||||
csharp_style_expression_bodied_constructors = false
 | 
			
		||||
csharp_style_expression_bodied_indexers = true
 | 
			
		||||
csharp_style_expression_bodied_lambdas = true
 | 
			
		||||
csharp_style_expression_bodied_local_functions = false
 | 
			
		||||
csharp_style_expression_bodied_methods = false
 | 
			
		||||
csharp_style_expression_bodied_operators = false
 | 
			
		||||
csharp_style_expression_bodied_properties = true
 | 
			
		||||
 | 
			
		||||
# Pattern matching preferences
 | 
			
		||||
csharp_style_pattern_matching_over_as_with_null_check = true
 | 
			
		||||
csharp_style_pattern_matching_over_is_with_cast_check = true
 | 
			
		||||
csharp_style_prefer_extended_property_pattern = true
 | 
			
		||||
csharp_style_prefer_not_pattern = true
 | 
			
		||||
csharp_style_prefer_pattern_matching = true
 | 
			
		||||
csharp_style_prefer_switch_expression = true
 | 
			
		||||
 | 
			
		||||
# Null-checking preferences
 | 
			
		||||
csharp_style_conditional_delegate_call = true
 | 
			
		||||
 | 
			
		||||
# Modifier preferences
 | 
			
		||||
csharp_prefer_static_local_function = true
 | 
			
		||||
csharp_preferred_modifier_order = public,private,protected,internal,file,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,required,volatile,async
 | 
			
		||||
csharp_style_prefer_readonly_struct = true
 | 
			
		||||
 | 
			
		||||
# Code-block preferences
 | 
			
		||||
csharp_prefer_braces = when_multiline
 | 
			
		||||
csharp_prefer_simple_using_statement = true
 | 
			
		||||
csharp_style_namespace_declarations = file_scoped
 | 
			
		||||
csharp_style_prefer_method_group_conversion = true
 | 
			
		||||
csharp_style_prefer_top_level_statements = true
 | 
			
		||||
 | 
			
		||||
# Expression-level preferences
 | 
			
		||||
csharp_prefer_simple_default_expression = true
 | 
			
		||||
csharp_style_deconstructed_variable_declaration = true
 | 
			
		||||
csharp_style_implicit_object_creation_when_type_is_apparent = true
 | 
			
		||||
csharp_style_inlined_variable_declaration = true
 | 
			
		||||
csharp_style_prefer_index_operator = true
 | 
			
		||||
csharp_style_prefer_local_over_anonymous_function = true
 | 
			
		||||
csharp_style_prefer_null_check_over_type_check = true
 | 
			
		||||
csharp_style_prefer_range_operator = true
 | 
			
		||||
csharp_style_prefer_tuple_swap = true
 | 
			
		||||
csharp_style_prefer_utf8_string_literals = true
 | 
			
		||||
csharp_style_throw_expression = true
 | 
			
		||||
csharp_style_unused_value_assignment_preference = discard_variable
 | 
			
		||||
csharp_style_unused_value_expression_statement_preference = discard_variable
 | 
			
		||||
 | 
			
		||||
# 'using' directive preferences
 | 
			
		||||
csharp_using_directive_placement = outside_namespace
 | 
			
		||||
 | 
			
		||||
# New line preferences
 | 
			
		||||
csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true
 | 
			
		||||
csharp_style_allow_blank_lines_between_consecutive_braces_experimental = false
 | 
			
		||||
csharp_style_allow_embedded_statements_on_same_line_experimental = false
 | 
			
		||||
 | 
			
		||||
#### C# Formatting Rules ####
 | 
			
		||||
 | 
			
		||||
# New line preferences
 | 
			
		||||
csharp_new_line_before_catch = true
 | 
			
		||||
csharp_new_line_before_else = true
 | 
			
		||||
csharp_new_line_before_finally = true
 | 
			
		||||
csharp_new_line_before_members_in_anonymous_types = true
 | 
			
		||||
csharp_new_line_before_members_in_object_initializers = true
 | 
			
		||||
csharp_new_line_before_open_brace = all
 | 
			
		||||
csharp_new_line_between_query_expression_clauses = true
 | 
			
		||||
 | 
			
		||||
# Indentation preferences
 | 
			
		||||
csharp_indent_block_contents = true
 | 
			
		||||
csharp_indent_braces = false
 | 
			
		||||
csharp_indent_case_contents = true
 | 
			
		||||
csharp_indent_case_contents_when_block = true
 | 
			
		||||
csharp_indent_labels = one_less_than_current
 | 
			
		||||
csharp_indent_switch_labels = true
 | 
			
		||||
 | 
			
		||||
# Space preferences
 | 
			
		||||
csharp_space_after_cast = false
 | 
			
		||||
csharp_space_after_colon_in_inheritance_clause = true
 | 
			
		||||
csharp_space_after_comma = true
 | 
			
		||||
csharp_space_after_dot = false
 | 
			
		||||
csharp_space_after_keywords_in_control_flow_statements = true
 | 
			
		||||
csharp_space_after_semicolon_in_for_statement = true
 | 
			
		||||
csharp_space_around_binary_operators = before_and_after
 | 
			
		||||
csharp_space_around_declaration_statements = false
 | 
			
		||||
csharp_space_before_colon_in_inheritance_clause = true
 | 
			
		||||
csharp_space_before_comma = false
 | 
			
		||||
csharp_space_before_dot = false
 | 
			
		||||
csharp_space_before_open_square_brackets = false
 | 
			
		||||
csharp_space_before_semicolon_in_for_statement = false
 | 
			
		||||
csharp_space_between_empty_square_brackets = false
 | 
			
		||||
csharp_space_between_method_call_empty_parameter_list_parentheses = false
 | 
			
		||||
csharp_space_between_method_call_name_and_opening_parenthesis = false
 | 
			
		||||
csharp_space_between_method_call_parameter_list_parentheses = false
 | 
			
		||||
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
 | 
			
		||||
csharp_space_between_method_declaration_name_and_open_parenthesis = false
 | 
			
		||||
csharp_space_between_method_declaration_parameter_list_parentheses = false
 | 
			
		||||
csharp_space_between_parentheses = false
 | 
			
		||||
csharp_space_between_square_brackets = false
 | 
			
		||||
 | 
			
		||||
# Wrapping preferences
 | 
			
		||||
csharp_preserve_single_line_blocks = true
 | 
			
		||||
csharp_preserve_single_line_statements = false
 | 
			
		||||
 | 
			
		||||
#### Naming styles ####
 | 
			
		||||
 | 
			
		||||
# Naming rules
 | 
			
		||||
 | 
			
		||||
dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
 | 
			
		||||
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
 | 
			
		||||
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
 | 
			
		||||
 | 
			
		||||
dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
 | 
			
		||||
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
 | 
			
		||||
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
 | 
			
		||||
 | 
			
		||||
dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
 | 
			
		||||
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
 | 
			
		||||
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
 | 
			
		||||
 | 
			
		||||
# Symbol specifications
 | 
			
		||||
 | 
			
		||||
dotnet_naming_symbols.interface.applicable_kinds = interface
 | 
			
		||||
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
 | 
			
		||||
dotnet_naming_symbols.interface.required_modifiers = 
 | 
			
		||||
 | 
			
		||||
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
 | 
			
		||||
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
 | 
			
		||||
dotnet_naming_symbols.types.required_modifiers = 
 | 
			
		||||
 | 
			
		||||
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
 | 
			
		||||
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
 | 
			
		||||
dotnet_naming_symbols.non_field_members.required_modifiers = 
 | 
			
		||||
 | 
			
		||||
# Naming styles
 | 
			
		||||
 | 
			
		||||
dotnet_naming_style.pascal_case.required_prefix = 
 | 
			
		||||
dotnet_naming_style.pascal_case.required_suffix = 
 | 
			
		||||
dotnet_naming_style.pascal_case.word_separator = 
 | 
			
		||||
dotnet_naming_style.pascal_case.capitalization = pascal_case
 | 
			
		||||
 | 
			
		||||
dotnet_naming_style.begins_with_i.required_prefix = I
 | 
			
		||||
dotnet_naming_style.begins_with_i.required_suffix = 
 | 
			
		||||
dotnet_naming_style.begins_with_i.word_separator = 
 | 
			
		||||
dotnet_naming_style.begins_with_i.capitalization = pascal_case
 | 
			
		||||
@ -1,15 +0,0 @@
 | 
			
		||||
<Project Sdk="Microsoft.NET.Sdk">
 | 
			
		||||
 | 
			
		||||
  <PropertyGroup>
 | 
			
		||||
    <TargetFramework>net7.0</TargetFramework>
 | 
			
		||||
    <ImplicitUsings>enable</ImplicitUsings>
 | 
			
		||||
    <Nullable>enable</Nullable>
 | 
			
		||||
    <RootNamespace>Common.Types</RootNamespace>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <ProjectReference Include="..\..\Framework\Connected.Middleware\Connected.Middleware.csproj" />
 | 
			
		||||
    <ProjectReference Include="..\Common.Types.Model\Common.Types.Model.csproj" />
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
 | 
			
		||||
</Project>
 | 
			
		||||
@ -1,15 +0,0 @@
 | 
			
		||||
<Project Sdk="Microsoft.NET.Sdk">
 | 
			
		||||
 | 
			
		||||
  <PropertyGroup>
 | 
			
		||||
    <TargetFramework>net7.0</TargetFramework>
 | 
			
		||||
    <ImplicitUsings>enable</ImplicitUsings>
 | 
			
		||||
    <Nullable>enable</Nullable>
 | 
			
		||||
    <RootNamespace>Common.Types</RootNamespace>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <ProjectReference Include="..\..\Common\Common.Model\Common.Model.csproj" />
 | 
			
		||||
    <ProjectReference Include="..\..\Connected\Connected\Connected.csproj" />
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
 | 
			
		||||
</Project>
 | 
			
		||||
@ -1,19 +0,0 @@
 | 
			
		||||
using C = Common.CommonRoutes;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types
 | 
			
		||||
{
 | 
			
		||||
	public static class Routes
 | 
			
		||||
	{
 | 
			
		||||
		public const string CommonTypes = "commonTypes";
 | 
			
		||||
 | 
			
		||||
		public const string TaxRates = $"{C.Management}/{CommonTypes}/taxRates";
 | 
			
		||||
		public const string Countries = $"{C.Management}/{CommonTypes}/countries";
 | 
			
		||||
		public const string Continents = $"{C.Management}/{CommonTypes}/continents";
 | 
			
		||||
		public const string ContinentCountries = $"{C.Management}/{CommonTypes}/continents/countries";
 | 
			
		||||
		public const string Banks = $"{C.Management}/{CommonTypes}/banks";
 | 
			
		||||
		public const string BankAccounts = $"{C.Management}/{CommonTypes}/bankAccounts";
 | 
			
		||||
		public const string Currencies = $"{C.Management}/{CommonTypes}/currencies";
 | 
			
		||||
		public const string PostalCodes = $"{C.Management}/{CommonTypes}/postalCodes";
 | 
			
		||||
		public const string MeasureUnits = $"{C.Management}/{CommonTypes}/measureUnits";
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
@ -1,18 +0,0 @@
 | 
			
		||||
<Project Sdk="Microsoft.NET.Sdk">
 | 
			
		||||
 | 
			
		||||
  <PropertyGroup>
 | 
			
		||||
    <TargetFramework>net7.0</TargetFramework>
 | 
			
		||||
    <ImplicitUsings>enable</ImplicitUsings>
 | 
			
		||||
    <Nullable>enable</Nullable>
 | 
			
		||||
    <RootNamespace>$(MSBuildProjectName.Replace(" ", "_"))</RootNamespace>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <ProjectReference Include="..\..\Framework\Connected.Data\Connected.Data.csproj" />
 | 
			
		||||
    <ProjectReference Include="..\..\Framework\Connected.Runtime\Connected.Runtime.csproj" />
 | 
			
		||||
    <ProjectReference Include="..\..\Framework\Connected.Services\Connected.Services.csproj" />
 | 
			
		||||
    <ProjectReference Include="..\Common.Types.Middleware\Common.Types.Middleware.csproj" />
 | 
			
		||||
    <ProjectReference Include="..\Common.Types.Model\Common.Types.Model.csproj" />
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
 | 
			
		||||
</Project>
 | 
			
		||||
@ -1,10 +0,0 @@
 | 
			
		||||
namespace Common.Types.Security
 | 
			
		||||
{
 | 
			
		||||
	internal static class Claims
 | 
			
		||||
	{
 | 
			
		||||
		public const string Delete = "Common Delete";
 | 
			
		||||
		public const string Read = "Common Read";
 | 
			
		||||
		public const string Add = "Common Add";
 | 
			
		||||
		public const string Modify = "Common Modify";
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
@ -1,9 +1,9 @@
 | 
			
		||||
using Common.Types.TaxRates;
 | 
			
		||||
using Connected.Common.Types.TaxRates;
 | 
			
		||||
using Connected.Startup;
 | 
			
		||||
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
 | 
			
		||||
using Microsoft.Extensions.DependencyInjection;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types;
 | 
			
		||||
namespace Connected.Common.Types;
 | 
			
		||||
 | 
			
		||||
public class ClientBootstrapper : IStartup
 | 
			
		||||
{
 | 
			
		||||
@ -4,12 +4,12 @@
 | 
			
		||||
    <TargetFramework>net7.0</TargetFramework>
 | 
			
		||||
    <ImplicitUsings>enable</ImplicitUsings>
 | 
			
		||||
    <Nullable>enable</Nullable>
 | 
			
		||||
    <RootNamespace>Common.Types</RootNamespace>
 | 
			
		||||
    <RootNamespace>Connected.Common.Types</RootNamespace>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <ProjectReference Include="..\..\Connected\Connected.Client\Connected.Client.csproj" />
 | 
			
		||||
    <ProjectReference Include="..\Common.Types.Model\Common.Types.Model.csproj" />
 | 
			
		||||
    <ProjectReference Include="..\Connected.Common.Types.Model\Connected.Common.Types.Model.csproj" />
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
 | 
			
		||||
</Project>
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
using Connected.Data;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.TaxRates;
 | 
			
		||||
namespace Connected.Common.Types.TaxRates;
 | 
			
		||||
 | 
			
		||||
/// <summary>
 | 
			
		||||
/// This is the client implementation if the <see cref="ITaxRate"/>.
 | 
			
		||||
@ -4,7 +4,7 @@ using Connected.Remote;
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
using Connected.Services;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.TaxRates;
 | 
			
		||||
namespace Connected.Common.Types.TaxRates;
 | 
			
		||||
 | 
			
		||||
/// <summary>
 | 
			
		||||
/// This is the client implementation of the <see cref="ITaxRateService"/>.
 | 
			
		||||
@ -0,0 +1,15 @@
 | 
			
		||||
<Project Sdk="Microsoft.NET.Sdk">
 | 
			
		||||
 | 
			
		||||
  <PropertyGroup>
 | 
			
		||||
    <TargetFramework>net7.0</TargetFramework>
 | 
			
		||||
    <ImplicitUsings>enable</ImplicitUsings>
 | 
			
		||||
    <Nullable>enable</Nullable>
 | 
			
		||||
    <RootNamespace>Connected.Common.Types</RootNamespace>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <ProjectReference Include="..\..\connected.framework\Connected.Middleware\Connected.Middleware.csproj" />
 | 
			
		||||
    <ProjectReference Include="..\Connected.Common.Types.Model\Connected.Common.Types.Model.csproj" />
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
 | 
			
		||||
</Project>
 | 
			
		||||
@ -1,7 +1,6 @@
 | 
			
		||||
using Common.Types.Currencies;
 | 
			
		||||
using Connected;
 | 
			
		||||
using Connected.Common.Types.Currencies;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.Middleware.Currencies;
 | 
			
		||||
namespace Connected.Common.Types.Middleware.Currencies;
 | 
			
		||||
 | 
			
		||||
public interface ICurrencyFormatterMiddleware<TValue> : IMiddleware
 | 
			
		||||
{
 | 
			
		||||
@ -1,9 +1,9 @@
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using System.ComponentModel.DataAnnotations;
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using Connected.Data;
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
using System.ComponentModel.DataAnnotations;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.BankAccounts;
 | 
			
		||||
namespace Connected.Common.Types.BankAccounts;
 | 
			
		||||
 | 
			
		||||
public class BankAccountInsertArgs : Dto
 | 
			
		||||
{
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
using Connected.Data;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.BankAccounts;
 | 
			
		||||
namespace Connected.Common.Types.BankAccounts;
 | 
			
		||||
 | 
			
		||||
public interface IBankAccount : IPrimaryKey<int>
 | 
			
		||||
{
 | 
			
		||||
@ -1,9 +1,9 @@
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using System.Collections.Immutable;
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using Connected.Notifications;
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
using System.Collections.Immutable;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.BankAccounts;
 | 
			
		||||
namespace Connected.Common.Types.BankAccounts;
 | 
			
		||||
 | 
			
		||||
[Service]
 | 
			
		||||
[ServiceUrl(Routes.BankAccounts)]
 | 
			
		||||
@ -1,9 +1,9 @@
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using System.ComponentModel.DataAnnotations;
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using Connected.Data;
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
using System.ComponentModel.DataAnnotations;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.Banks;
 | 
			
		||||
namespace Connected.Common.Types.Banks;
 | 
			
		||||
 | 
			
		||||
public class InsertBankArgs : Dto
 | 
			
		||||
{
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
using Connected.Data;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.Banks;
 | 
			
		||||
namespace Connected.Common.Types.Banks;
 | 
			
		||||
 | 
			
		||||
public interface IBank : IPrimaryKey<int>
 | 
			
		||||
{
 | 
			
		||||
@ -1,9 +1,9 @@
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using System.Collections.Immutable;
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using Connected.Notifications;
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
using System.Collections.Immutable;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.Banks;
 | 
			
		||||
namespace Connected.Common.Types.Banks;
 | 
			
		||||
 | 
			
		||||
[Service]
 | 
			
		||||
[ServiceUrl(Routes.Banks)]
 | 
			
		||||
@ -4,11 +4,11 @@
 | 
			
		||||
    <TargetFramework>net7.0</TargetFramework>
 | 
			
		||||
    <ImplicitUsings>enable</ImplicitUsings>
 | 
			
		||||
    <Nullable>enable</Nullable>
 | 
			
		||||
    <RootNamespace>$(MSBuildProjectName.Replace(" ", "_"))</RootNamespace>
 | 
			
		||||
    <RootNamespace>Connected.Common.Types</RootNamespace>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <ProjectReference Include="..\..\Common\Common.Model\Common.Model.csproj" />
 | 
			
		||||
    <ProjectReference Include="..\..\connected.common\Connected.Common.Model\Connected.Common.Model.csproj" />
 | 
			
		||||
    <ProjectReference Include="..\..\Connected\Connected\Connected.csproj" />
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
 | 
			
		||||
@ -1,8 +1,8 @@
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using System.ComponentModel.DataAnnotations;
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
using System.ComponentModel.DataAnnotations;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.Continent;
 | 
			
		||||
namespace Connected.Common.Types.Continent;
 | 
			
		||||
 | 
			
		||||
public class InsertContinentArgs : Dto
 | 
			
		||||
{
 | 
			
		||||
@ -1,7 +1,7 @@
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.Continent.Countries;
 | 
			
		||||
namespace Connected.Common.Types.Continent.Countries;
 | 
			
		||||
 | 
			
		||||
public class InsertContinentCountryArgs : Dto
 | 
			
		||||
{
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
using Connected.Data;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.Continent.Countries;
 | 
			
		||||
namespace Connected.Common.Types.Continent.Countries;
 | 
			
		||||
 | 
			
		||||
public interface IContinentCountry : IPrimaryKey<int>
 | 
			
		||||
{
 | 
			
		||||
@ -1,9 +1,9 @@
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using System.Collections.Immutable;
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using Connected.Notifications;
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
using System.Collections.Immutable;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.Continent.Countries;
 | 
			
		||||
namespace Connected.Common.Types.Continent.Countries;
 | 
			
		||||
 | 
			
		||||
[Service]
 | 
			
		||||
[ServiceUrl(Routes.ContinentCountries)]
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
using Connected.Data;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.Continent;
 | 
			
		||||
namespace Connected.Common.Types.Continent;
 | 
			
		||||
 | 
			
		||||
public interface IContinent : IPrimaryKey<int>
 | 
			
		||||
{
 | 
			
		||||
@ -1,9 +1,9 @@
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using System.Collections.Immutable;
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using Connected.Notifications;
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
using System.Collections.Immutable;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.Continent;
 | 
			
		||||
namespace Connected.Common.Types.Continent;
 | 
			
		||||
 | 
			
		||||
[Service]
 | 
			
		||||
[ServiceUrl(Routes.Continents)]
 | 
			
		||||
@ -1,9 +1,9 @@
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using System.ComponentModel.DataAnnotations;
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using Connected.Data;
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
using System.ComponentModel.DataAnnotations;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.Countries;
 | 
			
		||||
namespace Connected.Common.Types.Countries;
 | 
			
		||||
 | 
			
		||||
public class InsertCountryArgs : Dto
 | 
			
		||||
{
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
using Connected.Data;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.Countries;
 | 
			
		||||
namespace Connected.Common.Types.Countries;
 | 
			
		||||
 | 
			
		||||
public interface ICountry : IPrimaryKey<int>
 | 
			
		||||
{
 | 
			
		||||
@ -1,9 +1,9 @@
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using System.Collections.Immutable;
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using Connected.Notifications;
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
using System.Collections.Immutable;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.Countries;
 | 
			
		||||
namespace Connected.Common.Types.Countries;
 | 
			
		||||
 | 
			
		||||
[Service]
 | 
			
		||||
[ServiceUrl(Routes.Countries)]
 | 
			
		||||
@ -1,9 +1,9 @@
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using System.ComponentModel.DataAnnotations;
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using Connected.Data;
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
using System.ComponentModel.DataAnnotations;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.Currencies;
 | 
			
		||||
namespace Connected.Common.Types.Currencies;
 | 
			
		||||
 | 
			
		||||
public class CurrencyInsertArgs : Dto
 | 
			
		||||
{
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
using Connected.Data;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.Currencies;
 | 
			
		||||
namespace Connected.Common.Types.Currencies;
 | 
			
		||||
 | 
			
		||||
public interface ICurrency : IPrimaryKey<int>
 | 
			
		||||
{
 | 
			
		||||
@ -1,9 +1,9 @@
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using System.Collections.Immutable;
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using Connected.Notifications;
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
using System.Collections.Immutable;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.Currencies;
 | 
			
		||||
namespace Connected.Common.Types.Currencies;
 | 
			
		||||
 | 
			
		||||
[Service]
 | 
			
		||||
[ServiceUrl(Routes.Currencies)]
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
using Connected.Data;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.MeasureUnits;
 | 
			
		||||
namespace Connected.Common.Types.MeasureUnits;
 | 
			
		||||
 | 
			
		||||
public interface IMeasureUnit : IPrimaryKey<int>
 | 
			
		||||
{
 | 
			
		||||
@ -1,9 +1,9 @@
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using System.Collections.Immutable;
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using Connected.Notifications;
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
using System.Collections.Immutable;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.MeasureUnits;
 | 
			
		||||
namespace Connected.Common.Types.MeasureUnits;
 | 
			
		||||
 | 
			
		||||
[Service]
 | 
			
		||||
[ServiceUrl(Routes.MeasureUnits)]
 | 
			
		||||
@ -1,8 +1,8 @@
 | 
			
		||||
using Connected.Data;
 | 
			
		||||
using System.ComponentModel.DataAnnotations;
 | 
			
		||||
using Connected.Data;
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
using System.ComponentModel.DataAnnotations;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.MeasureUnits;
 | 
			
		||||
namespace Connected.Common.Types.MeasureUnits;
 | 
			
		||||
 | 
			
		||||
public class MeasureUnitInsertArgs : Dto
 | 
			
		||||
{
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
using Connected.Data;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.PostalCodes;
 | 
			
		||||
namespace Connected.Common.Types.PostalCodes;
 | 
			
		||||
 | 
			
		||||
public interface IPostalCode : IPrimaryKey<int>
 | 
			
		||||
{
 | 
			
		||||
@ -1,9 +1,9 @@
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using System.Collections.Immutable;
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using Connected.Notifications;
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
using System.Collections.Immutable;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.PostalCodes;
 | 
			
		||||
namespace Connected.Common.Types.PostalCodes;
 | 
			
		||||
 | 
			
		||||
[Service]
 | 
			
		||||
[ServiceUrl(Routes.PostalCodes)]
 | 
			
		||||
@ -1,9 +1,9 @@
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using System.ComponentModel.DataAnnotations;
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using Connected.Data;
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
using System.ComponentModel.DataAnnotations;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.PostalCodes;
 | 
			
		||||
namespace Connected.Common.Types.PostalCodes;
 | 
			
		||||
 | 
			
		||||
public class PostalCodeInsertArgs : Dto
 | 
			
		||||
{
 | 
			
		||||
							
								
								
									
										18
									
								
								Connected.Common.Types.Model/Routes.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								Connected.Common.Types.Model/Routes.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,18 @@
 | 
			
		||||
using C = Connected.Common.CommonRoutes;
 | 
			
		||||
 | 
			
		||||
namespace Connected.Common.Types;
 | 
			
		||||
 | 
			
		||||
public static class Routes
 | 
			
		||||
{
 | 
			
		||||
	public const string CommonTypes = "commonTypes";
 | 
			
		||||
 | 
			
		||||
	public const string TaxRates = $"{C.Management}/{CommonTypes}/taxRates";
 | 
			
		||||
	public const string Countries = $"{C.Management}/{CommonTypes}/countries";
 | 
			
		||||
	public const string Continents = $"{C.Management}/{CommonTypes}/continents";
 | 
			
		||||
	public const string ContinentCountries = $"{C.Management}/{CommonTypes}/continents/countries";
 | 
			
		||||
	public const string Banks = $"{C.Management}/{CommonTypes}/banks";
 | 
			
		||||
	public const string BankAccounts = $"{C.Management}/{CommonTypes}/bankAccounts";
 | 
			
		||||
	public const string Currencies = $"{C.Management}/{CommonTypes}/currencies";
 | 
			
		||||
	public const string PostalCodes = $"{C.Management}/{CommonTypes}/postalCodes";
 | 
			
		||||
	public const string MeasureUnits = $"{C.Management}/{CommonTypes}/measureUnits";
 | 
			
		||||
}
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
using Connected.Data;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.TaxRates;
 | 
			
		||||
namespace Connected.Common.Types.TaxRates;
 | 
			
		||||
 | 
			
		||||
/// <summary>
 | 
			
		||||
/// Represents an entity which contains information about tax rate. 
 | 
			
		||||
@ -3,7 +3,7 @@ using Connected.Annotations;
 | 
			
		||||
using Connected.Notifications;
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.TaxRates;
 | 
			
		||||
namespace Connected.Common.Types.TaxRates;
 | 
			
		||||
 | 
			
		||||
/// <summary>
 | 
			
		||||
/// The service used to manipulate with the <see cref="ITaxRate"/> entity.
 | 
			
		||||
@ -1,8 +1,8 @@
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using System.ComponentModel.DataAnnotations;
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
using System.ComponentModel.DataAnnotations;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.TaxRates;
 | 
			
		||||
namespace Connected.Common.Types.TaxRates;
 | 
			
		||||
 | 
			
		||||
/// <summary>
 | 
			
		||||
/// The arguments class for <see cref="ITaxRateService"/> methods.
 | 
			
		||||
@ -7,7 +7,7 @@
 | 
			
		||||
 | 
			
		||||
    <IsPackable>false</IsPackable>
 | 
			
		||||
 | 
			
		||||
    <RootNamespace>Common.Types</RootNamespace>
 | 
			
		||||
    <RootNamespace>Connected.Common.Types</RootNamespace>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
@ -19,7 +19,7 @@
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <ProjectReference Include="..\Common.Types\Common.Types.csproj" />
 | 
			
		||||
    <ProjectReference Include="..\Connected.Common.Types\Connected.Common.Types.csproj" />
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
 | 
			
		||||
</Project>
 | 
			
		||||
@ -1,11 +1,12 @@
 | 
			
		||||
using Connected.Entities;
 | 
			
		||||
using Connected.Common.Types.TaxRates;
 | 
			
		||||
using Connected.Entities;
 | 
			
		||||
using Connected.Entities.Storage;
 | 
			
		||||
using Connected.Notifications.Events;
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
using Connected.ServiceModel.Transactions;
 | 
			
		||||
 | 
			
		||||
using Moq;
 | 
			
		||||
using static Common.Types.TaxRates.TaxRateOps;
 | 
			
		||||
using static Connected.Common.Types.TaxRates.TaxRateOps;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.TaxRates.Ops;
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,6 @@
 | 
			
		||||
using Connected.Data;
 | 
			
		||||
using System.Reflection;
 | 
			
		||||
using Connected.Common.Types.TaxRates;
 | 
			
		||||
using Connected.Data;
 | 
			
		||||
using Connected.Entities;
 | 
			
		||||
using Connected.Entities.Annotations;
 | 
			
		||||
using Connected.Entities.Storage;
 | 
			
		||||
@ -6,8 +8,7 @@ using Connected.Notifications.Events;
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
using Connected.ServiceModel.Transactions;
 | 
			
		||||
using Moq;
 | 
			
		||||
using System.Reflection;
 | 
			
		||||
using static Common.Types.TaxRates.TaxRateOps;
 | 
			
		||||
using static Connected.Common.Types.TaxRates.TaxRateOps;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.TaxRates.Ops;
 | 
			
		||||
 | 
			
		||||
@ -1,8 +1,9 @@
 | 
			
		||||
using Connected.Entities;
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
using System.Collections.Immutable;
 | 
			
		||||
using System.Collections.Immutable;
 | 
			
		||||
using System.Data;
 | 
			
		||||
using Lookup = Common.Types.TaxRates.TaxRateOps.Lookup;
 | 
			
		||||
using Connected.Common.Types.TaxRates;
 | 
			
		||||
using Connected.Entities;
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
using Lookup = Connected.Common.Types.TaxRates.TaxRateOps.Lookup;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.TaxRates.Ops;
 | 
			
		||||
 | 
			
		||||
@ -1,7 +1,7 @@
 | 
			
		||||
using Connected.Entities;
 | 
			
		||||
using System.Collections.Immutable;
 | 
			
		||||
using Connected.Entities;
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
using System.Collections.Immutable;
 | 
			
		||||
using static Common.Types.TaxRates.TaxRateOps;
 | 
			
		||||
using static Connected.Common.Types.TaxRates.TaxRateOps;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.TaxRates.Ops;
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,6 @@
 | 
			
		||||
using Connected.Entities;
 | 
			
		||||
using static Common.Types.TaxRates.TaxRateOps;
 | 
			
		||||
using Connected.Common.Types.TaxRates;
 | 
			
		||||
using Connected.Entities;
 | 
			
		||||
using static Connected.Common.Types.TaxRates.TaxRateOps;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.TaxRates.Ops;
 | 
			
		||||
 | 
			
		||||
@ -1,6 +1,7 @@
 | 
			
		||||
using Connected.Entities;
 | 
			
		||||
using Connected.Common.Types.TaxRates;
 | 
			
		||||
using Connected.Entities;
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
using static Common.Types.TaxRates.TaxRateOps;
 | 
			
		||||
using static Connected.Common.Types.TaxRates.TaxRateOps;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.TaxRates.Ops;
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,5 @@
 | 
			
		||||
using Connected.Entities;
 | 
			
		||||
using Connected.Common.Types.TaxRates;
 | 
			
		||||
using Connected.Entities;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.TaxRates.Ops;
 | 
			
		||||
 | 
			
		||||
@ -1,12 +1,13 @@
 | 
			
		||||
using Connected.Entities.Storage;
 | 
			
		||||
using System.Data;
 | 
			
		||||
using System.Linq.Expressions;
 | 
			
		||||
using Connected.Common.Types.TaxRates;
 | 
			
		||||
using Connected.Entities.Storage;
 | 
			
		||||
using Connected.Notifications.Events;
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
using Connected.ServiceModel.Transactions;
 | 
			
		||||
using Moq;
 | 
			
		||||
using System.Data;
 | 
			
		||||
using System.Linq.Expressions;
 | 
			
		||||
using static Common.Types.TaxRates.TaxRateOps;
 | 
			
		||||
using static Common.Types.TestUtils;
 | 
			
		||||
using static Connected.Common.Types.TaxRates.TaxRateOps;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.TaxRates.Ops;
 | 
			
		||||
 | 
			
		||||
@ -1,6 +1,7 @@
 | 
			
		||||
using Connected.Entities.Annotations;
 | 
			
		||||
using System.Reflection;
 | 
			
		||||
using Connected.Common.Types.TaxRates;
 | 
			
		||||
using Connected.Entities.Annotations;
 | 
			
		||||
using Connected.Entities.Consistency;
 | 
			
		||||
using System.Reflection;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.TaxRates;
 | 
			
		||||
 | 
			
		||||
@ -2,7 +2,7 @@
 | 
			
		||||
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
 | 
			
		||||
using Microsoft.Extensions.DependencyInjection;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types;
 | 
			
		||||
namespace Connected.Common.Types;
 | 
			
		||||
 | 
			
		||||
public class Bootstrapper : IStartup
 | 
			
		||||
{
 | 
			
		||||
@ -4,27 +4,31 @@
 | 
			
		||||
		<TargetFramework>net7.0</TargetFramework>
 | 
			
		||||
		<Nullable>enable</Nullable>
 | 
			
		||||
		<ImplicitUsings>enable</ImplicitUsings>
 | 
			
		||||
		<RootNamespace>Common.Types</RootNamespace>
 | 
			
		||||
		<RootNamespace>Connected.Common.Types</RootNamespace>
 | 
			
		||||
	</PropertyGroup>
 | 
			
		||||
 | 
			
		||||
	<ItemGroup>
 | 
			
		||||
	  <Compile Remove="wwwroot\**" />
 | 
			
		||||
	  <Content Remove="wwwroot\**" />
 | 
			
		||||
	  <EmbeddedResource Remove="wwwroot\**" />
 | 
			
		||||
	  <None Remove="wwwroot\**" />
 | 
			
		||||
	</ItemGroup>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
	<ItemGroup>
 | 
			
		||||
		<SupportedPlatform Include="browser" />
 | 
			
		||||
	</ItemGroup>
 | 
			
		||||
 | 
			
		||||
	<ItemGroup>
 | 
			
		||||
		<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="7.0.0-rc.2.22476.2" />
 | 
			
		||||
		<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="7.0.0" />
 | 
			
		||||
	</ItemGroup>
 | 
			
		||||
 | 
			
		||||
	<ItemGroup>
 | 
			
		||||
		<ProjectReference Include="..\..\connected.components\Connected.Components\Connected.Components.csproj" />
 | 
			
		||||
		<ProjectReference Include="..\..\Connected\Connected.Client\Connected.Client.csproj" />
 | 
			
		||||
		<ProjectReference Include="..\..\Connected\Connected.UI\Connected.UI.csproj" />
 | 
			
		||||
		<ProjectReference Include="..\..\connected\Connected.UI\Connected.UI.csproj" />
 | 
			
		||||
		<ProjectReference Include="..\..\Connected\Connected\Connected.csproj" />
 | 
			
		||||
		<ProjectReference Include="..\Common.Types.Client\Common.Types.Client.csproj" />
 | 
			
		||||
	</ItemGroup>
 | 
			
		||||
 | 
			
		||||
	<ItemGroup>
 | 
			
		||||
		<Folder Include="wwwroot\" />
 | 
			
		||||
		<ProjectReference Include="..\Connected.Common.Types.Client\Connected.Common.Types.Client.csproj" />
 | 
			
		||||
	</ItemGroup>
 | 
			
		||||
 | 
			
		||||
</Project>
 | 
			
		||||
@ -1,10 +1,8 @@
 | 
			
		||||
using S = Connected.UIRoutes;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types;
 | 
			
		||||
namespace Connected.Common.Types;
 | 
			
		||||
 | 
			
		||||
public static class CommonTypesUIRoutes
 | 
			
		||||
{
 | 
			
		||||
	public const string CommonTypes = $"{S.Management}/commonTypes";
 | 
			
		||||
	public const string CommonTypes = $"/management/commonTypes";
 | 
			
		||||
 | 
			
		||||
	public const string TaxRates = $"{CommonTypes}/taxRates";
 | 
			
		||||
	public const string TaxRatesAdd = $"{CommonTypes}/taxRates/add";
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
@using Connected.Components;
 | 
			
		||||
 | 
			
		||||
@inherits UIComponent
 | 
			
		||||
@inherits UIComposition
 | 
			
		||||
 | 
			
		||||
<h3 class="important">TaxRateAdd</h3>
 | 
			
		||||
 | 
			
		||||
@ -1,9 +1,9 @@
 | 
			
		||||
using Connected.Components;
 | 
			
		||||
using Microsoft.AspNetCore.Components;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.TaxRates.Components;
 | 
			
		||||
namespace Connected.Common.Types.TaxRates.Components;
 | 
			
		||||
 | 
			
		||||
public partial class TaxRateAdd : UIComponent
 | 
			
		||||
public partial class TaxRateAdd : UIComposition
 | 
			
		||||
{
 | 
			
		||||
	public TaxRateAdd()
 | 
			
		||||
	{
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
@using Connected.Components;
 | 
			
		||||
 | 
			
		||||
@inherits UIComponent
 | 
			
		||||
@inherits UIComposition
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
<h3>TaxRateEditForm</h3>
 | 
			
		||||
@ -2,9 +2,9 @@
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
using Microsoft.AspNetCore.Components;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.TaxRates.Components;
 | 
			
		||||
namespace Connected.Common.Types.TaxRates.Components;
 | 
			
		||||
 | 
			
		||||
public partial class TaxRateEdit : UIComponent
 | 
			
		||||
public partial class TaxRateEdit : UIComposition
 | 
			
		||||
{
 | 
			
		||||
	[Parameter]
 | 
			
		||||
	public int Id { get; set; }
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
@using Connected.Components;
 | 
			
		||||
 | 
			
		||||
@inherits UIComponent
 | 
			
		||||
@inherits UIComposition
 | 
			
		||||
 | 
			
		||||
@if (DataSource is null)
 | 
			
		||||
{
 | 
			
		||||
@ -4,9 +4,9 @@ using Connected.Notifications;
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
using Microsoft.AspNetCore.Components;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.TaxRates.Components;
 | 
			
		||||
namespace Connected.Common.Types.TaxRates.Components;
 | 
			
		||||
 | 
			
		||||
public partial class TaxRatesList : UIComponent
 | 
			
		||||
public partial class TaxRatesList : UIComposition
 | 
			
		||||
{
 | 
			
		||||
	private ImmutableList<ITaxRate>? DataSource { get; set; }
 | 
			
		||||
 | 
			
		||||
@ -1,10 +1,10 @@
 | 
			
		||||
@attribute [Route(CommonTypesUIRoutes.TaxRates)]
 | 
			
		||||
 | 
			
		||||
@using Common.Types.TaxRates.Components;
 | 
			
		||||
@using Connected.Common.Types.TaxRates.Components;
 | 
			
		||||
@using Connected.Components;
 | 
			
		||||
@using Connected.Layouts;
 | 
			
		||||
@using Connected.UI.Layouts;
 | 
			
		||||
 | 
			
		||||
@inherits UIComponent
 | 
			
		||||
@inherits UIComposition
 | 
			
		||||
@layout DefaultLayout
 | 
			
		||||
 | 
			
		||||
<h3>Tax rates</h3>
 | 
			
		||||
@ -5,35 +5,37 @@ VisualStudioVersion = 17.4.32916.344
 | 
			
		||||
MinimumVisualStudioVersion = 10.0.40219.1
 | 
			
		||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Dependencies", "Dependencies", "{20087506-E20F-4FD6-ADFB-9D7ADBBD3998}"
 | 
			
		||||
EndProject
 | 
			
		||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Common.Types.Client", "Common.Types.Client\Common.Types.Client.csproj", "{B94A8E27-3682-4321-9BF7-F0A2D775E905}"
 | 
			
		||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Connected.Common.Types.Client", "Connected.Common.Types.Client\Connected.Common.Types.Client.csproj", "{B94A8E27-3682-4321-9BF7-F0A2D775E905}"
 | 
			
		||||
EndProject
 | 
			
		||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Common.Types.Middleware", "Common.Types.Middleware\Common.Types.Middleware.csproj", "{72B591CC-DAC3-4F9A-A95C-67C265FB4E93}"
 | 
			
		||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Connected.Common.Types.Middleware", "Connected.Common.Types.Middleware\Connected.Common.Types.Middleware.csproj", "{72B591CC-DAC3-4F9A-A95C-67C265FB4E93}"
 | 
			
		||||
EndProject
 | 
			
		||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Common.Types", "Common.Types\Common.Types.csproj", "{EDDF95B7-236C-4F87-A9F0-1BC5A7FA9980}"
 | 
			
		||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Connected.Common.Types", "Connected.Common.Types\Connected.Common.Types.csproj", "{EDDF95B7-236C-4F87-A9F0-1BC5A7FA9980}"
 | 
			
		||||
EndProject
 | 
			
		||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Common.Types.UI", "Common.Types.UI\Common.Types.UI.csproj", "{62A9D5D4-942B-40DA-AA9C-CF3D48339B60}"
 | 
			
		||||
EndProject
 | 
			
		||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Connected.Data", "..\Framework\Connected.Data\Connected.Data.csproj", "{29DC3FA3-643B-4E92-B176-C6594960AD4B}"
 | 
			
		||||
EndProject
 | 
			
		||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Connected.Middleware", "..\Framework\Connected.Middleware\Connected.Middleware.csproj", "{1E4DFB97-CD50-4836-8B62-46D6FBDF924C}"
 | 
			
		||||
EndProject
 | 
			
		||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Connected.Services", "..\Framework\Connected.Services\Connected.Services.csproj", "{90AD4721-1C34-4B9A-9515-6AFC095F55E8}"
 | 
			
		||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Connected.Common.Types.UI", "Connected.Common.Types.UI\Connected.Common.Types.UI.csproj", "{62A9D5D4-942B-40DA-AA9C-CF3D48339B60}"
 | 
			
		||||
EndProject
 | 
			
		||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Connected", "..\Connected\Connected\Connected.csproj", "{B19801B5-7C84-4669-92AF-7581ABBDE259}"
 | 
			
		||||
EndProject
 | 
			
		||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Connected.UI", "..\Connected\Connected.UI\Connected.UI.csproj", "{105164C0-685F-420F-B822-D59965244E51}"
 | 
			
		||||
EndProject
 | 
			
		||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Connected.Client", "..\Connected\Connected.Client\Connected.Client.csproj", "{EA8DA8CF-9DE4-4815-93C3-ED92A6B5E64D}"
 | 
			
		||||
EndProject
 | 
			
		||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Common.Types.Model", "Common.Types.Model\Common.Types.Model.csproj", "{DB82BD88-23C1-4E8A-9E48-92848E1942C0}"
 | 
			
		||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Connected.Common.Types.Model", "Connected.Common.Types.Model\Connected.Common.Types.Model.csproj", "{DB82BD88-23C1-4E8A-9E48-92848E1942C0}"
 | 
			
		||||
EndProject
 | 
			
		||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Common.Model", "..\Common\Common.Model\Common.Model.csproj", "{03D41846-3257-4097-9145-21DDA9546833}"
 | 
			
		||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Connected.Common.Types.Tests", "Connected.Common.Types.Tests\Connected.Common.Types.Tests.csproj", "{AEF4D71A-C334-4E13-AECD-8EEA06872BB0}"
 | 
			
		||||
EndProject
 | 
			
		||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Connected.Runtime", "..\Framework\Connected.Runtime\Connected.Runtime.csproj", "{7E147EBC-5B8C-462F-B736-545167935CB3}"
 | 
			
		||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Connected.Common.Model", "..\connected.common\Connected.Common.Model\Connected.Common.Model.csproj", "{51A89A04-8FA6-498C-966D-67D09840A22F}"
 | 
			
		||||
EndProject
 | 
			
		||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Common.Types.Tests", "Common.Types.Tests\Common.Types.Tests.csproj", "{AEF4D71A-C334-4E13-AECD-8EEA06872BB0}"
 | 
			
		||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Connected.Data", "..\connected.framework\Connected.Data\Connected.Data.csproj", "{D803081E-5C23-437D-AB90-A40FE6572804}"
 | 
			
		||||
EndProject
 | 
			
		||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Connected.Entities", "..\Framework\Connected.Entities\Connected.Entities.csproj", "{E52DDB90-5F33-4189-8D72-81DE8165ADE6}"
 | 
			
		||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Connected.Entities", "..\connected.framework\Connected.Entities\Connected.Entities.csproj", "{B026AF4F-106D-4198-A9F5-AEE456970877}"
 | 
			
		||||
EndProject
 | 
			
		||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Connected.Middleware", "..\connected.framework\Connected.Middleware\Connected.Middleware.csproj", "{D35000E2-AB75-42B7-B270-63804CB999A0}"
 | 
			
		||||
EndProject
 | 
			
		||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Connected.Runtime", "..\connected.framework\Connected.Runtime\Connected.Runtime.csproj", "{00737C68-21CC-4FD0-9D29-965386AC16D6}"
 | 
			
		||||
EndProject
 | 
			
		||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Connected.Services", "..\connected.framework\Connected.Services\Connected.Services.csproj", "{14DB124B-AE34-4D92-A734-EA18103EF96C}"
 | 
			
		||||
EndProject
 | 
			
		||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Connected.Components", "..\connected.components\Connected.Components\Connected.Components.csproj", "{8FB259E5-77B8-4357-831C-C381EA26E2A1}"
 | 
			
		||||
EndProject
 | 
			
		||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Connected.UI", "..\connected\Connected.UI\Connected.UI.csproj", "{3A5FB71E-F6F7-46F0-9173-24745E0EDA25}"
 | 
			
		||||
EndProject
 | 
			
		||||
Global
 | 
			
		||||
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 | 
			
		||||
@ -57,26 +59,10 @@ Global
 | 
			
		||||
		{62A9D5D4-942B-40DA-AA9C-CF3D48339B60}.Debug|Any CPU.Build.0 = Debug|Any CPU
 | 
			
		||||
		{62A9D5D4-942B-40DA-AA9C-CF3D48339B60}.Release|Any CPU.ActiveCfg = Release|Any CPU
 | 
			
		||||
		{62A9D5D4-942B-40DA-AA9C-CF3D48339B60}.Release|Any CPU.Build.0 = Release|Any CPU
 | 
			
		||||
		{29DC3FA3-643B-4E92-B176-C6594960AD4B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 | 
			
		||||
		{29DC3FA3-643B-4E92-B176-C6594960AD4B}.Debug|Any CPU.Build.0 = Debug|Any CPU
 | 
			
		||||
		{29DC3FA3-643B-4E92-B176-C6594960AD4B}.Release|Any CPU.ActiveCfg = Release|Any CPU
 | 
			
		||||
		{29DC3FA3-643B-4E92-B176-C6594960AD4B}.Release|Any CPU.Build.0 = Release|Any CPU
 | 
			
		||||
		{1E4DFB97-CD50-4836-8B62-46D6FBDF924C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 | 
			
		||||
		{1E4DFB97-CD50-4836-8B62-46D6FBDF924C}.Debug|Any CPU.Build.0 = Debug|Any CPU
 | 
			
		||||
		{1E4DFB97-CD50-4836-8B62-46D6FBDF924C}.Release|Any CPU.ActiveCfg = Release|Any CPU
 | 
			
		||||
		{1E4DFB97-CD50-4836-8B62-46D6FBDF924C}.Release|Any CPU.Build.0 = Release|Any CPU
 | 
			
		||||
		{90AD4721-1C34-4B9A-9515-6AFC095F55E8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 | 
			
		||||
		{90AD4721-1C34-4B9A-9515-6AFC095F55E8}.Debug|Any CPU.Build.0 = Debug|Any CPU
 | 
			
		||||
		{90AD4721-1C34-4B9A-9515-6AFC095F55E8}.Release|Any CPU.ActiveCfg = Release|Any CPU
 | 
			
		||||
		{90AD4721-1C34-4B9A-9515-6AFC095F55E8}.Release|Any CPU.Build.0 = Release|Any CPU
 | 
			
		||||
		{B19801B5-7C84-4669-92AF-7581ABBDE259}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 | 
			
		||||
		{B19801B5-7C84-4669-92AF-7581ABBDE259}.Debug|Any CPU.Build.0 = Debug|Any CPU
 | 
			
		||||
		{B19801B5-7C84-4669-92AF-7581ABBDE259}.Release|Any CPU.ActiveCfg = Release|Any CPU
 | 
			
		||||
		{B19801B5-7C84-4669-92AF-7581ABBDE259}.Release|Any CPU.Build.0 = Release|Any CPU
 | 
			
		||||
		{105164C0-685F-420F-B822-D59965244E51}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 | 
			
		||||
		{105164C0-685F-420F-B822-D59965244E51}.Debug|Any CPU.Build.0 = Debug|Any CPU
 | 
			
		||||
		{105164C0-685F-420F-B822-D59965244E51}.Release|Any CPU.ActiveCfg = Release|Any CPU
 | 
			
		||||
		{105164C0-685F-420F-B822-D59965244E51}.Release|Any CPU.Build.0 = Release|Any CPU
 | 
			
		||||
		{EA8DA8CF-9DE4-4815-93C3-ED92A6B5E64D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 | 
			
		||||
		{EA8DA8CF-9DE4-4815-93C3-ED92A6B5E64D}.Debug|Any CPU.Build.0 = Debug|Any CPU
 | 
			
		||||
		{EA8DA8CF-9DE4-4815-93C3-ED92A6B5E64D}.Release|Any CPU.ActiveCfg = Release|Any CPU
 | 
			
		||||
@ -85,36 +71,57 @@ Global
 | 
			
		||||
		{DB82BD88-23C1-4E8A-9E48-92848E1942C0}.Debug|Any CPU.Build.0 = Debug|Any CPU
 | 
			
		||||
		{DB82BD88-23C1-4E8A-9E48-92848E1942C0}.Release|Any CPU.ActiveCfg = Release|Any CPU
 | 
			
		||||
		{DB82BD88-23C1-4E8A-9E48-92848E1942C0}.Release|Any CPU.Build.0 = Release|Any CPU
 | 
			
		||||
		{03D41846-3257-4097-9145-21DDA9546833}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 | 
			
		||||
		{03D41846-3257-4097-9145-21DDA9546833}.Debug|Any CPU.Build.0 = Debug|Any CPU
 | 
			
		||||
		{03D41846-3257-4097-9145-21DDA9546833}.Release|Any CPU.ActiveCfg = Release|Any CPU
 | 
			
		||||
		{03D41846-3257-4097-9145-21DDA9546833}.Release|Any CPU.Build.0 = Release|Any CPU
 | 
			
		||||
		{7E147EBC-5B8C-462F-B736-545167935CB3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 | 
			
		||||
		{7E147EBC-5B8C-462F-B736-545167935CB3}.Debug|Any CPU.Build.0 = Debug|Any CPU
 | 
			
		||||
		{7E147EBC-5B8C-462F-B736-545167935CB3}.Release|Any CPU.ActiveCfg = Release|Any CPU
 | 
			
		||||
		{7E147EBC-5B8C-462F-B736-545167935CB3}.Release|Any CPU.Build.0 = Release|Any CPU
 | 
			
		||||
		{AEF4D71A-C334-4E13-AECD-8EEA06872BB0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 | 
			
		||||
		{AEF4D71A-C334-4E13-AECD-8EEA06872BB0}.Debug|Any CPU.Build.0 = Debug|Any CPU
 | 
			
		||||
		{AEF4D71A-C334-4E13-AECD-8EEA06872BB0}.Release|Any CPU.ActiveCfg = Release|Any CPU
 | 
			
		||||
		{AEF4D71A-C334-4E13-AECD-8EEA06872BB0}.Release|Any CPU.Build.0 = Release|Any CPU
 | 
			
		||||
		{E52DDB90-5F33-4189-8D72-81DE8165ADE6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 | 
			
		||||
		{E52DDB90-5F33-4189-8D72-81DE8165ADE6}.Debug|Any CPU.Build.0 = Debug|Any CPU
 | 
			
		||||
		{E52DDB90-5F33-4189-8D72-81DE8165ADE6}.Release|Any CPU.ActiveCfg = Release|Any CPU
 | 
			
		||||
		{E52DDB90-5F33-4189-8D72-81DE8165ADE6}.Release|Any CPU.Build.0 = Release|Any CPU
 | 
			
		||||
		{51A89A04-8FA6-498C-966D-67D09840A22F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 | 
			
		||||
		{51A89A04-8FA6-498C-966D-67D09840A22F}.Debug|Any CPU.Build.0 = Debug|Any CPU
 | 
			
		||||
		{51A89A04-8FA6-498C-966D-67D09840A22F}.Release|Any CPU.ActiveCfg = Release|Any CPU
 | 
			
		||||
		{51A89A04-8FA6-498C-966D-67D09840A22F}.Release|Any CPU.Build.0 = Release|Any CPU
 | 
			
		||||
		{D803081E-5C23-437D-AB90-A40FE6572804}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 | 
			
		||||
		{D803081E-5C23-437D-AB90-A40FE6572804}.Debug|Any CPU.Build.0 = Debug|Any CPU
 | 
			
		||||
		{D803081E-5C23-437D-AB90-A40FE6572804}.Release|Any CPU.ActiveCfg = Release|Any CPU
 | 
			
		||||
		{D803081E-5C23-437D-AB90-A40FE6572804}.Release|Any CPU.Build.0 = Release|Any CPU
 | 
			
		||||
		{B026AF4F-106D-4198-A9F5-AEE456970877}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 | 
			
		||||
		{B026AF4F-106D-4198-A9F5-AEE456970877}.Debug|Any CPU.Build.0 = Debug|Any CPU
 | 
			
		||||
		{B026AF4F-106D-4198-A9F5-AEE456970877}.Release|Any CPU.ActiveCfg = Release|Any CPU
 | 
			
		||||
		{B026AF4F-106D-4198-A9F5-AEE456970877}.Release|Any CPU.Build.0 = Release|Any CPU
 | 
			
		||||
		{D35000E2-AB75-42B7-B270-63804CB999A0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 | 
			
		||||
		{D35000E2-AB75-42B7-B270-63804CB999A0}.Debug|Any CPU.Build.0 = Debug|Any CPU
 | 
			
		||||
		{D35000E2-AB75-42B7-B270-63804CB999A0}.Release|Any CPU.ActiveCfg = Release|Any CPU
 | 
			
		||||
		{D35000E2-AB75-42B7-B270-63804CB999A0}.Release|Any CPU.Build.0 = Release|Any CPU
 | 
			
		||||
		{00737C68-21CC-4FD0-9D29-965386AC16D6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 | 
			
		||||
		{00737C68-21CC-4FD0-9D29-965386AC16D6}.Debug|Any CPU.Build.0 = Debug|Any CPU
 | 
			
		||||
		{00737C68-21CC-4FD0-9D29-965386AC16D6}.Release|Any CPU.ActiveCfg = Release|Any CPU
 | 
			
		||||
		{00737C68-21CC-4FD0-9D29-965386AC16D6}.Release|Any CPU.Build.0 = Release|Any CPU
 | 
			
		||||
		{14DB124B-AE34-4D92-A734-EA18103EF96C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 | 
			
		||||
		{14DB124B-AE34-4D92-A734-EA18103EF96C}.Debug|Any CPU.Build.0 = Debug|Any CPU
 | 
			
		||||
		{14DB124B-AE34-4D92-A734-EA18103EF96C}.Release|Any CPU.ActiveCfg = Release|Any CPU
 | 
			
		||||
		{14DB124B-AE34-4D92-A734-EA18103EF96C}.Release|Any CPU.Build.0 = Release|Any CPU
 | 
			
		||||
		{8FB259E5-77B8-4357-831C-C381EA26E2A1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 | 
			
		||||
		{8FB259E5-77B8-4357-831C-C381EA26E2A1}.Debug|Any CPU.Build.0 = Debug|Any CPU
 | 
			
		||||
		{8FB259E5-77B8-4357-831C-C381EA26E2A1}.Release|Any CPU.ActiveCfg = Release|Any CPU
 | 
			
		||||
		{8FB259E5-77B8-4357-831C-C381EA26E2A1}.Release|Any CPU.Build.0 = Release|Any CPU
 | 
			
		||||
		{3A5FB71E-F6F7-46F0-9173-24745E0EDA25}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 | 
			
		||||
		{3A5FB71E-F6F7-46F0-9173-24745E0EDA25}.Debug|Any CPU.Build.0 = Debug|Any CPU
 | 
			
		||||
		{3A5FB71E-F6F7-46F0-9173-24745E0EDA25}.Release|Any CPU.ActiveCfg = Release|Any CPU
 | 
			
		||||
		{3A5FB71E-F6F7-46F0-9173-24745E0EDA25}.Release|Any CPU.Build.0 = Release|Any CPU
 | 
			
		||||
	EndGlobalSection
 | 
			
		||||
	GlobalSection(SolutionProperties) = preSolution
 | 
			
		||||
		HideSolutionNode = FALSE
 | 
			
		||||
	EndGlobalSection
 | 
			
		||||
	GlobalSection(NestedProjects) = preSolution
 | 
			
		||||
		{29DC3FA3-643B-4E92-B176-C6594960AD4B} = {20087506-E20F-4FD6-ADFB-9D7ADBBD3998}
 | 
			
		||||
		{1E4DFB97-CD50-4836-8B62-46D6FBDF924C} = {20087506-E20F-4FD6-ADFB-9D7ADBBD3998}
 | 
			
		||||
		{90AD4721-1C34-4B9A-9515-6AFC095F55E8} = {20087506-E20F-4FD6-ADFB-9D7ADBBD3998}
 | 
			
		||||
		{B19801B5-7C84-4669-92AF-7581ABBDE259} = {20087506-E20F-4FD6-ADFB-9D7ADBBD3998}
 | 
			
		||||
		{105164C0-685F-420F-B822-D59965244E51} = {20087506-E20F-4FD6-ADFB-9D7ADBBD3998}
 | 
			
		||||
		{EA8DA8CF-9DE4-4815-93C3-ED92A6B5E64D} = {20087506-E20F-4FD6-ADFB-9D7ADBBD3998}
 | 
			
		||||
		{03D41846-3257-4097-9145-21DDA9546833} = {20087506-E20F-4FD6-ADFB-9D7ADBBD3998}
 | 
			
		||||
		{7E147EBC-5B8C-462F-B736-545167935CB3} = {20087506-E20F-4FD6-ADFB-9D7ADBBD3998}
 | 
			
		||||
		{E52DDB90-5F33-4189-8D72-81DE8165ADE6} = {20087506-E20F-4FD6-ADFB-9D7ADBBD3998}
 | 
			
		||||
		{51A89A04-8FA6-498C-966D-67D09840A22F} = {20087506-E20F-4FD6-ADFB-9D7ADBBD3998}
 | 
			
		||||
		{D803081E-5C23-437D-AB90-A40FE6572804} = {20087506-E20F-4FD6-ADFB-9D7ADBBD3998}
 | 
			
		||||
		{B026AF4F-106D-4198-A9F5-AEE456970877} = {20087506-E20F-4FD6-ADFB-9D7ADBBD3998}
 | 
			
		||||
		{D35000E2-AB75-42B7-B270-63804CB999A0} = {20087506-E20F-4FD6-ADFB-9D7ADBBD3998}
 | 
			
		||||
		{00737C68-21CC-4FD0-9D29-965386AC16D6} = {20087506-E20F-4FD6-ADFB-9D7ADBBD3998}
 | 
			
		||||
		{14DB124B-AE34-4D92-A734-EA18103EF96C} = {20087506-E20F-4FD6-ADFB-9D7ADBBD3998}
 | 
			
		||||
		{8FB259E5-77B8-4357-831C-C381EA26E2A1} = {20087506-E20F-4FD6-ADFB-9D7ADBBD3998}
 | 
			
		||||
		{3A5FB71E-F6F7-46F0-9173-24745E0EDA25} = {20087506-E20F-4FD6-ADFB-9D7ADBBD3998}
 | 
			
		||||
	EndGlobalSection
 | 
			
		||||
	GlobalSection(ExtensibilityGlobals) = postSolution
 | 
			
		||||
		SolutionGuid = {4C661325-1729-4560-89F9-E2B51B111B72}
 | 
			
		||||
							
								
								
									
										18
									
								
								Connected.Common.Types/Connected.Common.Types.csproj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								Connected.Common.Types/Connected.Common.Types.csproj
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,18 @@
 | 
			
		||||
<Project Sdk="Microsoft.NET.Sdk">
 | 
			
		||||
 | 
			
		||||
  <PropertyGroup>
 | 
			
		||||
    <TargetFramework>net7.0</TargetFramework>
 | 
			
		||||
    <ImplicitUsings>enable</ImplicitUsings>
 | 
			
		||||
    <Nullable>enable</Nullable>
 | 
			
		||||
    <RootNamespace>$(MSBuildProjectName.Replace(" ", "_"))</RootNamespace>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <ProjectReference Include="..\..\connected.framework\Connected.Data\Connected.Data.csproj" />
 | 
			
		||||
    <ProjectReference Include="..\..\connected.framework\Connected.Runtime\Connected.Runtime.csproj" />
 | 
			
		||||
    <ProjectReference Include="..\..\connected.framework\Connected.Services\Connected.Services.csproj" />
 | 
			
		||||
    <ProjectReference Include="..\Connected.Common.Types.Middleware\Connected.Common.Types.Middleware.csproj" />
 | 
			
		||||
    <ProjectReference Include="..\Connected.Common.Types.Model\Connected.Common.Types.Model.csproj" />
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
 | 
			
		||||
</Project>
 | 
			
		||||
@ -1,9 +1,9 @@
 | 
			
		||||
using Common.Types.Continent.Countries;
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
using Connected.Common.Types.Continent.Countries;
 | 
			
		||||
using Connected.Entities;
 | 
			
		||||
using Connected.Entities.Annotations;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.Continents.Countries;
 | 
			
		||||
namespace Connected.Common.Types.Continents.Countries;
 | 
			
		||||
 | 
			
		||||
[Table(Schema = SchemaAttribute.TypesSchema)]
 | 
			
		||||
internal record ContinentCountry : Entity<int>, IContinentCountry
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
using Connected.Entities.Caching;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.Continents.Countries;
 | 
			
		||||
namespace Connected.Common.Types.Continents.Countries;
 | 
			
		||||
 | 
			
		||||
internal interface IContinentCountryCache : IEntityCacheClient<ContinentCountry, int> { }
 | 
			
		||||
internal class ContinentCountryCache : EntityCacheClient<ContinentCountry, int>, IContinentCountryCache
 | 
			
		||||
@ -1,9 +1,9 @@
 | 
			
		||||
using Common.Types.Continent.Countries;
 | 
			
		||||
using System.Collections.Immutable;
 | 
			
		||||
using Connected.Common.Types.Continent.Countries;
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
using Connected.Services;
 | 
			
		||||
using System.Collections.Immutable;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.Continents.Countries;
 | 
			
		||||
namespace Connected.Common.Types.Continents.Countries;
 | 
			
		||||
 | 
			
		||||
internal class ContinentCountryService : EntityService<int>, IContinentCountryService
 | 
			
		||||
{
 | 
			
		||||
@ -1,12 +1,12 @@
 | 
			
		||||
using Common.Types.Continent;
 | 
			
		||||
using Common.Types.Countries;
 | 
			
		||||
using Connected.Common.Types.Continent;
 | 
			
		||||
using Connected.Common.Types.Countries;
 | 
			
		||||
using Connected.Data.DataProtection;
 | 
			
		||||
using Connected.Data.EntityProtection;
 | 
			
		||||
using Connected.Entities;
 | 
			
		||||
using Connected.Middleware;
 | 
			
		||||
using Connected.Validation;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.Continents.Countries;
 | 
			
		||||
namespace Connected.Common.Types.Continents.Countries;
 | 
			
		||||
 | 
			
		||||
internal class ContinentProtector : MiddlewareComponent, IEntityProtector<IContinent>
 | 
			
		||||
{
 | 
			
		||||
@ -2,7 +2,7 @@
 | 
			
		||||
using Connected.Entities.Annotations;
 | 
			
		||||
using Connected.Entities.Consistency;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.Countries;
 | 
			
		||||
namespace Connected.Common.Types.Countries;
 | 
			
		||||
 | 
			
		||||
[Table(Schema = SchemaAttribute.TypesSchema)]
 | 
			
		||||
internal record Country : ConsistentEntity<int>, ICountry
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
using Connected.Entities.Caching;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.Countries;
 | 
			
		||||
namespace Connected.Common.Types.Countries;
 | 
			
		||||
 | 
			
		||||
internal interface ICountryCache : IEntityCacheClient<Country, int> { }
 | 
			
		||||
/// <summary>
 | 
			
		||||
@ -1,12 +1,11 @@
 | 
			
		||||
using System.Collections.Immutable;
 | 
			
		||||
using Connected;
 | 
			
		||||
using Connected.Entities;
 | 
			
		||||
using Connected.Entities.Storage;
 | 
			
		||||
using Connected.Notifications.Events;
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
using Connected.Services;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.Countries;
 | 
			
		||||
namespace Connected.Common.Types.Countries;
 | 
			
		||||
 | 
			
		||||
internal sealed class QueryCountries : ServiceFunction<IDto, ImmutableList<ICountry>?>
 | 
			
		||||
{
 | 
			
		||||
@ -1,10 +1,10 @@
 | 
			
		||||
using Common.Types.Security;
 | 
			
		||||
using System.Collections.Immutable;
 | 
			
		||||
using Connected.Common.Types.Security;
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
using Connected.Services;
 | 
			
		||||
using Connected.Services.Annotations;
 | 
			
		||||
using System.Collections.Immutable;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.Countries;
 | 
			
		||||
namespace Connected.Common.Types.Countries;
 | 
			
		||||
 | 
			
		||||
internal sealed class CountryService : EntityService<int>, ICountryService
 | 
			
		||||
{
 | 
			
		||||
@ -1,7 +1,7 @@
 | 
			
		||||
using Connected.Middleware;
 | 
			
		||||
using Connected.Validation;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.Countries;
 | 
			
		||||
namespace Connected.Common.Types.Countries;
 | 
			
		||||
 | 
			
		||||
internal class CountryValidator : MiddlewareComponent, IValidator<InsertCountryArgs>
 | 
			
		||||
{
 | 
			
		||||
@ -1,9 +1,9 @@
 | 
			
		||||
using Common.Types.Middleware.Currencies;
 | 
			
		||||
using System.Globalization;
 | 
			
		||||
using Connected.Common.Types.Middleware.Currencies;
 | 
			
		||||
using Connected.Interop;
 | 
			
		||||
using Connected.Middleware;
 | 
			
		||||
using System.Globalization;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.Currencies;
 | 
			
		||||
namespace Connected.Common.Types.Currencies;
 | 
			
		||||
 | 
			
		||||
internal class DefaultCurrencyFormatterMiddleware<TValue> : MiddlewareComponent, ICurrencyFormatterMiddleware<TValue>
 | 
			
		||||
{
 | 
			
		||||
							
								
								
									
										9
									
								
								Connected.Common.Types/Security/Claims.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								Connected.Common.Types/Security/Claims.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,9 @@
 | 
			
		||||
namespace Connected.Common.Types.Security;
 | 
			
		||||
 | 
			
		||||
internal static class Claims
 | 
			
		||||
{
 | 
			
		||||
	public const string Delete = "Common Delete";
 | 
			
		||||
	public const string Read = "Common Read";
 | 
			
		||||
	public const string Add = "Common Add";
 | 
			
		||||
	public const string Modify = "Common Modify";
 | 
			
		||||
}
 | 
			
		||||
@ -1,13 +1,11 @@
 | 
			
		||||
using System.Runtime.CompilerServices;
 | 
			
		||||
 | 
			
		||||
using Connected;
 | 
			
		||||
using Connected.Annotations;
 | 
			
		||||
 | 
			
		||||
[assembly: MicroService(MicroServiceType.Service)]
 | 
			
		||||
[assembly: InternalsVisibleTo("Common.Types.Tests")]
 | 
			
		||||
[assembly: InternalsVisibleTo("Connected.Common.Types.Tests")]
 | 
			
		||||
[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")]
 | 
			
		||||
 | 
			
		||||
namespace Common.Types;
 | 
			
		||||
namespace Connected.Common.Types;
 | 
			
		||||
 | 
			
		||||
internal class ServerStartup : Startup
 | 
			
		||||
{
 | 
			
		||||
@ -2,7 +2,7 @@
 | 
			
		||||
using Connected.Entities.Annotations;
 | 
			
		||||
using Connected.Entities.Concurrency;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.TaxRates;
 | 
			
		||||
namespace Connected.Common.Types.TaxRates;
 | 
			
		||||
 | 
			
		||||
/// <summary>
 | 
			
		||||
/// The <see cref="ITaxRate"/> entity.
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
using Connected.Entities.Caching;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.TaxRates;
 | 
			
		||||
namespace Connected.Common.Types.TaxRates;
 | 
			
		||||
 | 
			
		||||
/// <summary>
 | 
			
		||||
/// This is the contract for the typed cache. Using contracts for
 | 
			
		||||
@ -5,7 +5,7 @@ using Connected.Notifications.Events;
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
using Connected.Services;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.TaxRates;
 | 
			
		||||
namespace Connected.Common.Types.TaxRates;
 | 
			
		||||
 | 
			
		||||
internal class TaxRateOps
 | 
			
		||||
{
 | 
			
		||||
@ -1,10 +1,10 @@
 | 
			
		||||
using Common.Types.Security;
 | 
			
		||||
using System.Collections.Immutable;
 | 
			
		||||
using Connected.Common.Types.Security;
 | 
			
		||||
using Connected.ServiceModel;
 | 
			
		||||
using Connected.Services;
 | 
			
		||||
using Connected.Services.Annotations;
 | 
			
		||||
using System.Collections.Immutable;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.TaxRates;
 | 
			
		||||
namespace Connected.Common.Types.TaxRates;
 | 
			
		||||
 | 
			
		||||
/// <summary>
 | 
			
		||||
/// The implementation class for <see cref="ITaxRateService"/> service.
 | 
			
		||||
@ -2,7 +2,7 @@
 | 
			
		||||
using Connected.Middleware;
 | 
			
		||||
using Connected.Validation;
 | 
			
		||||
 | 
			
		||||
namespace Common.Types.TaxRates;
 | 
			
		||||
namespace Connected.Common.Types.TaxRates;
 | 
			
		||||
 | 
			
		||||
/// <summary>
 | 
			
		||||
/// Business logic validator for the <see cref="InsertTaxRateArgs"/> arguments.
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user