This commit is contained in:
adm 2024-12-27 13:32:41 +03:00
commit 462ca0af9b
194 changed files with 6757 additions and 0 deletions

Binary file not shown.

BIN
.vs/Demo3/v17/.futdcache.v2 Normal file

Binary file not shown.

BIN
.vs/Demo3/v17/.suo Normal file

Binary file not shown.

View File

@ -0,0 +1,226 @@
{
"Version": 1,
"WorkspaceRootPath": "C:\\Users\\adm\\source\\repos\\Demo3\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|c:\\users\\adm\\source\\repos\\demo3\\demo3\\catalog.axaml||{6D5344A2-2FCD-49DE-A09D-6A14FD1B1224}",
"RelativeMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|solutionrelative:demo3\\catalog.axaml||{6D5344A2-2FCD-49DE-A09D-6A14FD1B1224}"
},
{
"AbsoluteMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|c:\\users\\adm\\source\\repos\\demo3\\demo3\\catalog.axaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|solutionrelative:demo3\\catalog.axaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|c:\\users\\adm\\source\\repos\\demo3\\demo3\\mainviewmodel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|solutionrelative:demo3\\mainviewmodel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|c:\\users\\adm\\source\\repos\\demo3\\demo3\\mainwindow.axaml||{6D5344A2-2FCD-49DE-A09D-6A14FD1B1224}",
"RelativeMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|solutionrelative:demo3\\mainwindow.axaml||{6D5344A2-2FCD-49DE-A09D-6A14FD1B1224}"
},
{
"AbsoluteMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|c:\\users\\adm\\source\\repos\\demo3\\demo3\\mainwindow.axaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|solutionrelative:demo3\\mainwindow.axaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|c:\\users\\adm\\source\\repos\\demo3\\demo3\\models\\product.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|solutionrelative:demo3\\models\\product.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|c:\\users\\adm\\source\\repos\\demo3\\demo3\\models\\parsingdbcontext.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|solutionrelative:demo3\\models\\parsingdbcontext.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|c:\\users\\adm\\source\\repos\\demo3\\demo3\\models\\orderproduct.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|solutionrelative:demo3\\models\\orderproduct.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|c:\\users\\adm\\source\\repos\\demo3\\demo3\\models\\order.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|solutionrelative:demo3\\models\\order.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|c:\\users\\adm\\source\\repos\\demo3\\demo3\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|solutionrelative:demo3\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|c:\\users\\adm\\source\\repos\\demo3\\demo3\\app.axaml||{6D5344A2-2FCD-49DE-A09D-6A14FD1B1224}",
"RelativeMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|solutionrelative:demo3\\app.axaml||{6D5344A2-2FCD-49DE-A09D-6A14FD1B1224}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 8,
"Children": [
{
"$type": "Bookmark",
"Name": "ST:0:0:{3ae79031-e1bc-11d0-8f78-00a0c9110057}"
},
{
"$type": "Document",
"DocumentIndex": 6,
"Title": "ParsingdbContext.cs",
"DocumentMoniker": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\Models\\ParsingdbContext.cs",
"RelativeDocumentMoniker": "Demo3\\Models\\ParsingdbContext.cs",
"ToolTip": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\Models\\ParsingdbContext.cs",
"RelativeToolTip": "Demo3\\Models\\ParsingdbContext.cs",
"ViewState": "AgIAAFcAAAAAAAAAAAAkwAAAAAAAAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-12-27T10:16:07.49Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 7,
"Title": "OrderProduct.cs",
"DocumentMoniker": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\Models\\OrderProduct.cs",
"RelativeDocumentMoniker": "Demo3\\Models\\OrderProduct.cs",
"ToolTip": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\Models\\OrderProduct.cs",
"RelativeToolTip": "Demo3\\Models\\OrderProduct.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAcAAAAVAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-12-27T10:15:49.074Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 8,
"Title": "Order.cs",
"DocumentMoniker": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\Models\\Order.cs",
"RelativeDocumentMoniker": "Demo3\\Models\\Order.cs",
"ToolTip": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\Models\\Order.cs",
"RelativeToolTip": "Demo3\\Models\\Order.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAcAAAAVAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-12-27T10:14:58.875Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 5,
"Title": "Product.cs",
"DocumentMoniker": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\Models\\Product.cs",
"RelativeDocumentMoniker": "Demo3\\Models\\Product.cs",
"ToolTip": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\Models\\Product.cs",
"RelativeToolTip": "Demo3\\Models\\Product.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAkAAAA0AAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-12-27T10:07:45.82Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 2,
"Title": "MainViewModel.cs",
"DocumentMoniker": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\MainViewModel.cs",
"RelativeDocumentMoniker": "Demo3\\MainViewModel.cs",
"ToolTip": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\MainViewModel.cs",
"RelativeToolTip": "Demo3\\MainViewModel.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAoAAAAEAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-12-27T09:47:16.269Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 4,
"Title": "MainWindow.axaml.cs",
"DocumentMoniker": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\MainWindow.axaml.cs",
"RelativeDocumentMoniker": "Demo3\\MainWindow.axaml.cs",
"ToolTip": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\MainWindow.axaml.cs",
"RelativeToolTip": "Demo3\\MainWindow.axaml.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAABAAAAAwAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-12-27T09:38:41.437Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 3,
"Title": "MainWindow.axaml",
"DocumentMoniker": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\MainWindow.axaml",
"RelativeDocumentMoniker": "Demo3\\MainWindow.axaml",
"ToolTip": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\MainWindow.axaml",
"RelativeToolTip": "Demo3\\MainWindow.axaml",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003549|",
"WhenOpened": "2024-12-27T09:38:01.329Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "Catalog.axaml",
"DocumentMoniker": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\Catalog.axaml",
"RelativeDocumentMoniker": "Demo3\\Catalog.axaml",
"ToolTip": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\Catalog.axaml",
"RelativeToolTip": "Demo3\\Catalog.axaml",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003549|",
"WhenOpened": "2024-12-27T09:30:19.278Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 9,
"Title": "Program.cs",
"DocumentMoniker": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\Program.cs",
"RelativeDocumentMoniker": "Demo3\\Program.cs",
"ToolTip": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\Program.cs",
"RelativeToolTip": "Demo3\\Program.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAABQAAAAFAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-12-27T09:25:17.893Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 1,
"Title": "Catalog.axaml.cs",
"DocumentMoniker": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\Catalog.axaml.cs",
"RelativeDocumentMoniker": "Demo3\\Catalog.axaml.cs",
"ToolTip": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\Catalog.axaml.cs",
"RelativeToolTip": "Demo3\\Catalog.axaml.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAABQAAAAXAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-12-27T08:29:11.002Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 10,
"Title": "App.axaml",
"DocumentMoniker": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\App.axaml",
"RelativeDocumentMoniker": "Demo3\\App.axaml",
"ToolTip": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\App.axaml",
"RelativeToolTip": "Demo3\\App.axaml",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003549|",
"WhenOpened": "2024-12-27T09:45:04.726Z",
"EditorCaption": ""
}
]
},
{
"DockedWidth": 993,
"SelectedChildIndex": -1,
"Children": [
{
"$type": "Bookmark",
"Name": "ST:0:0:{34e76e81-ee4a-11d0-ae2e-00a0c90fffc3}"
},
{
"$type": "Bookmark",
"Name": "ST:0:0:{d78612c7-9962-4b83-95d9-268046dad23a}"
},
{
"$type": "Bookmark",
"Name": "ST:1:0:{d212f56b-c48a-434c-a121-1c5d80b59b9f}"
}
]
}
]
}
]
}

