Leichte Anpassungen / Einlesen funktioniert jetzt über den Pfad
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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)
|
||||
|
@@ -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<Customer> Customers, List<string> Protocol) For(string filePath)
|
||||
|
@@ -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")]
|
||||
|
@@ -1 +1 @@
|
||||
b7a6e87d6dec130dcc98889acb8324098d6ecce8b407916d22fbac7ae0858d76
|
||||
ca49067a20f82534e6f4dc92655af77866e882ae8f80b03ea3f9bd23828f8614
|
||||
|
73
Projekt_Calcan_Conze/import_yutani.csv
Normal file
73
Projekt_Calcan_Conze/import_yutani.csv
Normal file
@@ -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;;
|
|
Reference in New Issue
Block a user