diff --git a/Dateien/Import_Export_part_1.sql b/Dateien/Import_Export_part_1.sql deleted file mode 100644 index ba212e8..0000000 --- a/Dateien/Import_Export_part_1.sql +++ /dev/null @@ -1,185 +0,0 @@ --- phpMyAdmin SQL Dump --- version 4.5.1 --- http://www.phpmyadmin.net --- --- Host: 127.0.0.1 --- Erstellungszeit: 24. Nov 2017 um 17:01 --- Server-Version: 10.1.16-MariaDB --- PHP-Version: 7.0.9 - -SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; -SET time_zone = "+00:00"; - - -/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; -/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; -/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!40101 SET NAMES utf8mb4 */; - --- -------------------------------------------------------- - - -CREATE TABLE `user` ( - `id` int(8) NOT NULL, - `clientId` int(8) NOT NULL, - `genderId` tinyint(1) NOT NULL, - `firstname` varchar(40) NOT NULL, - `lastname` varchar(80) NOT NULL, - `birthdate` date NOT NULL, - `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - -CREATE TABLE `gender` ( - `id` tinyint(1) NOT NULL, - `description` varchar(255) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - -CREATE TABLE `address` ( - `id` int(8) NOT NULL, - `userId` int(8) NOT NULL, - `street` varchar(400) NOT NULL, - `postalcode` int(255) NOT NULL, - `city` varchar(255) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - -CREATE TABLE `email` ( - `id` int(8) NOT NULL, - `userId` int(8) NOT NULL, - `email` varchar(400) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - -CREATE TABLE `phone` ( - `id` int(8) NOT NULL, - `userId` int(8) NOT NULL, - `phoneprefix` int(6) NOT NULL, - `phonenumber` int(10) NOT null -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - -CREATE TABLE `client` ( - `id` int(8) NOT NULL, - `name` varchar(255) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - - -------- - -ALTER TABLE `gender` - ADD PRIMARY KEY (`id`); - -ALTER TABLE `client` - ADD PRIMARY KEY (`id`); - -ALTER TABLE `user` - ADD PRIMARY KEY (`id`), - ADD CONSTRAINT FK_user_client FOREIGN KEY (`clientId`) REFERENCES client(`id`), - ADD CONSTRAINT FK_user_gender FOREIGN KEY (`genderId`) REFERENCES gender(`id`); - -ALTER TABLE `phone` - ADD PRIMARY KEY (`id`), - ADD CONSTRAINT FK_user_phone FOREIGN KEY (`userId`) REFERENCES user(`id`); - -ALTER TABLE `address` - ADD PRIMARY KEY (`id`), - ADD CONSTRAINT FK_user_address FOREIGN KEY (`userId`) REFERENCES user(`id`); - -ALTER TABLE `email` - ADD PRIMARY KEY (`id`), - ADD CONSTRAINT FK_user_email FOREIGN KEY (`userId`) REFERENCES user(`id`); - - ----- Werte - -INSERT INTO `gender` VALUES (1, 'Herr') -, (2, 'Frau') -, (3, 'Divers'); - -INSERT INTO `client` VALUES (1, 'bibtastic GmbH') -, (2, 'Weyland-Yutani Corporation'); - -INSERT INTO `user` (`id`, `clientId`, `genderId`, `firstname`, `lastname`, `birthdate`, `created`) VALUES -(1, 1, 1, 'Max', 'Mustermann', '1985-05-15', CURRENT_TIMESTAMP), -(2, 1, 2, 'Erika', 'Musterfrau', '1990-07-20', CURRENT_TIMESTAMP), -(3, 2, 1, 'Hans', 'Schmidt', '1978-11-30', CURRENT_TIMESTAMP), -(4, 2, 2, 'Anna', 'Schneider', '1983-02-25', CURRENT_TIMESTAMP), -(5, 1, 1, 'Peter', 'Müller', '1992-03-17', CURRENT_TIMESTAMP), -(6, 1, 2, 'Maria', 'Bauer', '1987-08-05', CURRENT_TIMESTAMP), -(7, 2, 1, 'Michael', 'Fischer', '1984-12-12', CURRENT_TIMESTAMP), -(8, 2, 2, 'Laura', 'Weber', '1991-09-10', CURRENT_TIMESTAMP), -(9, 1, 1, 'Thomas', 'Wagner', '1989-06-24', CURRENT_TIMESTAMP), -(10, 1, 2, 'Sophia', 'Becker', '1993-01-18', CURRENT_TIMESTAMP), -(11, 2, 1, 'Daniel', 'Hoffmann', '1982-10-03', CURRENT_TIMESTAMP), -(12, 2, 2, 'Katharina', 'Koch', '1986-04-22', CURRENT_TIMESTAMP), -(13, 1, 1, 'Stefan', 'Richter', '1988-07-29', CURRENT_TIMESTAMP), -(14, 1, 2, 'Julia', 'Klein', '1995-05-08', CURRENT_TIMESTAMP), -(15, 2, 1, 'Sebastian', 'Wolf', '1981-11-14', CURRENT_TIMESTAMP); - -INSERT INTO `phone` (`id`, `userId`, `phoneprefix`, `phonenumber`) VALUES -('1', '1', 30, 12345678), -('2', '2', 89, 87654321), -('3', '3', 221, 11223344), -('4', '4', 40, 55667788), -('5', '5', 511, 99887766), -('6', '6', 351, 33445566), -('7', '7', 341, 77889900), -('8', '8', 561, 44556677), -('9', '9', 611, 22334455), -('10', '10', 541, 66778899), -('11', '11', 821, 11002233), -('12', '12', 361, 99001122), -('13', '13', 551, 33446688), -('14', '14', 331, 22114455), -('15', '15', 6131, 55668844), -('21', '1', 170, 12349876), -('22', '2', 172, 23456789), -('23', '3', 176, 34567890), -('24', '4', 179, 45678901), -('25', '5', 170, 56789012), -('26', '6', 172, 67890123), -('27', '7', 176, 78901234), -('28', '8', 179, 89012345), -('29', '9', 170, 90123456), -('30', '10', 172, 11223344), -('31', '11', 176, 22334455), -('32', '12', 179, 33445566), -('33', '13', 170, 44556677), -('34', '14', 172, 55667788), -('35', '15', 176, 66778899); - -INSERT INTO `email` (`id`, `userId`, `email`) VALUES -(1, 1, 'max.mustermann@example.com'), -(2, 2, 'erika.musterfrau@example.com'), -(3, 3, 'hans.schmidt@example.com'), -(4, 4, 'anna.schneider@example.com'), -(5, 5, 'peter.muller@example.com'), -(6, 6, 'maria.bauer@example.com'), -(7, 7, 'michael.fischer@example.com'), -(8, 8, 'laura.weber@example.com'), -(9, 9, 'thomas.wagner@example.com'), -(10, 10, 'sophia.becker@example.com'), -(11, 11, 'daniel.hoffmann@example.com'), -(12, 12, 'katharina.koch@example.com'), -(13, 13, 'stefan.richter@example.com'), -(14, 14, 'julia.klein@example.com'), -(15, 15, 'sebastian.wolf@example.com'); - - -INSERT INTO `address` (`id`, `userId`, `street`, `postalcode`, `city`) VALUES -(1, 1, 'Musterstraße 1', 10115, 'Berlin'), -(2, 2, 'Beispielweg 23', 80331, 'München'), -(3, 3, 'Hauptstraße 45', 50667, 'Köln'), -(4, 4, 'Parkallee 12', 20095, 'Hamburg'), -(5, 5, 'Bahnhofstraße 88', 30159, 'Hannover'), -(6, 6, 'Schulstraße 6', 01067, 'Dresden'), -(7, 7, 'Ringstraße 19', 04109, 'Leipzig'), -(8, 8, 'Lindenweg 22', 34117, 'Kassel'), -(9, 9, 'Bergstraße 15', 65183, 'Wiesbaden'), -(10, 10, 'Feldweg 30', 49074, 'Osnabrück'), -(11, 11, 'Marktstraße 14', 86150, 'Augsburg'), -(12, 12, 'Gartenstraße 8', 99084, 'Erfurt'), -(13, 13, 'Dorfstraße 11', 37073, 'Göttingen'), -(14, 14, 'Kirchplatz 7', 14467, 'Potsdam'); - - -/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; -/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; diff --git a/Projekt_Calcan_Conze/.vs/Projekt_Calcan_Conze/DesignTimeBuild/.dtbcache.v2 b/Projekt_Calcan_Conze/.vs/Projekt_Calcan_Conze/DesignTimeBuild/.dtbcache.v2 index 27f5349..e21943d 100644 Binary files a/Projekt_Calcan_Conze/.vs/Projekt_Calcan_Conze/DesignTimeBuild/.dtbcache.v2 and b/Projekt_Calcan_Conze/.vs/Projekt_Calcan_Conze/DesignTimeBuild/.dtbcache.v2 differ diff --git a/Projekt_Calcan_Conze/.vs/Projekt_Calcan_Conze/v17/.futdcache.v2 b/Projekt_Calcan_Conze/.vs/Projekt_Calcan_Conze/v17/.futdcache.v2 index 6d9d001..74010f7 100644 Binary files a/Projekt_Calcan_Conze/.vs/Projekt_Calcan_Conze/v17/.futdcache.v2 and b/Projekt_Calcan_Conze/.vs/Projekt_Calcan_Conze/v17/.futdcache.v2 differ diff --git a/Projekt_Calcan_Conze/.vs/Projekt_Calcan_Conze/v17/.suo b/Projekt_Calcan_Conze/.vs/Projekt_Calcan_Conze/v17/.suo index d1add5d..13f7424 100644 Binary files a/Projekt_Calcan_Conze/.vs/Projekt_Calcan_Conze/v17/.suo and b/Projekt_Calcan_Conze/.vs/Projekt_Calcan_Conze/v17/.suo differ diff --git a/Projekt_Calcan_Conze/.vs/Projekt_Calcan_Conze/v17/DocumentLayout.json b/Projekt_Calcan_Conze/.vs/Projekt_Calcan_Conze/v17/DocumentLayout.json index 975cc27..5465427 100644 --- a/Projekt_Calcan_Conze/.vs/Projekt_Calcan_Conze/v17/DocumentLayout.json +++ b/Projekt_Calcan_Conze/.vs/Projekt_Calcan_Conze/v17/DocumentLayout.json @@ -5,6 +5,34 @@ { "AbsoluteMoniker": "D:0:0:{44DD7752-6BB5-4C3A-9053-671D8ADE49C4}|Projekt_Calcan_Conze\\Projekt_Calcan_Conze.csproj|c:\\jan_bib_module\\pmc\\projekt\\projekt_calcan_conze\\projekt_calcan_conze\\programm.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", "RelativeMoniker": "D:0:0:{44DD7752-6BB5-4C3A-9053-671D8ADE49C4}|Projekt_Calcan_Conze\\Projekt_Calcan_Conze.csproj|solutionrelative:projekt_calcan_conze\\programm.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{44DD7752-6BB5-4C3A-9053-671D8ADE49C4}|Projekt_Calcan_Conze\\Projekt_Calcan_Conze.csproj|c:\\jan_bib_module\\pmc\\projekt\\projekt_calcan_conze\\projekt_calcan_conze\\dtos\\customerdto.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{44DD7752-6BB5-4C3A-9053-671D8ADE49C4}|Projekt_Calcan_Conze\\Projekt_Calcan_Conze.csproj|solutionrelative:projekt_calcan_conze\\dtos\\customerdto.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{44DD7752-6BB5-4C3A-9053-671D8ADE49C4}|Projekt_Calcan_Conze\\Projekt_Calcan_Conze.csproj|c:\\jan_bib_module\\pmc\\projekt\\projekt_calcan_conze\\projekt_calcan_conze\\dtos\\customerattributedto.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{44DD7752-6BB5-4C3A-9053-671D8ADE49C4}|Projekt_Calcan_Conze\\Projekt_Calcan_Conze.csproj|solutionrelative:projekt_calcan_conze\\dtos\\customerattributedto.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{44DD7752-6BB5-4C3A-9053-671D8ADE49C4}|Projekt_Calcan_Conze\\Projekt_Calcan_Conze.csproj|c:\\jan_bib_module\\pmc\\projekt\\projekt_calcan_conze\\projekt_calcan_conze\\models\\customer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{44DD7752-6BB5-4C3A-9053-671D8ADE49C4}|Projekt_Calcan_Conze\\Projekt_Calcan_Conze.csproj|solutionrelative:projekt_calcan_conze\\models\\customer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{44DD7752-6BB5-4C3A-9053-671D8ADE49C4}|Projekt_Calcan_Conze\\Projekt_Calcan_Conze.csproj|c:\\jan_bib_module\\pmc\\projekt\\projekt_calcan_conze\\projekt_calcan_conze\\models\\address.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{44DD7752-6BB5-4C3A-9053-671D8ADE49C4}|Projekt_Calcan_Conze\\Projekt_Calcan_Conze.csproj|solutionrelative:projekt_calcan_conze\\models\\address.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{44DD7752-6BB5-4C3A-9053-671D8ADE49C4}|Projekt_Calcan_Conze\\Projekt_Calcan_Conze.csproj|c:\\jan_bib_module\\pmc\\projekt\\projekt_calcan_conze\\projekt_calcan_conze\\constants.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{44DD7752-6BB5-4C3A-9053-671D8ADE49C4}|Projekt_Calcan_Conze\\Projekt_Calcan_Conze.csproj|solutionrelative:projekt_calcan_conze\\constants.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{44DD7752-6BB5-4C3A-9053-671D8ADE49C4}|Projekt_Calcan_Conze\\Projekt_Calcan_Conze.csproj|c:\\jan_bib_module\\pmc\\projekt\\projekt_calcan_conze\\projekt_calcan_conze\\import.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{44DD7752-6BB5-4C3A-9053-671D8ADE49C4}|Projekt_Calcan_Conze\\Projekt_Calcan_Conze.csproj|solutionrelative:projekt_calcan_conze\\import.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{44DD7752-6BB5-4C3A-9053-671D8ADE49C4}|Projekt_Calcan_Conze\\Projekt_Calcan_Conze.csproj|c:\\jan_bib_module\\pmc\\projekt\\projekt_calcan_conze\\projekt_calcan_conze\\models\\phonenumber.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{44DD7752-6BB5-4C3A-9053-671D8ADE49C4}|Projekt_Calcan_Conze\\Projekt_Calcan_Conze.csproj|solutionrelative:projekt_calcan_conze\\models\\phonenumber.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" } ], "DocumentGroupContainers": [ @@ -24,10 +52,100 @@ "RelativeDocumentMoniker": "Projekt_Calcan_Conze\\Programm.cs", "ToolTip": "C:\\Jan_bib_Module\\PMC\\Projekt\\Projekt_Calcan_Conze\\Projekt_Calcan_Conze\\Programm.cs", "RelativeToolTip": "Projekt_Calcan_Conze\\Programm.cs", - "ViewState": "AgIAAAAAAAAAAAAAAAAAABYAAAApAAAAAAAAAA==", + "ViewState": "AgIAAAAAAAAAAAAAAAAAAA4AAAABAAAAAAAAAA==", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", "WhenOpened": "2024-08-23T08:36:46.981Z", "EditorCaption": "" + }, + { + "$type": "Document", + "DocumentIndex": 6, + "Title": "Import.cs", + "DocumentMoniker": "C:\\Jan_bib_Module\\PMC\\Projekt\\Projekt_Calcan_Conze\\Projekt_Calcan_Conze\\Import.cs", + "RelativeDocumentMoniker": "Projekt_Calcan_Conze\\Import.cs", + "ToolTip": "C:\\Jan_bib_Module\\PMC\\Projekt\\Projekt_Calcan_Conze\\Projekt_Calcan_Conze\\Import.cs", + "RelativeToolTip": "Projekt_Calcan_Conze\\Import.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2024-08-26T06:25:21.455Z", + "EditorCaption": "" + }, + { + "$type": "Document", + "DocumentIndex": 5, + "Title": "Constants.cs", + "DocumentMoniker": "C:\\Jan_bib_Module\\PMC\\Projekt\\Projekt_Calcan_Conze\\Projekt_Calcan_Conze\\Constants.cs", + "RelativeDocumentMoniker": "Projekt_Calcan_Conze\\Constants.cs", + "ToolTip": "C:\\Jan_bib_Module\\PMC\\Projekt\\Projekt_Calcan_Conze\\Projekt_Calcan_Conze\\Constants.cs", + "RelativeToolTip": "Projekt_Calcan_Conze\\Constants.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAAAcAAAA/AAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2024-08-26T06:25:15.786Z", + "EditorCaption": "" + }, + { + "$type": "Document", + "DocumentIndex": 4, + "Title": "Address.cs", + "DocumentMoniker": "C:\\Jan_bib_Module\\PMC\\Projekt\\Projekt_Calcan_Conze\\Projekt_Calcan_Conze\\Models\\Address.cs", + "RelativeDocumentMoniker": "Projekt_Calcan_Conze\\Models\\Address.cs", + "ToolTip": "C:\\Jan_bib_Module\\PMC\\Projekt\\Projekt_Calcan_Conze\\Projekt_Calcan_Conze\\Models\\Address.cs", + "RelativeToolTip": "Projekt_Calcan_Conze\\Models\\Address.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2024-08-26T06:25:38.242Z", + "EditorCaption": "" + }, + { + "$type": "Document", + "DocumentIndex": 3, + "Title": "Customer.cs", + "DocumentMoniker": "C:\\Jan_bib_Module\\PMC\\Projekt\\Projekt_Calcan_Conze\\Projekt_Calcan_Conze\\Models\\Customer.cs", + "RelativeDocumentMoniker": "Projekt_Calcan_Conze\\Models\\Customer.cs", + "ToolTip": "C:\\Jan_bib_Module\\PMC\\Projekt\\Projekt_Calcan_Conze\\Projekt_Calcan_Conze\\Models\\Customer.cs", + "RelativeToolTip": "Projekt_Calcan_Conze\\Models\\Customer.cs", + "ViewState": "AgIAACcAAAAAAAAAAAAywAQAAAAAAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2024-08-26T06:25:37.24Z", + "EditorCaption": "" + }, + { + "$type": "Document", + "DocumentIndex": 2, + "Title": "CustomerAttributeDto.cs", + "DocumentMoniker": "C:\\Jan_bib_Module\\PMC\\Projekt\\Projekt_Calcan_Conze\\Projekt_Calcan_Conze\\DTOs\\CustomerAttributeDto.cs", + "RelativeDocumentMoniker": "Projekt_Calcan_Conze\\DTOs\\CustomerAttributeDto.cs", + "ToolTip": "C:\\Jan_bib_Module\\PMC\\Projekt\\Projekt_Calcan_Conze\\Projekt_Calcan_Conze\\DTOs\\CustomerAttributeDto.cs", + "RelativeToolTip": "Projekt_Calcan_Conze\\DTOs\\CustomerAttributeDto.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAAAQAAAAzAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2024-08-26T06:25:41.319Z", + "EditorCaption": "" + }, + { + "$type": "Document", + "DocumentIndex": 1, + "Title": "CustomerDto.cs", + "DocumentMoniker": "C:\\Jan_bib_Module\\PMC\\Projekt\\Projekt_Calcan_Conze\\Projekt_Calcan_Conze\\DTOs\\CustomerDto.cs", + "RelativeDocumentMoniker": "Projekt_Calcan_Conze\\DTOs\\CustomerDto.cs", + "ToolTip": "C:\\Jan_bib_Module\\PMC\\Projekt\\Projekt_Calcan_Conze\\Projekt_Calcan_Conze\\DTOs\\CustomerDto.cs", + "RelativeToolTip": "Projekt_Calcan_Conze\\DTOs\\CustomerDto.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAAAIAAAAVAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2024-08-26T06:25:42.556Z", + "EditorCaption": "" + }, + { + "$type": "Document", + "DocumentIndex": 7, + "Title": "PhoneNumber.cs", + "DocumentMoniker": "C:\\Jan_bib_Module\\PMC\\Projekt\\Projekt_Calcan_Conze\\Projekt_Calcan_Conze\\Models\\PhoneNumber.cs", + "RelativeDocumentMoniker": "Projekt_Calcan_Conze\\Models\\PhoneNumber.cs", + "ToolTip": "C:\\Jan_bib_Module\\PMC\\Projekt\\Projekt_Calcan_Conze\\Projekt_Calcan_Conze\\Models\\PhoneNumber.cs", + "RelativeToolTip": "Projekt_Calcan_Conze\\Models\\PhoneNumber.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2024-08-26T06:25:35.981Z" } ] } diff --git a/Projekt_Calcan_Conze/Projekt_Calcan_Conze/DTOs/CustomerDto.cs b/Projekt_Calcan_Conze/Projekt_Calcan_Conze/DTOs/CustomerDto.cs index dfa412c..f9414df 100644 --- a/Projekt_Calcan_Conze/Projekt_Calcan_Conze/DTOs/CustomerDto.cs +++ b/Projekt_Calcan_Conze/Projekt_Calcan_Conze/DTOs/CustomerDto.cs @@ -1,6 +1,6 @@ -using Projekt_Calcan_Conze.DTOs; +namespace Projekt_Calcan_Conze.DTOs; -namespace Projekt_Calcan_Conze.DTOs; +using Projekt_Calcan_Conze.DTOs; internal class CustomerDto { diff --git a/Projekt_Calcan_Conze/Projekt_Calcan_Conze/Models/Customer.cs b/Projekt_Calcan_Conze/Projekt_Calcan_Conze/Models/Customer.cs index 7f597c7..eaaab3c 100644 --- a/Projekt_Calcan_Conze/Projekt_Calcan_Conze/Models/Customer.cs +++ b/Projekt_Calcan_Conze/Projekt_Calcan_Conze/Models/Customer.cs @@ -1,7 +1,7 @@ -using Projekt_Calcan_Conze.Models; -using System.Text; +namespace Projekt_Calcan_Conze.Models; -namespace Projekt_Calcan_Conze.Models; +using Projekt_Calcan_Conze.Models; +using System.Text; internal class Customer { diff --git a/Projekt_Calcan_Conze/Projekt_Calcan_Conze/Programm.cs b/Projekt_Calcan_Conze/Projekt_Calcan_Conze/Programm.cs index 4c7ddd1..1314971 100644 --- a/Projekt_Calcan_Conze/Projekt_Calcan_Conze/Programm.cs +++ b/Projekt_Calcan_Conze/Projekt_Calcan_Conze/Programm.cs @@ -3,12 +3,23 @@ using Projekt_Calcan_Conze.Models; string? filePath = null; -while (filePath is null) +while (string.IsNullOrEmpty(filePath)) { Console.WriteLine("Bitte gib einen Dateipfad an:"); filePath = Console.ReadLine(); } +if (filePath.StartsWith('\"')) +{ + + filePath = filePath.Substring(startIndex: 1, length: filePath.Length - 1); +} + +if (filePath.EndsWith('\"')) +{ + filePath = filePath.Substring(startIndex: 0, length: filePath.Length - 1); +} + string? customerId = null; while (customerId is null) diff --git a/Projekt_Calcan_Conze/Projekt_Calcan_Conze/import.cs b/Projekt_Calcan_Conze/Projekt_Calcan_Conze/import.cs index 14b0b6b..400c036 100644 --- a/Projekt_Calcan_Conze/Projekt_Calcan_Conze/import.cs +++ b/Projekt_Calcan_Conze/Projekt_Calcan_Conze/import.cs @@ -1,11 +1,11 @@ -using System.Net.Mail; +namespace Projekt_Calcan_Conze; + +using System.Net.Mail; using Projekt_Calcan_Conze.DTOs; using Projekt_Calcan_Conze.Models; using Microsoft.VisualBasic; -namespace Projekt_Calcan_Conze; - internal static class Import { public static (List Customers, List Protocol) For(string filePath) diff --git a/Projekt_Calcan_Conze/Projekt_Calcan_Conze/obj/Debug/net8.0/Projekt_Calcan_Conze.AssemblyInfo.cs b/Projekt_Calcan_Conze/Projekt_Calcan_Conze/obj/Debug/net8.0/Projekt_Calcan_Conze.AssemblyInfo.cs index 560e172..557120f 100644 --- a/Projekt_Calcan_Conze/Projekt_Calcan_Conze/obj/Debug/net8.0/Projekt_Calcan_Conze.AssemblyInfo.cs +++ b/Projekt_Calcan_Conze/Projekt_Calcan_Conze/obj/Debug/net8.0/Projekt_Calcan_Conze.AssemblyInfo.cs @@ -14,7 +14,7 @@ using System.Reflection; [assembly: System.Reflection.AssemblyCompanyAttribute("Projekt_Calcan_Conze")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+9f2e9cbec8646502e9f8d8e82a8d93ceb2077c93")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+26c62d000d0e4ffd1f3c6baf8a522f5b891e50dc")] [assembly: System.Reflection.AssemblyProductAttribute("Projekt_Calcan_Conze")] [assembly: System.Reflection.AssemblyTitleAttribute("Projekt_Calcan_Conze")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] diff --git a/Projekt_Calcan_Conze/Projekt_Calcan_Conze/obj/Debug/net8.0/Projekt_Calcan_Conze.AssemblyInfoInputs.cache b/Projekt_Calcan_Conze/Projekt_Calcan_Conze/obj/Debug/net8.0/Projekt_Calcan_Conze.AssemblyInfoInputs.cache index 54a967d..07026d1 100644 --- a/Projekt_Calcan_Conze/Projekt_Calcan_Conze/obj/Debug/net8.0/Projekt_Calcan_Conze.AssemblyInfoInputs.cache +++ b/Projekt_Calcan_Conze/Projekt_Calcan_Conze/obj/Debug/net8.0/Projekt_Calcan_Conze.AssemblyInfoInputs.cache @@ -1 +1 @@ -b7a6e87d6dec130dcc98889acb8324098d6ecce8b407916d22fbac7ae0858d76 +ca49067a20f82534e6f4dc92655af77866e882ae8f80b03ea3f9bd23828f8614 diff --git a/Projekt_Calcan_Conze/import_yutani.csv b/Projekt_Calcan_Conze/import_yutani.csv new file mode 100644 index 0000000..5632538 --- /dev/null +++ b/Projekt_Calcan_Conze/import_yutani.csv @@ -0,0 +1,73 @@ +Frau;Sabrina;Schröder;11.02.1992 +Adresse;Brückenstraße 9;93047;Regensburg +E-Mail;sabrina.schroder@example.com;; +Telefon;941;77990011; +Telefon;179;77889900; +Herr;Alexander;Neumann;27.03.1983 +Adresse;Am Rathaus 4;94032;Passau +E-Mail;alexander.neumann@example.com;; +Telefon;170;88990011; +Telefon;851;11224433; +Frau;Nina;Schwarz;09.10.1989 +Adresse;Hafenstraße 3;18055;Rostock +E-Mail;nina.schwarz@example.com;; +Telefon;172;99001122; +Telefon;381;66554433; +Herr;Markus;Zimmermann;30.12.1986 +Adresse;Friedrichstraße 10;10178;Berlin +E-Mail;markus.zimmermann@example.com;; +Telefon;40;22335544; +Telefon;176;10111213; +Frau;Lisa;Krüger;15.06.1991 +Adresse;Schloßallee 1;80333;München +E-Mail;lisa.kruger@example.com;; +Telefon;30;44667788; +Telefon;179;12131415; +Herr;Christian;Hartmann;23.01.1980 +Adresse;Wilhelmstraße 5;50679;Köln +E-Mail;christian.hartmann@example.com;; +Telefon;30;13141516; +Frau;Melanie;Werner;19.09.1987 +Adresse;Heinrich-Heine-Platz 7;20097;Hamburg +E-Mail;melanie.werner@example.com;; +Telefon;40;14151617; +Herr;Patrick;Krause;05.05.1984 +Adresse;Neustadt 3;30159;Hannover +E-Mail;patrick.krause@example.com;; +Telefon;89;15161718; +Frau;Claudia;Meier;02.03.1990 +Adresse;Alte Straße 22;1067;Dresden +E-Mail;claudia.meier@example.com;; +Telefon;221;16171819; +Herr;Tobias;Lehmann;26.11.1985 +Adresse;Markt 11;4109;Leipzig +E-Mail;tobias.lehmann@example.com;; +Telefon;511;17181920; +Frau;Sandra;Maier;17.04.1988 +Adresse;Rathausplatz 8;34117;Kassel +E-Mail;sandra.maier@example.com;; +Telefon;331;18192021; +Herr;Jan;Huber;08.08.1983 +Adresse;Hauptplatz 15;65183;Wiesbaden +E-Mail;jan.huber@example.com;; +Telefon;361;19202122; +Frau;Susanne;Schulz;21.06.1992 +Adresse;Am Markt 6;49074;Osnabrück +E-Mail;susanne.schulz@example.com;; +Telefon;551;20212223; +Herr;Benjamin;Lang;09.12.1986 +Adresse;Hofgartenweg 1;86150;Augsburg +E-Mail;benjamin.lang@example.com;; +Telefon;381;21222324; +Frau;Kerstin;Böhm;02.07.1987 +Adresse;Mühlweg 18;99084;Erfurt +E-Mail;kerstin.bohm@example.com;; +Telefon;561;22232425; +Herr;Florian;Kuhn;16.05.1982 +Adresse;Burgstraße 2;37073;Göttingen +E-Mail;florian.kuhn@example.com;; +Frau;Anja;Peters;11.08.1991 +Adresse;Schillerplatz 9;14467;Potsdam +E-Mail;anja.peters@example.com;; +Herr;Tim;Franke;22.10.1980 +E-Mail;tim.franke@example.com;;