View File

@ -0,0 +1,226 @@
{
"Version": 1,
"WorkspaceRootPath": "C:\\Users\\adm\\source\\repos\\Demo3\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|c:\\users\\adm\\source\\repos\\demo3\\demo3\\catalog.axaml||{6D5344A2-2FCD-49DE-A09D-6A14FD1B1224}",
"RelativeMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|solutionrelative:demo3\\catalog.axaml||{6D5344A2-2FCD-49DE-A09D-6A14FD1B1224}"
},
{
"AbsoluteMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|c:\\users\\adm\\source\\repos\\demo3\\demo3\\catalog.axaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|solutionrelative:demo3\\catalog.axaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|c:\\users\\adm\\source\\repos\\demo3\\demo3\\mainviewmodel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|solutionrelative:demo3\\mainviewmodel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|c:\\users\\adm\\source\\repos\\demo3\\demo3\\mainwindow.axaml||{6D5344A2-2FCD-49DE-A09D-6A14FD1B1224}",
"RelativeMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|solutionrelative:demo3\\mainwindow.axaml||{6D5344A2-2FCD-49DE-A09D-6A14FD1B1224}"
},
{
"AbsoluteMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|c:\\users\\adm\\source\\repos\\demo3\\demo3\\mainwindow.axaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|solutionrelative:demo3\\mainwindow.axaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|c:\\users\\adm\\source\\repos\\demo3\\demo3\\models\\product.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|solutionrelative:demo3\\models\\product.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|c:\\users\\adm\\source\\repos\\demo3\\demo3\\models\\parsingdbcontext.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|solutionrelative:demo3\\models\\parsingdbcontext.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|c:\\users\\adm\\source\\repos\\demo3\\demo3\\models\\orderproduct.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|solutionrelative:demo3\\models\\orderproduct.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|c:\\users\\adm\\source\\repos\\demo3\\demo3\\models\\order.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|solutionrelative:demo3\\models\\order.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|c:\\users\\adm\\source\\repos\\demo3\\demo3\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|solutionrelative:demo3\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|c:\\users\\adm\\source\\repos\\demo3\\demo3\\app.axaml||{6D5344A2-2FCD-49DE-A09D-6A14FD1B1224}",
"RelativeMoniker": "D:0:0:{0FF482EE-AE6B-458D-BD8A-9B803836BA32}|Demo3\\Demo3.csproj|solutionrelative:demo3\\app.axaml||{6D5344A2-2FCD-49DE-A09D-6A14FD1B1224}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 8,
"Children": [
{
"$type": "Bookmark",
"Name": "ST:0:0:{3ae79031-e1bc-11d0-8f78-00a0c9110057}"
},
{
"$type": "Document",
"DocumentIndex": 6,
"Title": "ParsingdbContext.cs",
"DocumentMoniker": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\Models\\ParsingdbContext.cs",
"RelativeDocumentMoniker": "Demo3\\Models\\ParsingdbContext.cs",
"ToolTip": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\Models\\ParsingdbContext.cs",
"RelativeToolTip": "Demo3\\Models\\ParsingdbContext.cs",
"ViewState": "AgIAAFcAAAAAAAAAAAAkwAAAAAAAAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-12-27T10:16:07.49Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 7,
"Title": "OrderProduct.cs",
"DocumentMoniker": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\Models\\OrderProduct.cs",
"RelativeDocumentMoniker": "Demo3\\Models\\OrderProduct.cs",
"ToolTip": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\Models\\OrderProduct.cs",
"RelativeToolTip": "Demo3\\Models\\OrderProduct.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAcAAAAVAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-12-27T10:15:49.074Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 8,
"Title": "Order.cs",
"DocumentMoniker": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\Models\\Order.cs",
"RelativeDocumentMoniker": "Demo3\\Models\\Order.cs",
"ToolTip": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\Models\\Order.cs",
"RelativeToolTip": "Demo3\\Models\\Order.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAcAAAAVAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-12-27T10:14:58.875Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 5,
"Title": "Product.cs",
"DocumentMoniker": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\Models\\Product.cs",
"RelativeDocumentMoniker": "Demo3\\Models\\Product.cs",
"ToolTip": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\Models\\Product.cs",
"RelativeToolTip": "Demo3\\Models\\Product.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAkAAAA0AAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-12-27T10:07:45.82Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 2,
"Title": "MainViewModel.cs",
"DocumentMoniker": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\MainViewModel.cs",
"RelativeDocumentMoniker": "Demo3\\MainViewModel.cs",
"ToolTip": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\MainViewModel.cs",
"RelativeToolTip": "Demo3\\MainViewModel.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAoAAAAEAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-12-27T09:47:16.269Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 4,
"Title": "MainWindow.axaml.cs",
"DocumentMoniker": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\MainWindow.axaml.cs",
"RelativeDocumentMoniker": "Demo3\\MainWindow.axaml.cs",
"ToolTip": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\MainWindow.axaml.cs",
"RelativeToolTip": "Demo3\\MainWindow.axaml.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAABAAAAAwAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-12-27T09:38:41.437Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 3,
"Title": "MainWindow.axaml",
"DocumentMoniker": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\MainWindow.axaml",
"RelativeDocumentMoniker": "Demo3\\MainWindow.axaml",
"ToolTip": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\MainWindow.axaml",
"RelativeToolTip": "Demo3\\MainWindow.axaml",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003549|",
"WhenOpened": "2024-12-27T09:38:01.329Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "Catalog.axaml",
"DocumentMoniker": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\Catalog.axaml",
"RelativeDocumentMoniker": "Demo3\\Catalog.axaml",
"ToolTip": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\Catalog.axaml",
"RelativeToolTip": "Demo3\\Catalog.axaml",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003549|",
"WhenOpened": "2024-12-27T09:30:19.278Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 9,
"Title": "Program.cs",
"DocumentMoniker": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\Program.cs",
"RelativeDocumentMoniker": "Demo3\\Program.cs",
"ToolTip": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\Program.cs",
"RelativeToolTip": "Demo3\\Program.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAABQAAAAFAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-12-27T09:25:17.893Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 1,
"Title": "Catalog.axaml.cs",
"DocumentMoniker": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\Catalog.axaml.cs",
"RelativeDocumentMoniker": "Demo3\\Catalog.axaml.cs",
"ToolTip": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\Catalog.axaml.cs",
"RelativeToolTip": "Demo3\\Catalog.axaml.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAABQAAAAXAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-12-27T08:29:11.002Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 10,
"Title": "App.axaml",
"DocumentMoniker": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\App.axaml",
"RelativeDocumentMoniker": "Demo3\\App.axaml",
"ToolTip": "C:\\Users\\adm\\source\\repos\\Demo3\\Demo3\\App.axaml",
"RelativeToolTip": "Demo3\\App.axaml",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003549|",
"WhenOpened": "2024-12-27T09:45:04.726Z",
"EditorCaption": ""
}
]
},
{
"DockedWidth": 993,
"SelectedChildIndex": -1,
"Children": [
{
"$type": "Bookmark",
"Name": "ST:0:0:{34e76e81-ee4a-11d0-ae2e-00a0c90fffc3}"
},
{
"$type": "Bookmark",
"Name": "ST:0:0:{d78612c7-9962-4b83-95d9-268046dad23a}"
},
{
"$type": "Bookmark",
"Name": "ST:1:0:{d212f56b-c48a-434c-a121-1c5d80b59b9f}"
}
]
}
]
}
]
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

