From aeb270769978c1cbdf2f285654502b991156aa86 Mon Sep 17 00:00:00 2001 From: "NBJC\\bib" Date: Wed, 28 Aug 2024 08:55:39 +0200 Subject: [PATCH] Beginn dbConnection --- .../Projekt_Calcan_Conze/v17/.futdcache.v2 | Bin 164 -> 164 bytes .../.vs/Projekt_Calcan_Conze/v17/.suo | Bin 59904 -> 65024 bytes .../v17/DocumentLayout.json | 67 +++++++++++------- .../Projekt_Calcan_Conze/Models/Customer.cs | 1 - .../Projekt_Calcan_Conze/Programm.cs | 1 - .../Repository/dbConnection.cs | 43 +++++++++++ .../Projekt_Calcan_Conze.AssemblyInfo.cs | 2 +- ...jekt_Calcan_Conze.AssemblyInfoInputs.cache | 2 +- 8 files changed, 85 insertions(+), 31 deletions(-) create mode 100644 Projekt_Calcan_Conze/Projekt_Calcan_Conze/Repository/dbConnection.cs 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 74010f78e6d3a78b1637370eaf8e79a1063176c9..58c2178c9483dac9bd4140c8aecbe868222138a3 100644 GIT binary patch delta 27 icmZ3&xP)=S1d(4!b6x+<5?3uec8BAHYQJ?ZkOly&KMZ;R delta 27 lcmV+$0ObFq0i*$tkQA0RQ@*MR0Dn%y+z6?j_H?qv+z6eh42}Q* diff --git a/Projekt_Calcan_Conze/.vs/Projekt_Calcan_Conze/v17/.suo b/Projekt_Calcan_Conze/.vs/Projekt_Calcan_Conze/v17/.suo index 13f7424ed031bf01955951c99a8c1dbc994c7b7d..74120ab04dac8c2a35ee4003cd0d1d6204cb6840 100644 GIT binary patch delta 4773 zcmc&%3s93+7XEJt?|{6YL4$$@Of(^ZM0q6`r3)@Zs;zc>@Gw!V0+mpO$`EaJI$i2& zj=SSj?H24>v_AQ*JN2y(>yyvkgg9RSS93^215HA@M=v=U&rK0}}rsFuylnQl{I(823ND81` zqV-BZp^pdDdHgDXQ)Al`aU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B#T-tnL&>qp zQf#~B`OD|ZB`lZoRe>ZEH$x&WbjNZEi)2)7ISVEH5u}wzN7*OZ6J) z*t!SWyE3Hefkj%-_5KCIo;qkhZj+wt^D?pf!^!ty(9vfDUw^SwxA!R){~2@7v*T~8 z(>b(Ddo67UYN34J`(S@03yjA{;p?FU)ncd~m?0(a*~u=W@U!&QU@jA%tU=`xsmwp0 zf$u|JM=uTo|A7V=?@fcAcV3@djlQSaBvj*|Lu`@S4`y&U-N-c3(=Yv{mt%|?Sc?79 z3nPbOVdO{(y6)i6o2d7-Px5`>V=y-QsE)pRC!e&QgYh5IVE7k1H02xRFSsdRSSjI9 zUCg9=dE8ZCJe7ualj&0|bkcu0R)XadyQSSHHb+gtUW(qAo7vF!oEUIPuG9XgzX5G% B80Y{1 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 5465427..ac681b1 100644 --- a/Projekt_Calcan_Conze/.vs/Projekt_Calcan_Conze/v17/DocumentLayout.json +++ b/Projekt_Calcan_Conze/.vs/Projekt_Calcan_Conze/v17/DocumentLayout.json @@ -2,18 +2,18 @@ "Version": 1, "WorkspaceRootPath": "C:\\Jan_bib_Module\\PMC\\Projekt\\Projekt_Calcan_Conze\\", "Documents": [ + { + "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\\repository\\dbconnection.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\\repository\\dbconnection.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\\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}" @@ -27,8 +27,12 @@ "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\\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\\phonenumber.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", @@ -42,34 +46,47 @@ "DocumentGroups": [ { "DockedWidth": 200, - "SelectedChildIndex": 0, + "SelectedChildIndex": 2, "Children": [ { "$type": "Document", - "DocumentIndex": 0, + "DocumentIndex": 2, "Title": "Programm.cs", "DocumentMoniker": "C:\\Jan_bib_Module\\PMC\\Projekt\\Projekt_Calcan_Conze\\Projekt_Calcan_Conze\\Programm.cs", "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": "AgIAAAAAAAAAAAAAAAAAAA4AAAABAAAAAAAAAA==", + "ViewState": "AgIAAAkAAAAAAAAAAAAAACcAAAAUAAAAAAAAAA==", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", "WhenOpened": "2024-08-23T08:36:46.981Z", "EditorCaption": "" }, { "$type": "Document", - "DocumentIndex": 6, + "DocumentIndex": 1, "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==", + "ViewState": "AgIAAAAAAAAAAAAAAAAAAHQAAAAAAAAAAAAAAA==", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", "WhenOpened": "2024-08-26T06:25:21.455Z", "EditorCaption": "" }, + { + "$type": "Document", + "DocumentIndex": 0, + "Title": "dbConnection.cs", + "DocumentMoniker": "C:\\Jan_bib_Module\\PMC\\Projekt\\Projekt_Calcan_Conze\\Projekt_Calcan_Conze\\Repository\\dbConnection.cs", + "RelativeDocumentMoniker": "Projekt_Calcan_Conze\\Repository\\dbConnection.cs", + "ToolTip": "C:\\Jan_bib_Module\\PMC\\Projekt\\Projekt_Calcan_Conze\\Projekt_Calcan_Conze\\Repository\\dbConnection.cs", + "RelativeToolTip": "Projekt_Calcan_Conze\\Repository\\dbConnection.cs", + "ViewState": "AgIAABIAAAAAAAAAAAAAACIAAAArAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2024-08-27T08:20:43.501Z", + "EditorCaption": "" + }, { "$type": "Document", "DocumentIndex": 5, @@ -80,8 +97,7 @@ "RelativeToolTip": "Projekt_Calcan_Conze\\Constants.cs", "ViewState": "AgIAAAAAAAAAAAAAAAAAAAcAAAA/AAAAAAAAAA==", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2024-08-26T06:25:15.786Z", - "EditorCaption": "" + "WhenOpened": "2024-08-26T06:25:15.786Z" }, { "$type": "Document", @@ -93,8 +109,7 @@ "RelativeToolTip": "Projekt_Calcan_Conze\\Models\\Address.cs", "ViewState": "AgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2024-08-26T06:25:38.242Z", - "EditorCaption": "" + "WhenOpened": "2024-08-26T06:25:38.242Z" }, { "$type": "Document", @@ -104,14 +119,14 @@ "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==", + "ViewState": "AgIAAAAAAAAAAAAAAAAAAAkAAAAZAAAAAAAAAA==", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", "WhenOpened": "2024-08-26T06:25:37.24Z", "EditorCaption": "" }, { "$type": "Document", - "DocumentIndex": 2, + "DocumentIndex": 7, "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", @@ -119,12 +134,11 @@ "RelativeToolTip": "Projekt_Calcan_Conze\\DTOs\\CustomerAttributeDto.cs", "ViewState": "AgIAAAAAAAAAAAAAAAAAAAQAAAAzAAAAAAAAAA==", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2024-08-26T06:25:41.319Z", - "EditorCaption": "" + "WhenOpened": "2024-08-26T06:25:41.319Z" }, { "$type": "Document", - "DocumentIndex": 1, + "DocumentIndex": 6, "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", @@ -132,12 +146,11 @@ "RelativeToolTip": "Projekt_Calcan_Conze\\DTOs\\CustomerDto.cs", "ViewState": "AgIAAAAAAAAAAAAAAAAAAAIAAAAVAAAAAAAAAA==", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2024-08-26T06:25:42.556Z", - "EditorCaption": "" + "WhenOpened": "2024-08-26T06:25:42.556Z" }, { "$type": "Document", - "DocumentIndex": 7, + "DocumentIndex": 8, "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", diff --git a/Projekt_Calcan_Conze/Projekt_Calcan_Conze/Models/Customer.cs b/Projekt_Calcan_Conze/Projekt_Calcan_Conze/Models/Customer.cs index eaaab3c..cefa5fc 100644 --- a/Projekt_Calcan_Conze/Projekt_Calcan_Conze/Models/Customer.cs +++ b/Projekt_Calcan_Conze/Projekt_Calcan_Conze/Models/Customer.cs @@ -59,7 +59,6 @@ internal class Customer { builder.Append($"{Constants.Separator} {phoneNumber.AreaCode} {phoneNumber.Number}"); } - return builder.ToString(); } } \ No newline at end of file diff --git a/Projekt_Calcan_Conze/Projekt_Calcan_Conze/Programm.cs b/Projekt_Calcan_Conze/Projekt_Calcan_Conze/Programm.cs index 1314971..f0a7e2a 100644 --- a/Projekt_Calcan_Conze/Projekt_Calcan_Conze/Programm.cs +++ b/Projekt_Calcan_Conze/Projekt_Calcan_Conze/Programm.cs @@ -11,7 +11,6 @@ while (string.IsNullOrEmpty(filePath)) if (filePath.StartsWith('\"')) { - filePath = filePath.Substring(startIndex: 1, length: filePath.Length - 1); } diff --git a/Projekt_Calcan_Conze/Projekt_Calcan_Conze/Repository/dbConnection.cs b/Projekt_Calcan_Conze/Projekt_Calcan_Conze/Repository/dbConnection.cs new file mode 100644 index 0000000..04e3473 --- /dev/null +++ b/Projekt_Calcan_Conze/Projekt_Calcan_Conze/Repository/dbConnection.cs @@ -0,0 +1,43 @@ +namespace Project_Calcan_Conze; + +using MySql.Data; +using MySql.Data.MySqlClient; +using MySqlX.XDevAPI; +using System.Data.Common; +using System.Reflection.PortableExecutable; +using System.Xml; + + +MySql.Data.MySqlClient.MySqlConnection myConnection; +string myConnectionString; +//set the correct values for your server, user, password and database name +myConnectionString = "server=localhost;uid=root;pwd=root;database=vr_contact"; + +try +{ + myConnection = new MySql.Data.MySqlClient.MySqlConnection(myConnectionString); + //open a connection + myConnection.Open(); + + // create a MySQL command and set the SQL statement with parameters + MySqlCommand myCommand = new MySqlCommand(); + myCommand.Connection = myConnection; + myCommand.CommandText = @"SELECT * FROM workshop WHERE maxParticipants = @code;"; + myCommand.Parameters.AddWithValue("@code", "12"); + + // execute the command and read the results + using MySqlDataReader myReader = myCommand.ExecuteReader(); + + while (myReader.Read()) + { + int id = myReader.GetInt32("maxParticipants"); + string name = myReader.GetString("title"); + Console.WriteLine(id + " " + name); + } + + myConnection.Close(); +} +catch (MySql.Data.MySqlClient.MySqlException ex) +{ + +} \ No newline at end of file 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 557120f..71f4817 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+26c62d000d0e4ffd1f3c6baf8a522f5b891e50dc")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+ebcc615de4c72eb9d786776bf6bd0ceb5640648c")] [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 07026d1..0572ad6 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 @@ -ca49067a20f82534e6f4dc92655af77866e882ae8f80b03ea3f9bd23828f8614 +9c166b10907dc4b5eb71f19b5658d875cd05601f289a7fc5eb6bb564b59f3775