22
Demo3.sln Normal file
View File

@ -0,0 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.12.35506.116 d17.12
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Demo3", "Demo3\Demo3.csproj", "{0FF482EE-AE6B-458D-BD8A-9B803836BA32}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{0FF482EE-AE6B-458D-BD8A-9B803836BA32}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0FF482EE-AE6B-458D-BD8A-9B803836BA32}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0FF482EE-AE6B-458D-BD8A-9B803836BA32}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0FF482EE-AE6B-458D-BD8A-9B803836BA32}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

10
Demo3/App.axaml Normal file
View File

@ -0,0 +1,10 @@
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="Demo3.App"
RequestedThemeVariant="Default">
<!-- "Default" ThemeVariant follows system theme variant. "Dark" or "Light" are other available options. -->
<Application.Styles>
<FluentTheme />
</Application.Styles>
</Application>

24
Demo3/App.axaml.cs Normal file
View File

@ -0,0 +1,24 @@
using Avalonia;
using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.Markup.Xaml;
namespace Demo3
{
public partial class App : Application
{
public override void Initialize()
{
AvaloniaXamlLoader.Load(this);
}
public override void OnFrameworkInitializationCompleted()
{
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
{
desktop.MainWindow = new MainWindow();
}
base.OnFrameworkInitializationCompleted();
}
}
}

69
Demo3/Catalog.axaml Normal file
View File

@ -0,0 +1,69 @@
<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="Demo3.Catalog"
x:CompileBindings="False"
Title="Catalog">
<DockPanel>
<StackPanel Spacing="10" Orientation="Horizontal"
HorizontalAlignment="Center"
DockPanel.Dock="Top"
Background="White">
<StackPanel Spacing="10" Orientation="Horizontal"
Background="AliceBlue">
<StackPanel Margin="0,5,0,0" Orientation="Vertical">
<TextBlock HorizontalAlignment="Center"
Text="Фильтр по скидкам"/>
<StackPanel Orientation="Horizontal">
<RadioButton Content="0-9.99%">
</RadioButton>
<RadioButton Content="10-14.99%">
</RadioButton>
<RadioButton Content="15% и более">
</RadioButton>
</StackPanel>
</StackPanel>
</StackPanel>
<StackPanel Margin="30,0,0,0" Orientation="Horizontal">
<TextBox VerticalAlignment="Center" Width="250"></TextBox>
</StackPanel>
<StackPanel Orientation="Vertical" Margin="25,0,10,0">
<TextBlock Margin="0,5,0,0"
HorizontalAlignment="Center"
Text="Сортировка товаров"/>
<ComboBox Margin="0,5,0,0" HorizontalAlignment="Center" />
</StackPanel>
</StackPanel>
<StackPanel Background="Crimson">
<ListBox x:Name="ProductList">
<ListBox.ItemTemplate>
<DataTemplate>
<Border BorderBrush="Gray"
BorderThickness="1"
Padding="5">
<StackPanel HorizontalAlignment="Center">
<Image Width="100"
Height="100"
/>
<TextBlock Text="{Binding Productname}"
TextAlignment="Center"
TextWrapping="Wrap"/>
<TextBlock Text="{Binding Productcost}"
TextAlignment="Center"
TextWrapping="Wrap"/>
<TextBlock TextAlignment="Center"
TextWrapping="Wrap"/>
</StackPanel>
</Border>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</StackPanel>
</DockPanel>
</Window>

49
Demo3/Catalog.axaml.cs Normal file
View File

@ -0,0 +1,49 @@
using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
using Avalonia.Media.Imaging;
using Demo3.Models;
using System.Collections.ObjectModel;
using System.Linq;
namespace Demo3;
public partial class Catalog : Window
{
public Catalog()
{
ObservableCollection<ProductPresenter> presenters;
InitializeComponent();
using var context = new ParsingdbContext();
var dataSource = context.Products.Select(product => new ProductPresenter
{
Productarticlenumber = product.Productarticlenumber,
Productname = product.Productname,
Productdescription = product.Productdescription,
Productcategory = product.Productcategory,
Productcost = product.Productcost,
Productdiscountamount = product.Productdiscountamount,
Productdiscountamountmax = product.Productdiscountamountmax,
Productmanufacturer = product.Productmanufacturer,
Productphoto = product.Productphoto,
Productquantityinstock = product.Productquantityinstock,
Productstatus = product.Productstatus
});
var products = new ObservableCollection<ProductPresenter>(dataSource);
ProductList.ItemsSource = products;
}
public class ProductPresenter() : Product
{
Bitmap? Image
{
get
{
try
{
return new Bitmap(Productphoto);
}
catch { return null; }
}
}
}
}

28
Demo3/Demo3.csproj Normal file
View File

@ -0,0 +1,28 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
<ApplicationManifest>app.manifest</ApplicationManifest>
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Avalonia" Version="11.2.1" />
<PackageReference Include="Avalonia.Desktop" Version="11.2.1" />
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.2.1" />
<PackageReference Include="Avalonia.Fonts.Inter" Version="11.2.1" />
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
<PackageReference Include="Avalonia.Diagnostics" Version="11.2.1">
<IncludeAssets Condition="'$(Configuration)' != 'Debug'">None</IncludeAssets>
<PrivateAssets Condition="'$(Configuration)' != 'Debug'">All</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.10" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.10">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.10" />
</ItemGroup>
</Project>

32
Demo3/MainViewModel.cs Normal file
View File

@ -0,0 +1,32 @@
using Demo3.Models;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Demo3
{
public class MainViewModel
{
private readonly ParsingdbContext _context;
public ObservableCollection<Product> Products { get; } = new ObservableCollection<Product>();
public MainViewModel(ParsingdbContext context)
{
_context = context;
LoadProducts();
}
public void LoadProducts()
{
var products = _context.Products.ToList();
foreach (var product in products)
{
Products.Add(product);
}
}
}
}

32
Demo3/MainWindow.axaml Normal file
View File

@ -0,0 +1,32 @@
<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="400" Width="400" d:DesignHeight="300" Height="300"
x:Class="Demo3.MainWindow"
Title="Demo3">
<DockPanel>
<StackPanel DockPanel.Dock="Top"
HorizontalAlignment="Center"
Spacing="5"
Margin="30">
<TextBlock FontSize="20" Text="Добро пожаловать!"/>
</StackPanel>
<StackPanel DockPanel.Dock="Top"
HorizontalAlignment="Center"
Spacing="20">
<TextBox Width="300"/>
<TextBox />
</StackPanel>
<StackPanel DockPanel.Dock="Top"
HorizontalAlignment="Center"
Orientation="Horizontal"
Spacing="0"
Margin="0">
<Button Margin="10" x:Name="AuthorizationButton" Click="AuthorizationButton_OnClick" Content="Войти"/>
<Button Content="Зарегестрироваться"/>
<Button Margin="10" Content="Режим гостя"/>
</StackPanel>
</DockPanel>
</Window>

23
Demo3/MainWindow.axaml.cs Normal file
View File

@ -0,0 +1,23 @@
using Avalonia.Controls;
using Avalonia.Interactivity;
using SkiaSharp;
using System.Collections.Generic;
using System.Data;
using System.Reflection.Emit;
namespace Demo3
{
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
private void AuthorizationButton_OnClick(object? sender, RoutedEventArgs e)
{
Catalog catalog = new Catalog();
catalog.ShowDialog(this);
}
}
}

17
Demo3/Models/Order.cs Normal file
View File

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
namespace Demo3.Models;
public partial class Order
{
public int Orderid { get; set; }
public string Orderstatus { get; set; } = null!;
public DateTime? Orderdeliverydate { get; set; }
public int Orderpickuppoint { get; set; }
public virtual ICollection<OrderProduct> OrderProducts { get; set; } = new List<OrderProduct>();
}

View File

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
namespace Demo3.Models;
public partial class OrderProduct
{
public int Orderid { get; set; }
public string Productarticlenumber { get; set; } = null!;
public int Count { get; set; }
public virtual Order Order { get; set; } = null!;
public virtual Product ProductarticlenumberNavigation { get; set; } = null!;
}

View File

@ -0,0 +1,176 @@
using System;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore;
namespace Demo3.Models;
public partial class ParsingdbContext : DbContext
{
public ParsingdbContext()
{
}
public ParsingdbContext(DbContextOptions<ParsingdbContext> options)
: base(options)
{
}
public virtual DbSet<Order> Orders { get; set; }
public virtual DbSet<OrderProduct> OrderProducts { get; set; }
public virtual DbSet<Pickuppoint> Pickuppoints { get; set; }
public virtual DbSet<Product> Products { get; set; }
public virtual DbSet<Role> Roles { get; set; }
public virtual DbSet<User> Users { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
#warning To protect potentially sensitive information in your connection string, you should move it out of source code. You can avoid scaffolding the connection string by using the Name= syntax to read it from configuration - see https://go.microsoft.com/fwlink/?linkid=2131148. For more guidance on storing connection strings, see https://go.microsoft.com/fwlink/?LinkId=723263.
=> optionsBuilder.UseNpgsql("Host=localhost;Port=5432;Database=parsingdb;Username=postgres;Password=123");
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<Order>(entity =>
{
entity.HasKey(e => e.Orderid).HasName("Order_pkey");
entity.ToTable("Order");
entity.Property(e => e.Orderid)
.UseIdentityAlwaysColumn()
.HasColumnName("orderid");
entity.Property(e => e.Orderdeliverydate)
.HasColumnType("timestamp without time zone")
.HasColumnName("orderdeliverydate");
entity.Property(e => e.Orderpickuppoint).HasColumnName("orderpickuppoint");
entity.Property(e => e.Orderstatus)
.HasColumnType("character varying")
.HasColumnName("orderstatus");
});
modelBuilder.Entity<OrderProduct>(entity =>
{
entity.HasKey(e => new { e.Orderid, e.Productarticlenumber }).HasName("OrderProduct_pkey");
entity.ToTable("OrderProduct");
entity.Property(e => e.Orderid).HasColumnName("orderid");
entity.Property(e => e.Productarticlenumber)
.HasMaxLength(100)
.HasColumnName("productarticlenumber");
entity.Property(e => e.Count).HasColumnName("count");
entity.HasOne(d => d.Order).WithMany(p => p.OrderProducts)
.HasForeignKey(d => d.Orderid)
.OnDelete(DeleteBehavior.ClientSetNull)
.HasConstraintName("OrderProduct_orderid_fkey");
entity.HasOne(d => d.ProductarticlenumberNavigation).WithMany(p => p.OrderProducts)
.HasForeignKey(d => d.Productarticlenumber)
.OnDelete(DeleteBehavior.ClientSetNull)
.HasConstraintName("OrderProduct_productarticlenumber_fkey");
});
modelBuilder.Entity<Pickuppoint>(entity =>
{
entity.HasKey(e => e.Idpickuppoint).HasName("pickuppoint_pk");
entity.ToTable("pickuppoint");
entity.Property(e => e.Idpickuppoint)
.UseIdentityAlwaysColumn()
.HasColumnName("idpickuppoint");
entity.Property(e => e.Pickuppointname)
.HasColumnType("character varying")
.HasColumnName("pickuppointname");
});
modelBuilder.Entity<Product>(entity =>
{
entity.HasKey(e => e.Productarticlenumber).HasName("Product_pkey");
entity.ToTable("Product");
entity.Property(e => e.Productarticlenumber)
.HasColumnType("character varying")
.HasColumnName("productarticlenumber");
entity.Property(e => e.Productcategory)
.HasColumnType("character varying")
.HasColumnName("productcategory");
entity.Property(e => e.Productcost)
.HasPrecision(19, 4)
.HasColumnName("productcost");
entity.Property(e => e.Productdescription)
.HasColumnType("character varying")
.HasColumnName("productdescription");
entity.Property(e => e.Productdiscountamount).HasColumnName("productdiscountamount");
entity.Property(e => e.Productdiscountamountmax).HasColumnName("productdiscountamountmax");
entity.Property(e => e.Productmanufacturer)
.HasColumnType("character varying")
.HasColumnName("productmanufacturer");
entity.Property(e => e.Productname)
.HasColumnType("character varying")
.HasColumnName("productname");
entity.Property(e => e.Productphoto)
.HasColumnType("character varying")
.HasColumnName("productphoto");
entity.Property(e => e.Productquantityinstock).HasColumnName("productquantityinstock");
entity.Property(e => e.Productstatus)
.HasColumnType("character varying")
.HasColumnName("productstatus");
});
modelBuilder.Entity<Role>(entity =>
{
entity.HasKey(e => e.Roleid).HasName("role_pkey");
entity.ToTable("role");
entity.Property(e => e.Roleid)
.UseIdentityAlwaysColumn()
.HasColumnName("roleid");
entity.Property(e => e.Rolename)
.HasMaxLength(100)
.HasColumnName("rolename");
});
modelBuilder.Entity<User>(entity =>
{
entity.HasKey(e => e.Userid).HasName("User_pkey");
entity.ToTable("User");
entity.Property(e => e.Userid)
.UseIdentityAlwaysColumn()
.HasColumnName("userid");
entity.Property(e => e.Userlogin)
.HasColumnType("character varying")
.HasColumnName("userlogin");
entity.Property(e => e.Username)
.HasMaxLength(100)
.HasColumnName("username");
entity.Property(e => e.Userpassword)
.HasColumnType("character varying")
.HasColumnName("userpassword");
entity.Property(e => e.Userpatronymic)
.HasMaxLength(100)
.HasColumnName("userpatronymic");
entity.Property(e => e.Userrole).HasColumnName("userrole");
entity.Property(e => e.Usersurname)
.HasMaxLength(100)
.HasColumnName("usersurname");
entity.HasOne(d => d.UserroleNavigation).WithMany(p => p.Users)
.HasForeignKey(d => d.Userrole)
.OnDelete(DeleteBehavior.ClientSetNull)
.HasConstraintName("User_userrole_fkey");
});
OnModelCreatingPartial(modelBuilder);
}
partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
}

View File

@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
namespace Demo3.Models;
public partial class Pickuppoint
{
public int Idpickuppoint { get; set; }
public string Pickuppointname { get; set; } = null!;
}

31
Demo3/Models/Product.cs Normal file
View File

@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
namespace Demo3.Models;
public partial class Product
{
public string Productarticlenumber { get; set; } = null!;
public string Productname { get; set; } = null!;
public string Productdescription { get; set; } = null!;
public string Productcategory { get; set; } = null!;
public string? Productphoto { get; set; }
public string Productmanufacturer { get; set; } = null!;
public decimal Productcost { get; set; }
public decimal? Productdiscountamount { get; set; }
public int Productquantityinstock { get; set; }
public string? Productstatus { get; set; }
public decimal? Productdiscountamountmax { get; set; }
public virtual ICollection<OrderProduct> OrderProducts { get; set; } = new List<OrderProduct>();
}

13
Demo3/Models/Role.cs Normal file
View File

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
namespace Demo3.Models;
public partial class Role
{
public int Roleid { get; set; }
public string Rolename { get; set; } = null!;
public virtual ICollection<User> Users { get; set; } = new List<User>();
}

23
Demo3/Models/User.cs Normal file
View File

@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
namespace Demo3.Models;
public partial class User
{
public int Userid { get; set; }
public string Usersurname { get; set; } = null!;
public string Username { get; set; } = null!;
public string Userpatronymic { get; set; } = null!;
public string Userlogin { get; set; } = null!;
public string Userpassword { get; set; } = null!;
public int Userrole { get; set; }
public virtual Role UserroleNavigation { get; set; } = null!;
}

22
Demo3/Program.cs Normal file
View File

@ -0,0 +1,22 @@
using System;
using Avalonia;
namespace Demo3
{
internal class Program
{
// Initialization code. Don't use any Avalonia, third-party APIs or any
// SynchronizationContext-reliant code before AppMain is called: things aren't initialized
// yet and stuff might break.
[STAThread]
public static void Main(string[] args) => BuildAvaloniaApp()
.StartWithClassicDesktopLifetime(args);
// Avalonia configuration, don't remove; also used by visual designer.
public static AppBuilder BuildAvaloniaApp()
=> AppBuilder.Configure<App>()
.UsePlatformDetect()
.WithInterFont()
.LogToTrace();
}
}

18
Demo3/app.manifest Normal file
View File

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
<!-- This manifest is used on Windows only.
Don't remove it as it might cause problems with window transparency and embedded controls.
For more details visit https://learn.microsoft.com/en-us/windows/win32/sbscs/application-manifests -->
<assemblyIdentity version="1.0.0.0" name="Demo3.Desktop"/>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!-- A list of the Windows versions that this application has been tested on
and is designed to work with. Uncomment the appropriate elements
and Windows will automatically select the most compatible environment. -->
<!-- Windows 10 -->
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />
</application>
</compatibility>
</assembly>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,14 @@
{
"runtimeOptions": {
"tfm": "net8.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "8.0.0"
},
"configProperties": {
"System.Reflection.NullabilityInfoContext.IsSupported": true,
"System.Runtime.InteropServices.BuiltInComInterop.IsSupported": true,
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More