diff --git a/Controladora/ControladoraProductos.cs b/Controladora/ControladoraProductos.cs index 1a9344b..0f1b551 100644 --- a/Controladora/ControladoraProductos.cs +++ b/Controladora/ControladoraProductos.cs @@ -24,7 +24,6 @@ namespace Controladora public ReadOnlyCollection ListarCategorias(Producto producto) { Producto productoalistar = new RepositorioProductos(new Context()).Listar().First(x => x.Id == producto.Id); - if (productoalistar == null) return new List().AsReadOnly(); return productoalistar.categorias.AsReadOnly(); } diff --git a/Controladora/ControladoraRemito.cs b/Controladora/ControladoraRemito.cs index 9d5a49b..0a23b2b 100644 --- a/Controladora/ControladoraRemito.cs +++ b/Controladora/ControladoraRemito.cs @@ -27,10 +27,10 @@ namespace Controladora var retMarcarOrdenEntregada = ControladoraOrdenDeCompras.Instance.Modificar(orden); repositorioRemito.Add(t); - ControladoraLotes.Instance.AltaStock(t); + return (repositorioRemito.Guardar()) ? $"El remito {t.Id} se cargo correctamente": $"Fallo la carga del remito {t.Id}"; @@ -81,11 +81,10 @@ namespace Controladora return ControladoraOrdenDeCompras.Instance.Listar().First(x => x.Id == ordenDeCompra.Id); } - public ReadOnlyCollection ListarLotesPorRemito(Remito rem) + public Remito MostrarRemitoPorId(Remito rem) { - var remalistar = repositorioRemito.Listar().First(x => x.Id == rem.Id); - if (remalistar == null) return new ReadOnlyCollection(new List()); - return remalistar.Lotes; + return repositorioRemito.Listar().First(x => x.Id == rem.Id); + } } diff --git a/Controladora/obj/Controladora.csproj.nuget.dgspec.json b/Controladora/obj/Controladora.csproj.nuget.dgspec.json index f847505..e7bbd02 100644 --- a/Controladora/obj/Controladora.csproj.nuget.dgspec.json +++ b/Controladora/obj/Controladora.csproj.nuget.dgspec.json @@ -255,6 +255,10 @@ "target": "Package", "version": "[8.0.8, )" }, + "Microsoft.EntityFrameworkCore.Sqlite": { + "target": "Package", + "version": "[8.0.8, )" + }, "Microsoft.EntityFrameworkCore.Tools": { "include": "Runtime, Build, Native, ContentFiles, Analyzers, BuildTransitive", "suppressParent": "All", diff --git a/Controladora/obj/Controladora.csproj.nuget.g.targets b/Controladora/obj/Controladora.csproj.nuget.g.targets index d3426da..698da91 100644 --- a/Controladora/obj/Controladora.csproj.nuget.g.targets +++ b/Controladora/obj/Controladora.csproj.nuget.g.targets @@ -1,6 +1,8 @@  + + diff --git a/Controladora/obj/project.assets.json b/Controladora/obj/project.assets.json index b9e2b19..90a391d 100644 --- a/Controladora/obj/project.assets.json +++ b/Controladora/obj/project.assets.json @@ -125,6 +125,22 @@ } } }, + "Microsoft.Data.Sqlite.Core/8.0.8": { + "type": "package", + "dependencies": { + "SQLitePCLRaw.core": "2.1.6" + }, + "compile": { + "lib/net8.0/Microsoft.Data.Sqlite.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/net8.0/Microsoft.Data.Sqlite.dll": { + "related": ".xml" + } + } + }, "Microsoft.EntityFrameworkCore/8.0.8": { "type": "package", "dependencies": { @@ -186,6 +202,37 @@ } } }, + "Microsoft.EntityFrameworkCore.Sqlite/8.0.8": { + "type": "package", + "dependencies": { + "Microsoft.EntityFrameworkCore.Sqlite.Core": "8.0.8", + "SQLitePCLRaw.bundle_e_sqlite3": "2.1.6" + }, + "compile": { + "lib/net8.0/_._": {} + }, + "runtime": { + "lib/net8.0/_._": {} + } + }, + "Microsoft.EntityFrameworkCore.Sqlite.Core/8.0.8": { + "type": "package", + "dependencies": { + "Microsoft.Data.Sqlite.Core": "8.0.8", + "Microsoft.EntityFrameworkCore.Relational": "8.0.8", + "Microsoft.Extensions.DependencyModel": "8.0.1" + }, + "compile": { + "lib/net8.0/Microsoft.EntityFrameworkCore.Sqlite.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/net8.0/Microsoft.EntityFrameworkCore.Sqlite.dll": { + "related": ".xml" + } + } + }, "Microsoft.EntityFrameworkCore.SqlServer/8.0.8": { "type": "package", "dependencies": { @@ -299,6 +346,26 @@ "buildTransitive/net6.0/_._": {} } }, + "Microsoft.Extensions.DependencyModel/8.0.1": { + "type": "package", + "dependencies": { + "System.Text.Encodings.Web": "8.0.0", + "System.Text.Json": "8.0.4" + }, + "compile": { + "lib/net8.0/Microsoft.Extensions.DependencyModel.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/net8.0/Microsoft.Extensions.DependencyModel.dll": { + "related": ".xml" + } + }, + "build": { + "buildTransitive/net6.0/_._": {} + } + }, "Microsoft.Extensions.Logging/8.0.0": { "type": "package", "dependencies": { @@ -562,6 +629,137 @@ } } }, + "SQLitePCLRaw.bundle_e_sqlite3/2.1.6": { + "type": "package", + "dependencies": { + "SQLitePCLRaw.lib.e_sqlite3": "2.1.6", + "SQLitePCLRaw.provider.e_sqlite3": "2.1.6" + }, + "compile": { + "lib/netstandard2.0/SQLitePCLRaw.batteries_v2.dll": {} + }, + "runtime": { + "lib/netstandard2.0/SQLitePCLRaw.batteries_v2.dll": {} + } + }, + "SQLitePCLRaw.core/2.1.6": { + "type": "package", + "dependencies": { + "System.Memory": "4.5.3" + }, + "compile": { + "lib/netstandard2.0/SQLitePCLRaw.core.dll": {} + }, + "runtime": { + "lib/netstandard2.0/SQLitePCLRaw.core.dll": {} + } + }, + "SQLitePCLRaw.lib.e_sqlite3/2.1.6": { + "type": "package", + "compile": { + "lib/netstandard2.0/_._": {} + }, + "runtime": { + "lib/netstandard2.0/_._": {} + }, + "build": { + "buildTransitive/net8.0/SQLitePCLRaw.lib.e_sqlite3.targets": {} + }, + "runtimeTargets": { + "runtimes/browser-wasm/nativeassets/net8.0/e_sqlite3.a": { + "assetType": "native", + "rid": "browser-wasm" + }, + "runtimes/linux-arm/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-arm" + }, + "runtimes/linux-arm64/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-arm64" + }, + "runtimes/linux-armel/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-armel" + }, + "runtimes/linux-mips64/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-mips64" + }, + "runtimes/linux-musl-arm/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-musl-arm" + }, + "runtimes/linux-musl-arm64/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-musl-arm64" + }, + "runtimes/linux-musl-x64/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-musl-x64" + }, + "runtimes/linux-ppc64le/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-ppc64le" + }, + "runtimes/linux-s390x/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-s390x" + }, + "runtimes/linux-x64/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-x64" + }, + "runtimes/linux-x86/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-x86" + }, + "runtimes/maccatalyst-arm64/native/libe_sqlite3.dylib": { + "assetType": "native", + "rid": "maccatalyst-arm64" + }, + "runtimes/maccatalyst-x64/native/libe_sqlite3.dylib": { + "assetType": "native", + "rid": "maccatalyst-x64" + }, + "runtimes/osx-arm64/native/libe_sqlite3.dylib": { + "assetType": "native", + "rid": "osx-arm64" + }, + "runtimes/osx-x64/native/libe_sqlite3.dylib": { + "assetType": "native", + "rid": "osx-x64" + }, + "runtimes/win-arm/native/e_sqlite3.dll": { + "assetType": "native", + "rid": "win-arm" + }, + "runtimes/win-arm64/native/e_sqlite3.dll": { + "assetType": "native", + "rid": "win-arm64" + }, + "runtimes/win-x64/native/e_sqlite3.dll": { + "assetType": "native", + "rid": "win-x64" + }, + "runtimes/win-x86/native/e_sqlite3.dll": { + "assetType": "native", + "rid": "win-x86" + } + } + }, + "SQLitePCLRaw.provider.e_sqlite3/2.1.6": { + "type": "package", + "dependencies": { + "SQLitePCLRaw.core": "2.1.6" + }, + "compile": { + "lib/net6.0/SQLitePCLRaw.provider.e_sqlite3.dll": {} + }, + "runtime": { + "lib/net6.0/SQLitePCLRaw.provider.e_sqlite3.dll": {} + } + }, "System.Configuration.ConfigurationManager/6.0.1": { "type": "package", "dependencies": { @@ -918,42 +1116,45 @@ } } }, - "System.Text.Encodings.Web/6.0.0": { + "System.Text.Encodings.Web/8.0.0": { "type": "package", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - }, "compile": { - "lib/net6.0/System.Text.Encodings.Web.dll": { + "lib/net8.0/System.Text.Encodings.Web.dll": { "related": ".xml" } }, "runtime": { - "lib/net6.0/System.Text.Encodings.Web.dll": { + "lib/net8.0/System.Text.Encodings.Web.dll": { "related": ".xml" } }, "build": { - "buildTransitive/netcoreapp3.1/_._": {} + "buildTransitive/net6.0/_._": {} }, "runtimeTargets": { - "runtimes/browser/lib/net6.0/System.Text.Encodings.Web.dll": { + "runtimes/browser/lib/net8.0/System.Text.Encodings.Web.dll": { "assetType": "runtime", "rid": "browser" } } }, - "System.Text.Json/4.7.2": { + "System.Text.Json/8.0.4": { "type": "package", + "dependencies": { + "System.Text.Encodings.Web": "8.0.0" + }, "compile": { - "lib/netcoreapp3.0/System.Text.Json.dll": { + "lib/net8.0/System.Text.Json.dll": { "related": ".xml" } }, "runtime": { - "lib/netcoreapp3.0/System.Text.Json.dll": { + "lib/net8.0/System.Text.Json.dll": { "related": ".xml" } + }, + "build": { + "buildTransitive/net6.0/System.Text.Json.targets": {} } }, "System.Threading.Tasks.Extensions/4.5.4": { @@ -1016,7 +1217,8 @@ "dependencies": { "Entidades": "1.0.0", "Microsoft.EntityFrameworkCore": "8.0.8", - "Microsoft.EntityFrameworkCore.SqlServer": "8.0.8" + "Microsoft.EntityFrameworkCore.SqlServer": "8.0.8", + "Microsoft.EntityFrameworkCore.Sqlite": "8.0.8" }, "compile": { "bin/placeholder/Modelo.dll": {} @@ -1240,6 +1442,25 @@ "runtimes/win-x86/native/Microsoft.Data.SqlClient.SNI.dll" ] }, + "Microsoft.Data.Sqlite.Core/8.0.8": { + "sha512": "qHInO2EvOcPhjgboP0TGnXM7rASdvWXrw6jAH8Yuz5YP82VTje7d/NKiX1i+dVbE3+G3JuW1kqNVB8yLvsqgYA==", + "type": "package", + "path": "microsoft.data.sqlite.core/8.0.8", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "Icon.png", + "PACKAGE.md", + "lib/net6.0/Microsoft.Data.Sqlite.dll", + "lib/net6.0/Microsoft.Data.Sqlite.xml", + "lib/net8.0/Microsoft.Data.Sqlite.dll", + "lib/net8.0/Microsoft.Data.Sqlite.xml", + "lib/netstandard2.0/Microsoft.Data.Sqlite.dll", + "lib/netstandard2.0/Microsoft.Data.Sqlite.xml", + "microsoft.data.sqlite.core.8.0.8.nupkg.sha512", + "microsoft.data.sqlite.core.nuspec" + ] + }, "Microsoft.EntityFrameworkCore/8.0.8": { "sha512": "iK+jrJzkfbIxutB7or808BPmJtjUEi5O+eSM7cLDwsyde6+3iOujCSfWnrHrLxY3u+EQrJD+aD8DJ6ogPA2Rtw==", "type": "package", @@ -1301,6 +1522,35 @@ "microsoft.entityframeworkcore.relational.nuspec" ] }, + "Microsoft.EntityFrameworkCore.Sqlite/8.0.8": { + "sha512": "IDB7Xs16hN/3VkWFCCa4r3fqoJxMVezwq418gr8dBkRBO0pxH+BX/Kjk/U3PYXDvzVLkXqUgJsHv1XoFrJbZPQ==", + "type": "package", + "path": "microsoft.entityframeworkcore.sqlite/8.0.8", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "Icon.png", + "PACKAGE.md", + "lib/net8.0/_._", + "microsoft.entityframeworkcore.sqlite.8.0.8.nupkg.sha512", + "microsoft.entityframeworkcore.sqlite.nuspec" + ] + }, + "Microsoft.EntityFrameworkCore.Sqlite.Core/8.0.8": { + "sha512": "w5k/ENj3+BPbmggqh83RRuPhhKcJmW7CmdJuGwdX1eFrmptJwnzKiHfQCPkJAu9df16PSs5YFeWrDgepfqnltA==", + "type": "package", + "path": "microsoft.entityframeworkcore.sqlite.core/8.0.8", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "Icon.png", + "PACKAGE.md", + "lib/net8.0/Microsoft.EntityFrameworkCore.Sqlite.dll", + "lib/net8.0/Microsoft.EntityFrameworkCore.Sqlite.xml", + "microsoft.entityframeworkcore.sqlite.core.8.0.8.nupkg.sha512", + "microsoft.entityframeworkcore.sqlite.core.nuspec" + ] + }, "Microsoft.EntityFrameworkCore.SqlServer/8.0.8": { "sha512": "A2F52W+hnGqvprx37HcAnYnJv4QoFFdc9cxd/QGNSd1vCu1I0eAEKRd0r9KS3E5I5RRj/m9XJfYCyTdy1cdn5Q==", "type": "package", @@ -1470,6 +1720,36 @@ "useSharedDesignerContext.txt" ] }, + "Microsoft.Extensions.DependencyModel/8.0.1": { + "sha512": "5Ou6varcxLBzQ+Agfm0k0pnH7vrEITYlXMDuE6s7ZHlZHz6/G8XJ3iISZDr5rfwfge6RnXJ1+Wc479mMn52vjA==", + "type": "package", + "path": "microsoft.extensions.dependencymodel/8.0.1", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "Icon.png", + "LICENSE.TXT", + "PACKAGE.md", + "THIRD-PARTY-NOTICES.TXT", + "buildTransitive/net461/Microsoft.Extensions.DependencyModel.targets", + "buildTransitive/net462/_._", + "buildTransitive/net6.0/_._", + "buildTransitive/netcoreapp2.0/Microsoft.Extensions.DependencyModel.targets", + "lib/net462/Microsoft.Extensions.DependencyModel.dll", + "lib/net462/Microsoft.Extensions.DependencyModel.xml", + "lib/net6.0/Microsoft.Extensions.DependencyModel.dll", + "lib/net6.0/Microsoft.Extensions.DependencyModel.xml", + "lib/net7.0/Microsoft.Extensions.DependencyModel.dll", + "lib/net7.0/Microsoft.Extensions.DependencyModel.xml", + "lib/net8.0/Microsoft.Extensions.DependencyModel.dll", + "lib/net8.0/Microsoft.Extensions.DependencyModel.xml", + "lib/netstandard2.0/Microsoft.Extensions.DependencyModel.dll", + "lib/netstandard2.0/Microsoft.Extensions.DependencyModel.xml", + "microsoft.extensions.dependencymodel.8.0.1.nupkg.sha512", + "microsoft.extensions.dependencymodel.nuspec", + "useSharedDesignerContext.txt" + ] + }, "Microsoft.Extensions.Logging/8.0.0": { "sha512": "tvRkov9tAJ3xP51LCv3FJ2zINmv1P8Hi8lhhtcKGqM+ImiTCC84uOPEI4z8Cdq2C3o9e+Aa0Gw0rmrsJD77W+w==", "type": "package", @@ -1916,6 +2196,95 @@ "useSharedDesignerContext.txt" ] }, + "SQLitePCLRaw.bundle_e_sqlite3/2.1.6": { + "sha512": "BmAf6XWt4TqtowmiWe4/5rRot6GerAeklmOPfviOvwLoF5WwgxcJHAxZtySuyW9r9w+HLILnm8VfJFLCUJYW8A==", + "type": "package", + "path": "sqlitepclraw.bundle_e_sqlite3/2.1.6", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "lib/monoandroid90/SQLitePCLRaw.batteries_v2.dll", + "lib/net461/SQLitePCLRaw.batteries_v2.dll", + "lib/net6.0-android31.0/SQLitePCLRaw.batteries_v2.dll", + "lib/net6.0-android31.0/SQLitePCLRaw.batteries_v2.xml", + "lib/net6.0-ios14.0/SQLitePCLRaw.batteries_v2.dll", + "lib/net6.0-ios14.2/SQLitePCLRaw.batteries_v2.dll", + "lib/net6.0-tvos10.0/SQLitePCLRaw.batteries_v2.dll", + "lib/netstandard2.0/SQLitePCLRaw.batteries_v2.dll", + "lib/xamarinios10/SQLitePCLRaw.batteries_v2.dll", + "sqlitepclraw.bundle_e_sqlite3.2.1.6.nupkg.sha512", + "sqlitepclraw.bundle_e_sqlite3.nuspec" + ] + }, + "SQLitePCLRaw.core/2.1.6": { + "sha512": "wO6v9GeMx9CUngAet8hbO7xdm+M42p1XeJq47ogyRoYSvNSp0NGLI+MgC0bhrMk9C17MTVFlLiN6ylyExLCc5w==", + "type": "package", + "path": "sqlitepclraw.core/2.1.6", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "lib/netstandard2.0/SQLitePCLRaw.core.dll", + "sqlitepclraw.core.2.1.6.nupkg.sha512", + "sqlitepclraw.core.nuspec" + ] + }, + "SQLitePCLRaw.lib.e_sqlite3/2.1.6": { + "sha512": "2ObJJLkIUIxRpOUlZNGuD4rICpBnrBR5anjyfUFQep4hMOIeqW+XGQYzrNmHSVz5xSWZ3klSbh7sFR6UyDj68Q==", + "type": "package", + "path": "sqlitepclraw.lib.e_sqlite3/2.1.6", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "buildTransitive/net461/SQLitePCLRaw.lib.e_sqlite3.targets", + "buildTransitive/net6.0/SQLitePCLRaw.lib.e_sqlite3.targets", + "buildTransitive/net7.0/SQLitePCLRaw.lib.e_sqlite3.targets", + "buildTransitive/net8.0/SQLitePCLRaw.lib.e_sqlite3.targets", + "lib/net461/_._", + "lib/netstandard2.0/_._", + "runtimes/browser-wasm/nativeassets/net6.0/e_sqlite3.a", + "runtimes/browser-wasm/nativeassets/net7.0/e_sqlite3.a", + "runtimes/browser-wasm/nativeassets/net8.0/e_sqlite3.a", + "runtimes/linux-arm/native/libe_sqlite3.so", + "runtimes/linux-arm64/native/libe_sqlite3.so", + "runtimes/linux-armel/native/libe_sqlite3.so", + "runtimes/linux-mips64/native/libe_sqlite3.so", + "runtimes/linux-musl-arm/native/libe_sqlite3.so", + "runtimes/linux-musl-arm64/native/libe_sqlite3.so", + "runtimes/linux-musl-x64/native/libe_sqlite3.so", + "runtimes/linux-ppc64le/native/libe_sqlite3.so", + "runtimes/linux-s390x/native/libe_sqlite3.so", + "runtimes/linux-x64/native/libe_sqlite3.so", + "runtimes/linux-x86/native/libe_sqlite3.so", + "runtimes/maccatalyst-arm64/native/libe_sqlite3.dylib", + "runtimes/maccatalyst-x64/native/libe_sqlite3.dylib", + "runtimes/osx-arm64/native/libe_sqlite3.dylib", + "runtimes/osx-x64/native/libe_sqlite3.dylib", + "runtimes/win-arm/native/e_sqlite3.dll", + "runtimes/win-arm64/native/e_sqlite3.dll", + "runtimes/win-x64/native/e_sqlite3.dll", + "runtimes/win-x86/native/e_sqlite3.dll", + "runtimes/win10-arm/nativeassets/uap10.0/e_sqlite3.dll", + "runtimes/win10-arm64/nativeassets/uap10.0/e_sqlite3.dll", + "runtimes/win10-x64/nativeassets/uap10.0/e_sqlite3.dll", + "runtimes/win10-x86/nativeassets/uap10.0/e_sqlite3.dll", + "sqlitepclraw.lib.e_sqlite3.2.1.6.nupkg.sha512", + "sqlitepclraw.lib.e_sqlite3.nuspec" + ] + }, + "SQLitePCLRaw.provider.e_sqlite3/2.1.6": { + "sha512": "PQ2Oq3yepLY4P7ll145P3xtx2bX8xF4PzaKPRpw9jZlKvfe4LE/saAV82inND9usn1XRpmxXk7Lal3MTI+6CNg==", + "type": "package", + "path": "sqlitepclraw.provider.e_sqlite3/2.1.6", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "lib/net6.0-windows7.0/SQLitePCLRaw.provider.e_sqlite3.dll", + "lib/net6.0/SQLitePCLRaw.provider.e_sqlite3.dll", + "lib/netstandard2.0/SQLitePCLRaw.provider.e_sqlite3.dll", + "sqlitepclraw.provider.e_sqlite3.2.1.6.nupkg.sha512", + "sqlitepclraw.provider.e_sqlite3.nuspec" + ] + }, "System.Configuration.ConfigurationManager/6.0.1": { "sha512": "jXw9MlUu/kRfEU0WyTptAVueupqIeE3/rl0EZDMlf8pcvJnitQ8HeVEp69rZdaStXwTV72boi/Bhw8lOeO+U2w==", "type": "package", @@ -2670,53 +3039,112 @@ "useSharedDesignerContext.txt" ] }, - "System.Text.Encodings.Web/6.0.0": { - "sha512": "Vg8eB5Tawm1IFqj4TVK1czJX89rhFxJo9ELqc/Eiq0eXy13RK00eubyU6TJE6y+GQXjyV5gSfiewDUZjQgSE0w==", + "System.Text.Encodings.Web/8.0.0": { + "sha512": "yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", "type": "package", - "path": "system.text.encodings.web/6.0.0", + "path": "system.text.encodings.web/8.0.0", "files": [ ".nupkg.metadata", ".signature.p7s", "Icon.png", "LICENSE.TXT", "THIRD-PARTY-NOTICES.TXT", + "buildTransitive/net461/System.Text.Encodings.Web.targets", + "buildTransitive/net462/_._", + "buildTransitive/net6.0/_._", "buildTransitive/netcoreapp2.0/System.Text.Encodings.Web.targets", - "buildTransitive/netcoreapp3.1/_._", - "lib/net461/System.Text.Encodings.Web.dll", - "lib/net461/System.Text.Encodings.Web.xml", + "lib/net462/System.Text.Encodings.Web.dll", + "lib/net462/System.Text.Encodings.Web.xml", "lib/net6.0/System.Text.Encodings.Web.dll", "lib/net6.0/System.Text.Encodings.Web.xml", - "lib/netcoreapp3.1/System.Text.Encodings.Web.dll", - "lib/netcoreapp3.1/System.Text.Encodings.Web.xml", + "lib/net7.0/System.Text.Encodings.Web.dll", + "lib/net7.0/System.Text.Encodings.Web.xml", + "lib/net8.0/System.Text.Encodings.Web.dll", + "lib/net8.0/System.Text.Encodings.Web.xml", "lib/netstandard2.0/System.Text.Encodings.Web.dll", "lib/netstandard2.0/System.Text.Encodings.Web.xml", "runtimes/browser/lib/net6.0/System.Text.Encodings.Web.dll", "runtimes/browser/lib/net6.0/System.Text.Encodings.Web.xml", - "system.text.encodings.web.6.0.0.nupkg.sha512", + "runtimes/browser/lib/net7.0/System.Text.Encodings.Web.dll", + "runtimes/browser/lib/net7.0/System.Text.Encodings.Web.xml", + "runtimes/browser/lib/net8.0/System.Text.Encodings.Web.dll", + "runtimes/browser/lib/net8.0/System.Text.Encodings.Web.xml", + "system.text.encodings.web.8.0.0.nupkg.sha512", "system.text.encodings.web.nuspec", "useSharedDesignerContext.txt" ] }, - "System.Text.Json/4.7.2": { - "sha512": "TcMd95wcrubm9nHvJEQs70rC0H/8omiSGGpU4FQ/ZA1URIqD4pjmFJh2Mfv1yH1eHgJDWTi2hMDXwTET+zOOyg==", + "System.Text.Json/8.0.4": { + "sha512": "bAkhgDJ88XTsqczoxEMliSrpijKZHhbJQldhAmObj/RbrN3sU5dcokuXmWJWsdQAhiMJ9bTayWsL1C9fbbCRhw==", "type": "package", - "path": "system.text.json/4.7.2", + "path": "system.text.json/8.0.4", "files": [ ".nupkg.metadata", ".signature.p7s", "Icon.png", "LICENSE.TXT", + "PACKAGE.md", "THIRD-PARTY-NOTICES.TXT", - "lib/net461/System.Text.Json.dll", - "lib/net461/System.Text.Json.xml", - "lib/netcoreapp3.0/System.Text.Json.dll", - "lib/netcoreapp3.0/System.Text.Json.xml", + "analyzers/dotnet/roslyn3.11/cs/System.Text.Json.SourceGeneration.dll", + "analyzers/dotnet/roslyn3.11/cs/cs/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn3.11/cs/de/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn3.11/cs/es/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn3.11/cs/fr/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn3.11/cs/it/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn3.11/cs/ja/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn3.11/cs/ko/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn3.11/cs/pl/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn3.11/cs/pt-BR/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn3.11/cs/ru/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn3.11/cs/tr/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn3.11/cs/zh-Hans/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn3.11/cs/zh-Hant/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.0/cs/System.Text.Json.SourceGeneration.dll", + "analyzers/dotnet/roslyn4.0/cs/cs/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.0/cs/de/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.0/cs/es/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.0/cs/fr/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.0/cs/it/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.0/cs/ja/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.0/cs/ko/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.0/cs/pl/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.0/cs/pt-BR/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.0/cs/ru/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.0/cs/tr/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.0/cs/zh-Hans/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.0/cs/zh-Hant/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.4/cs/System.Text.Json.SourceGeneration.dll", + "analyzers/dotnet/roslyn4.4/cs/cs/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.4/cs/de/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.4/cs/es/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.4/cs/fr/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.4/cs/it/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.4/cs/ja/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.4/cs/ko/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.4/cs/pl/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.4/cs/pt-BR/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.4/cs/ru/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.4/cs/tr/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.4/cs/zh-Hans/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.4/cs/zh-Hant/System.Text.Json.SourceGeneration.resources.dll", + "buildTransitive/net461/System.Text.Json.targets", + "buildTransitive/net462/System.Text.Json.targets", + "buildTransitive/net6.0/System.Text.Json.targets", + "buildTransitive/netcoreapp2.0/System.Text.Json.targets", + "buildTransitive/netstandard2.0/System.Text.Json.targets", + "lib/net462/System.Text.Json.dll", + "lib/net462/System.Text.Json.xml", + "lib/net6.0/System.Text.Json.dll", + "lib/net6.0/System.Text.Json.xml", + "lib/net7.0/System.Text.Json.dll", + "lib/net7.0/System.Text.Json.xml", + "lib/net8.0/System.Text.Json.dll", + "lib/net8.0/System.Text.Json.xml", "lib/netstandard2.0/System.Text.Json.dll", "lib/netstandard2.0/System.Text.Json.xml", - "system.text.json.4.7.2.nupkg.sha512", + "system.text.json.8.0.4.nupkg.sha512", "system.text.json.nuspec", - "useSharedDesignerContext.txt", - "version.txt" + "useSharedDesignerContext.txt" ] }, "System.Threading.Tasks.Extensions/4.5.4": { diff --git a/Controladora/obj/project.nuget.cache b/Controladora/obj/project.nuget.cache index c065ce0..fdd8a32 100644 --- a/Controladora/obj/project.nuget.cache +++ b/Controladora/obj/project.nuget.cache @@ -1,6 +1,6 @@ { "version": 2, - "dgSpecHash": "JoSHMK4IHJ4=", + "dgSpecHash": "E4oWaijIyXE=", "success": true, "projectFilePath": "C:\\Users\\fedpo\\source\\repos\\Final_Das\\Controladora\\Controladora.csproj", "expectedPackageFiles": [ @@ -10,16 +10,20 @@ "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.csharp\\4.5.0\\microsoft.csharp.4.5.0.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.data.sqlclient\\5.1.5\\microsoft.data.sqlclient.5.1.5.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.data.sqlclient.sni.runtime\\5.1.1\\microsoft.data.sqlclient.sni.runtime.5.1.1.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.data.sqlite.core\\8.0.8\\microsoft.data.sqlite.core.8.0.8.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore\\8.0.8\\microsoft.entityframeworkcore.8.0.8.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore.abstractions\\8.0.8\\microsoft.entityframeworkcore.abstractions.8.0.8.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore.analyzers\\8.0.8\\microsoft.entityframeworkcore.analyzers.8.0.8.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore.relational\\8.0.8\\microsoft.entityframeworkcore.relational.8.0.8.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore.sqlite\\8.0.8\\microsoft.entityframeworkcore.sqlite.8.0.8.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore.sqlite.core\\8.0.8\\microsoft.entityframeworkcore.sqlite.core.8.0.8.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore.sqlserver\\8.0.8\\microsoft.entityframeworkcore.sqlserver.8.0.8.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.extensions.caching.abstractions\\8.0.0\\microsoft.extensions.caching.abstractions.8.0.0.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.extensions.caching.memory\\8.0.0\\microsoft.extensions.caching.memory.8.0.0.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.extensions.configuration.abstractions\\8.0.0\\microsoft.extensions.configuration.abstractions.8.0.0.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.extensions.dependencyinjection\\8.0.0\\microsoft.extensions.dependencyinjection.8.0.0.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.extensions.dependencyinjection.abstractions\\8.0.0\\microsoft.extensions.dependencyinjection.abstractions.8.0.0.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.extensions.dependencymodel\\8.0.1\\microsoft.extensions.dependencymodel.8.0.1.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.extensions.logging\\8.0.0\\microsoft.extensions.logging.8.0.0.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.extensions.logging.abstractions\\8.0.0\\microsoft.extensions.logging.abstractions.8.0.0.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.extensions.options\\8.0.0\\microsoft.extensions.options.8.0.0.nupkg.sha512", @@ -36,6 +40,10 @@ "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.netcore.targets\\1.1.0\\microsoft.netcore.targets.1.1.0.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.sqlserver.server\\1.0.0\\microsoft.sqlserver.server.1.0.0.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.win32.systemevents\\6.0.0\\microsoft.win32.systemevents.6.0.0.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\sqlitepclraw.bundle_e_sqlite3\\2.1.6\\sqlitepclraw.bundle_e_sqlite3.2.1.6.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\sqlitepclraw.core\\2.1.6\\sqlitepclraw.core.2.1.6.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\sqlitepclraw.lib.e_sqlite3\\2.1.6\\sqlitepclraw.lib.e_sqlite3.2.1.6.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\sqlitepclraw.provider.e_sqlite3\\2.1.6\\sqlitepclraw.provider.e_sqlite3.2.1.6.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\system.configuration.configurationmanager\\6.0.1\\system.configuration.configurationmanager.6.0.1.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\system.diagnostics.diagnosticsource\\6.0.1\\system.diagnostics.diagnosticsource.6.0.1.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\system.drawing.common\\6.0.0\\system.drawing.common.6.0.0.nupkg.sha512", @@ -55,8 +63,8 @@ "C:\\Users\\fedpo\\.nuget\\packages\\system.security.principal.windows\\5.0.0\\system.security.principal.windows.5.0.0.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\system.text.encoding\\4.3.0\\system.text.encoding.4.3.0.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\system.text.encoding.codepages\\6.0.0\\system.text.encoding.codepages.6.0.0.nupkg.sha512", - "C:\\Users\\fedpo\\.nuget\\packages\\system.text.encodings.web\\6.0.0\\system.text.encodings.web.6.0.0.nupkg.sha512", - "C:\\Users\\fedpo\\.nuget\\packages\\system.text.json\\4.7.2\\system.text.json.4.7.2.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\system.text.encodings.web\\8.0.0\\system.text.encodings.web.8.0.0.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\system.text.json\\8.0.4\\system.text.json.8.0.4.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\system.threading.tasks.extensions\\4.5.4\\system.threading.tasks.extensions.4.5.4.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\system.windows.extensions\\6.0.0\\system.windows.extensions.6.0.0.nupkg.sha512" ], diff --git a/Entidades/Lote.cs b/Entidades/Lote.cs index e65547c..a8ce30f 100644 --- a/Entidades/Lote.cs +++ b/Entidades/Lote.cs @@ -5,7 +5,7 @@ namespace Entidades { public class Lote: Detalle { - public int IdRemito { get; set; } + public int IdRemito { get; set; } public DateTime Fecha { get; set; } public bool Habilitado { get; set; } diff --git a/Entidades/Remito.cs b/Entidades/Remito.cs index 81d5940..384f8f2 100644 --- a/Entidades/Remito.cs +++ b/Entidades/Remito.cs @@ -8,14 +8,13 @@ public int Id { get; set; } public Proveedor Proveedor { get; set; } - public int IdProveedor { get; set; } - private List lotesDeProductosEntregados = new List(); - public ReadOnlyCollection Lotes => lotesDeProductosEntregados.AsReadOnly(); + + public List Lotes = new List(); public void AñadirLote(Lote lote) { try { - lotesDeProductosEntregados.Add(lote); + Lotes.Add(lote); } catch (Exception) { diff --git a/Informes/bin/Debug/net8.0/Entidades.dll b/Informes/bin/Debug/net8.0/Entidades.dll index 16b2eae..8416213 100644 Binary files a/Informes/bin/Debug/net8.0/Entidades.dll and b/Informes/bin/Debug/net8.0/Entidades.dll differ diff --git a/Informes/bin/Debug/net8.0/Entidades.pdb b/Informes/bin/Debug/net8.0/Entidades.pdb index c72e326..b8316e6 100644 Binary files a/Informes/bin/Debug/net8.0/Entidades.pdb and b/Informes/bin/Debug/net8.0/Entidades.pdb differ diff --git a/Informes/bin/Debug/net8.0/Informes.dll b/Informes/bin/Debug/net8.0/Informes.dll index 6c43533..caeb0d7 100644 Binary files a/Informes/bin/Debug/net8.0/Informes.dll and b/Informes/bin/Debug/net8.0/Informes.dll differ diff --git a/Informes/bin/Debug/net8.0/Informes.pdb b/Informes/bin/Debug/net8.0/Informes.pdb index 5e34663..70ddfc9 100644 Binary files a/Informes/bin/Debug/net8.0/Informes.pdb and b/Informes/bin/Debug/net8.0/Informes.pdb differ diff --git a/Informes/obj/Debug/net8.0/Informes.AssemblyInfo.cs b/Informes/obj/Debug/net8.0/Informes.AssemblyInfo.cs index 5cf9f1d..f79d940 100644 --- a/Informes/obj/Debug/net8.0/Informes.AssemblyInfo.cs +++ b/Informes/obj/Debug/net8.0/Informes.AssemblyInfo.cs @@ -14,7 +14,7 @@ using System.Reflection; [assembly: System.Reflection.AssemblyCompanyAttribute("Informes")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+c15ae743ab4e6f1c270349cbe1eadde8c6404874")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+393caac989bc21fa565a3f37f2db36fec8e62f3b")] [assembly: System.Reflection.AssemblyProductAttribute("Informes")] [assembly: System.Reflection.AssemblyTitleAttribute("Informes")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] diff --git a/Informes/obj/Debug/net8.0/Informes.AssemblyInfoInputs.cache b/Informes/obj/Debug/net8.0/Informes.AssemblyInfoInputs.cache index 77d0fca..3d36f52 100644 --- a/Informes/obj/Debug/net8.0/Informes.AssemblyInfoInputs.cache +++ b/Informes/obj/Debug/net8.0/Informes.AssemblyInfoInputs.cache @@ -1 +1 @@ -063488f106d4df3b350dc1d03b4f97c1bb306fa93a8938b525a7dd6820ac6ea7 +dc67df6e3c1aefb669493ea32177a9ea3a8c3f191c3f4fe633543c972150f401 diff --git a/Informes/obj/Debug/net8.0/Informes.csproj.AssemblyReference.cache b/Informes/obj/Debug/net8.0/Informes.csproj.AssemblyReference.cache index f5b433d..3ca4e95 100644 Binary files a/Informes/obj/Debug/net8.0/Informes.csproj.AssemblyReference.cache and b/Informes/obj/Debug/net8.0/Informes.csproj.AssemblyReference.cache differ diff --git a/Informes/obj/Debug/net8.0/Informes.dll b/Informes/obj/Debug/net8.0/Informes.dll index 6c43533..caeb0d7 100644 Binary files a/Informes/obj/Debug/net8.0/Informes.dll and b/Informes/obj/Debug/net8.0/Informes.dll differ diff --git a/Informes/obj/Debug/net8.0/Informes.pdb b/Informes/obj/Debug/net8.0/Informes.pdb index 5e34663..70ddfc9 100644 Binary files a/Informes/obj/Debug/net8.0/Informes.pdb and b/Informes/obj/Debug/net8.0/Informes.pdb differ diff --git a/Informes/obj/Debug/net8.0/ref/Informes.dll b/Informes/obj/Debug/net8.0/ref/Informes.dll index 08eb243..3c558c4 100644 Binary files a/Informes/obj/Debug/net8.0/ref/Informes.dll and b/Informes/obj/Debug/net8.0/ref/Informes.dll differ diff --git a/Informes/obj/Debug/net8.0/refint/Informes.dll b/Informes/obj/Debug/net8.0/refint/Informes.dll index 08eb243..3c558c4 100644 Binary files a/Informes/obj/Debug/net8.0/refint/Informes.dll and b/Informes/obj/Debug/net8.0/refint/Informes.dll differ diff --git a/Modelo/Migrations/20240812181354_Initial.Designer.cs b/Modelo/.Migrations_old/20240812181354_Initial.Designer.cs similarity index 100% rename from Modelo/Migrations/20240812181354_Initial.Designer.cs rename to Modelo/.Migrations_old/20240812181354_Initial.Designer.cs diff --git a/Modelo/Migrations/20240812181354_Initial.cs b/Modelo/.Migrations_old/20240812181354_Initial.cs similarity index 100% rename from Modelo/Migrations/20240812181354_Initial.cs rename to Modelo/.Migrations_old/20240812181354_Initial.cs diff --git a/Modelo/Migrations/20240826212726_nuevasrelaciones.Designer.cs b/Modelo/.Migrations_old/20240826212726_nuevasrelaciones.Designer.cs similarity index 100% rename from Modelo/Migrations/20240826212726_nuevasrelaciones.Designer.cs rename to Modelo/.Migrations_old/20240826212726_nuevasrelaciones.Designer.cs diff --git a/Modelo/Migrations/20240826212726_nuevasrelaciones.cs b/Modelo/.Migrations_old/20240826212726_nuevasrelaciones.cs similarity index 100% rename from Modelo/Migrations/20240826212726_nuevasrelaciones.cs rename to Modelo/.Migrations_old/20240826212726_nuevasrelaciones.cs diff --git a/Modelo/Migrations/20240826213353_fixrelacionproductocategoria.Designer.cs b/Modelo/.Migrations_old/20240826213353_fixrelacionproductocategoria.Designer.cs similarity index 100% rename from Modelo/Migrations/20240826213353_fixrelacionproductocategoria.Designer.cs rename to Modelo/.Migrations_old/20240826213353_fixrelacionproductocategoria.Designer.cs diff --git a/Modelo/Migrations/20240826213353_fixrelacionproductocategoria.cs b/Modelo/.Migrations_old/20240826213353_fixrelacionproductocategoria.cs similarity index 100% rename from Modelo/Migrations/20240826213353_fixrelacionproductocategoria.cs rename to Modelo/.Migrations_old/20240826213353_fixrelacionproductocategoria.cs diff --git a/Modelo/Migrations/20240826222040_cambiadapkcompuesta.Designer.cs b/Modelo/.Migrations_old/20240826222040_cambiadapkcompuesta.Designer.cs similarity index 100% rename from Modelo/Migrations/20240826222040_cambiadapkcompuesta.Designer.cs rename to Modelo/.Migrations_old/20240826222040_cambiadapkcompuesta.Designer.cs diff --git a/Modelo/Migrations/20240826222040_cambiadapkcompuesta.cs b/Modelo/.Migrations_old/20240826222040_cambiadapkcompuesta.cs similarity index 100% rename from Modelo/Migrations/20240826222040_cambiadapkcompuesta.cs rename to Modelo/.Migrations_old/20240826222040_cambiadapkcompuesta.cs diff --git a/Modelo/Migrations/20240827025739_CuitNotGenerateValue.Designer.cs b/Modelo/.Migrations_old/20240827025739_CuitNotGenerateValue.Designer.cs similarity index 100% rename from Modelo/Migrations/20240827025739_CuitNotGenerateValue.Designer.cs rename to Modelo/.Migrations_old/20240827025739_CuitNotGenerateValue.Designer.cs diff --git a/Modelo/Migrations/20240827025739_CuitNotGenerateValue.cs b/Modelo/.Migrations_old/20240827025739_CuitNotGenerateValue.cs similarity index 100% rename from Modelo/Migrations/20240827025739_CuitNotGenerateValue.cs rename to Modelo/.Migrations_old/20240827025739_CuitNotGenerateValue.cs diff --git a/Modelo/Migrations/20240907203054_funcatodo.Designer.cs b/Modelo/.Migrations_old/20240907203054_funcatodo.Designer.cs similarity index 100% rename from Modelo/Migrations/20240907203054_funcatodo.Designer.cs rename to Modelo/.Migrations_old/20240907203054_funcatodo.Designer.cs diff --git a/Modelo/Migrations/20240907203054_funcatodo.cs b/Modelo/.Migrations_old/20240907203054_funcatodo.cs similarity index 100% rename from Modelo/Migrations/20240907203054_funcatodo.cs rename to Modelo/.Migrations_old/20240907203054_funcatodo.cs diff --git a/Modelo/.Migrations_old/20240908160636_eliminadocamporedundante.Designer.cs b/Modelo/.Migrations_old/20240908160636_eliminadocamporedundante.Designer.cs new file mode 100644 index 0000000..0124cba --- /dev/null +++ b/Modelo/.Migrations_old/20240908160636_eliminadocamporedundante.Designer.cs @@ -0,0 +1,573 @@ +// +using System; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using Modelo; + +#nullable disable + +namespace Modelo.Migrations +{ + [DbContext(typeof(Context))] + [Migration("20240908160636_eliminadocamporedundante")] + partial class eliminadocamporedundante + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "8.0.8") + .HasAnnotation("Relational:MaxIdentifierLength", 128); + + SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); + + modelBuilder.Entity("Entidades.Categoria", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("Descripcion") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.HasKey("Id"); + + b.ToTable("Categoria", (string)null); + }); + + modelBuilder.Entity("Entidades.Cliente", b => + { + b.Property("Cuit") + .HasColumnType("bigint"); + + b.Property("Apellido") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("Correo") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("nvarchar(150)"); + + b.Property("Direccion") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Habilitado") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(true); + + b.Property("Nombre") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.HasKey("Cuit"); + + b.ToTable("Clientes", (string)null); + }); + + modelBuilder.Entity("Entidades.DetalleFactura", b => + { + b.Property("Id") + .HasColumnType("int"); + + b.Property("IdFactura") + .HasColumnType("int"); + + b.Property("Cantidad") + .HasColumnType("int"); + + b.Property("ProductoId") + .HasColumnType("int"); + + b.HasKey("Id", "IdFactura"); + + b.HasIndex("IdFactura"); + + b.HasIndex("ProductoId"); + + b.ToTable("DetallesFacturas", (string)null); + }); + + modelBuilder.Entity("Entidades.DetalleOrdenDeCompra", b => + { + b.Property("Id") + .HasColumnType("int"); + + b.Property("IdOrdenDeCompra") + .HasColumnType("int"); + + b.Property("Cantidad") + .HasColumnType("int"); + + b.Property("IdPresupuesto") + .HasColumnType("int"); + + b.Property("MontoCU") + .HasColumnType("float"); + + b.Property("ProductoId") + .HasColumnType("int"); + + b.HasKey("Id", "IdOrdenDeCompra"); + + b.HasIndex("IdOrdenDeCompra"); + + b.HasIndex("ProductoId"); + + b.ToTable("DetalleOrdenDeCompras"); + }); + + modelBuilder.Entity("Entidades.DetallePresupuesto", b => + { + b.Property("Id") + .HasColumnType("int"); + + b.Property("IdPresupuesto") + .HasColumnType("int"); + + b.Property("Cantidad") + .HasColumnType("int"); + + b.Property("MontoCUPropuesto") + .HasColumnType("float"); + + b.Property("ProductoId") + .HasColumnType("int"); + + b.HasKey("Id", "IdPresupuesto"); + + b.HasIndex("IdPresupuesto"); + + b.HasIndex("ProductoId"); + + b.ToTable("DetallePresupuestos"); + }); + + modelBuilder.Entity("Entidades.Factura", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("ClienteCuit") + .HasColumnType("bigint"); + + b.Property("Fecha") + .HasColumnType("datetime2"); + + b.Property("IdCliente") + .HasColumnType("bigint"); + + b.Property("Total") + .HasColumnType("float"); + + b.HasKey("Id"); + + b.HasIndex("ClienteCuit"); + + b.ToTable("Facturas", (string)null); + }); + + modelBuilder.Entity("Entidades.Lote", b => + { + b.Property("Id") + .HasColumnType("int"); + + b.Property("IdRemito") + .HasColumnType("int"); + + b.Property("Cantidad") + .HasColumnType("int"); + + b.Property("Fecha") + .HasColumnType("datetime2"); + + b.Property("Habilitado") + .HasColumnType("bit"); + + b.Property("ProductoId") + .HasColumnType("int"); + + b.HasKey("Id", "IdRemito"); + + b.HasIndex("IdRemito"); + + b.HasIndex("ProductoId"); + + b.ToTable("Lotes"); + }); + + modelBuilder.Entity("Entidades.OrdenDeCompra", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("Entregado") + .HasColumnType("bit"); + + b.Property("IdProveedor") + .HasColumnType("bigint"); + + b.Property("ProveedorCuit") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("ProveedorCuit"); + + b.ToTable("OrdenDeCompras"); + }); + + modelBuilder.Entity("Entidades.Presupuesto", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("Aceptado") + .HasColumnType("bit"); + + b.Property("Fecha") + .HasColumnType("datetime2"); + + b.Property("Habilitado") + .HasColumnType("bit"); + + b.Property("IdProveedor") + .HasColumnType("bigint"); + + b.Property("ProveedorCuit") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("ProveedorCuit"); + + b.ToTable("Presupuestos"); + }); + + modelBuilder.Entity("Entidades.Producto", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("Discriminator") + .IsRequired() + .HasMaxLength(21) + .HasColumnType("nvarchar(21)"); + + b.Property("EsPerecedero") + .HasColumnType("bit"); + + b.Property("Habilitado") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(true); + + b.Property("Nombre") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("Precio") + .HasColumnType("float"); + + b.HasKey("Id"); + + b.ToTable("Producto"); + + b.HasDiscriminator().HasValue("Producto"); + + b.UseTphMappingStrategy(); + }); + + modelBuilder.Entity("Entidades.Proveedor", b => + { + b.Property("Cuit") + .HasColumnType("bigint"); + + b.Property("Direccion") + .IsRequired() + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("Habilitado") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(true); + + b.Property("Nombre") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("RazonSocial") + .IsRequired() + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.HasKey("Cuit"); + + b.ToTable("Proveedores"); + }); + + modelBuilder.Entity("Entidades.Remito", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("ProveedorCuit") + .HasColumnType("bigint"); + + b.HasKey("Id"); + + b.HasIndex("ProveedorCuit"); + + b.ToTable("Remitos"); + }); + + modelBuilder.Entity("ProductoCategoria", b => + { + b.Property("CategoriaId") + .HasColumnType("int"); + + b.Property("ProductoId") + .HasColumnType("int"); + + b.HasKey("CategoriaId", "ProductoId"); + + b.HasIndex("ProductoId"); + + b.ToTable("ProductoCategoria"); + }); + + modelBuilder.Entity("ProductoProveedor", b => + { + b.Property("ProveedorId") + .HasColumnType("bigint"); + + b.Property("ProductoId") + .HasColumnType("int"); + + b.HasKey("ProveedorId", "ProductoId"); + + b.HasIndex("ProductoId"); + + b.ToTable("ProductoProveedor"); + }); + + modelBuilder.Entity("Entidades.ProductoNoPercedero", b => + { + b.HasBaseType("Entidades.Producto"); + + b.Property("TipoDeEnvase") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.HasDiscriminator().HasValue("ProductoNoPercedero"); + }); + + modelBuilder.Entity("Entidades.ProductoPercedero", b => + { + b.HasBaseType("Entidades.Producto"); + + b.Property("MesesHastaConsumoPreferente") + .HasColumnType("int"); + + b.Property("MesesHastaVencimiento") + .HasColumnType("int"); + + b.HasDiscriminator().HasValue("ProductoPercedero"); + }); + + modelBuilder.Entity("Entidades.DetalleFactura", b => + { + b.HasOne("Entidades.Factura", null) + .WithMany("Detalles") + .HasForeignKey("IdFactura") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("Entidades.Producto", "Producto") + .WithMany() + .HasForeignKey("ProductoId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Producto"); + }); + + modelBuilder.Entity("Entidades.DetalleOrdenDeCompra", b => + { + b.HasOne("Entidades.OrdenDeCompra", null) + .WithMany("detalles") + .HasForeignKey("IdOrdenDeCompra") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("Entidades.Producto", "Producto") + .WithMany() + .HasForeignKey("ProductoId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Producto"); + }); + + modelBuilder.Entity("Entidades.DetallePresupuesto", b => + { + b.HasOne("Entidades.Presupuesto", null) + .WithMany("detalles") + .HasForeignKey("IdPresupuesto") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("Entidades.Producto", "Producto") + .WithMany() + .HasForeignKey("ProductoId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Producto"); + }); + + modelBuilder.Entity("Entidades.Factura", b => + { + b.HasOne("Entidades.Cliente", "Cliente") + .WithMany() + .HasForeignKey("ClienteCuit") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Cliente"); + }); + + modelBuilder.Entity("Entidades.Lote", b => + { + b.HasOne("Entidades.Remito", null) + .WithMany("Lotes") + .HasForeignKey("IdRemito") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("Entidades.Producto", "Producto") + .WithMany() + .HasForeignKey("ProductoId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Producto"); + }); + + modelBuilder.Entity("Entidades.OrdenDeCompra", b => + { + b.HasOne("Entidades.Proveedor", "Proveedor") + .WithMany() + .HasForeignKey("ProveedorCuit") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Proveedor"); + }); + + modelBuilder.Entity("Entidades.Presupuesto", b => + { + b.HasOne("Entidades.Proveedor", "Proveedor") + .WithMany() + .HasForeignKey("ProveedorCuit") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Proveedor"); + }); + + modelBuilder.Entity("Entidades.Remito", b => + { + b.HasOne("Entidades.Proveedor", "Proveedor") + .WithMany() + .HasForeignKey("ProveedorCuit") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Proveedor"); + }); + + modelBuilder.Entity("ProductoCategoria", b => + { + b.HasOne("Entidades.Categoria", null) + .WithMany() + .HasForeignKey("CategoriaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("Entidades.Producto", null) + .WithMany() + .HasForeignKey("ProductoId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("ProductoProveedor", b => + { + b.HasOne("Entidades.Producto", null) + .WithMany() + .HasForeignKey("ProductoId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("Entidades.Proveedor", null) + .WithMany() + .HasForeignKey("ProveedorId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Entidades.Factura", b => + { + b.Navigation("Detalles"); + }); + + modelBuilder.Entity("Entidades.OrdenDeCompra", b => + { + b.Navigation("detalles"); + }); + + modelBuilder.Entity("Entidades.Presupuesto", b => + { + b.Navigation("detalles"); + }); + + modelBuilder.Entity("Entidades.Remito", b => + { + b.Navigation("Lotes"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/Modelo/.Migrations_old/20240908160636_eliminadocamporedundante.cs b/Modelo/.Migrations_old/20240908160636_eliminadocamporedundante.cs new file mode 100644 index 0000000..fcea0a2 --- /dev/null +++ b/Modelo/.Migrations_old/20240908160636_eliminadocamporedundante.cs @@ -0,0 +1,29 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace Modelo.Migrations +{ + /// + public partial class eliminadocamporedundante : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "IdProveedor", + table: "Remitos"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "IdProveedor", + table: "Remitos", + type: "int", + nullable: false, + defaultValue: 0); + } + } +} diff --git a/Modelo/.Migrations_old/20240908162248_mepaseasqlite.Designer.cs b/Modelo/.Migrations_old/20240908162248_mepaseasqlite.Designer.cs new file mode 100644 index 0000000..84fddff --- /dev/null +++ b/Modelo/.Migrations_old/20240908162248_mepaseasqlite.Designer.cs @@ -0,0 +1,556 @@ +// +using System; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using Modelo; + +#nullable disable + +namespace Modelo.Migrations +{ + [DbContext(typeof(Context))] + [Migration("20240908162248_mepaseasqlite")] + partial class mepaseasqlite + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder.HasAnnotation("ProductVersion", "8.0.8"); + + modelBuilder.Entity("Entidades.Categoria", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("INTEGER"); + + b.Property("Descripcion") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("TEXT"); + + b.HasKey("Id"); + + b.ToTable("Categoria", (string)null); + }); + + modelBuilder.Entity("Entidades.Cliente", b => + { + b.Property("Cuit") + .HasColumnType("INTEGER"); + + b.Property("Apellido") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("TEXT"); + + b.Property("Correo") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("TEXT"); + + b.Property("Direccion") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("TEXT"); + + b.Property("Habilitado") + .ValueGeneratedOnAdd() + .HasColumnType("INTEGER") + .HasDefaultValue(true); + + b.Property("Nombre") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("TEXT"); + + b.HasKey("Cuit"); + + b.ToTable("Clientes", (string)null); + }); + + modelBuilder.Entity("Entidades.DetalleFactura", b => + { + b.Property("Id") + .HasColumnType("INTEGER"); + + b.Property("IdFactura") + .HasColumnType("INTEGER"); + + b.Property("Cantidad") + .HasColumnType("INTEGER"); + + b.Property("ProductoId") + .HasColumnType("INTEGER"); + + b.HasKey("Id", "IdFactura"); + + b.HasIndex("IdFactura"); + + b.HasIndex("ProductoId"); + + b.ToTable("DetallesFacturas", (string)null); + }); + + modelBuilder.Entity("Entidades.DetalleOrdenDeCompra", b => + { + b.Property("Id") + .HasColumnType("INTEGER"); + + b.Property("IdOrdenDeCompra") + .HasColumnType("INTEGER"); + + b.Property("Cantidad") + .HasColumnType("INTEGER"); + + b.Property("IdPresupuesto") + .HasColumnType("INTEGER"); + + b.Property("MontoCU") + .HasColumnType("REAL"); + + b.Property("ProductoId") + .HasColumnType("INTEGER"); + + b.HasKey("Id", "IdOrdenDeCompra"); + + b.HasIndex("IdOrdenDeCompra"); + + b.HasIndex("ProductoId"); + + b.ToTable("DetalleOrdenDeCompras"); + }); + + modelBuilder.Entity("Entidades.DetallePresupuesto", b => + { + b.Property("Id") + .HasColumnType("INTEGER"); + + b.Property("IdPresupuesto") + .HasColumnType("INTEGER"); + + b.Property("Cantidad") + .HasColumnType("INTEGER"); + + b.Property("MontoCUPropuesto") + .HasColumnType("REAL"); + + b.Property("ProductoId") + .HasColumnType("INTEGER"); + + b.HasKey("Id", "IdPresupuesto"); + + b.HasIndex("IdPresupuesto"); + + b.HasIndex("ProductoId"); + + b.ToTable("DetallePresupuestos"); + }); + + modelBuilder.Entity("Entidades.Factura", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("INTEGER"); + + b.Property("ClienteCuit") + .HasColumnType("INTEGER"); + + b.Property("Fecha") + .HasColumnType("TEXT"); + + b.Property("IdCliente") + .HasColumnType("INTEGER"); + + b.Property("Total") + .HasColumnType("REAL"); + + b.HasKey("Id"); + + b.HasIndex("ClienteCuit"); + + b.ToTable("Facturas", (string)null); + }); + + modelBuilder.Entity("Entidades.Lote", b => + { + b.Property("Id") + .HasColumnType("INTEGER"); + + b.Property("IdRemito") + .HasColumnType("INTEGER"); + + b.Property("Cantidad") + .HasColumnType("INTEGER"); + + b.Property("Fecha") + .HasColumnType("TEXT"); + + b.Property("Habilitado") + .HasColumnType("INTEGER"); + + b.Property("ProductoId") + .HasColumnType("INTEGER"); + + b.HasKey("Id", "IdRemito"); + + b.HasIndex("IdRemito"); + + b.HasIndex("ProductoId"); + + b.ToTable("Lotes"); + }); + + modelBuilder.Entity("Entidades.OrdenDeCompra", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("INTEGER"); + + b.Property("Entregado") + .HasColumnType("INTEGER"); + + b.Property("IdProveedor") + .HasColumnType("INTEGER"); + + b.Property("ProveedorCuit") + .HasColumnType("INTEGER"); + + b.HasKey("Id"); + + b.HasIndex("ProveedorCuit"); + + b.ToTable("OrdenDeCompras"); + }); + + modelBuilder.Entity("Entidades.Presupuesto", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("INTEGER"); + + b.Property("Aceptado") + .HasColumnType("INTEGER"); + + b.Property("Fecha") + .HasColumnType("TEXT"); + + b.Property("Habilitado") + .HasColumnType("INTEGER"); + + b.Property("IdProveedor") + .HasColumnType("INTEGER"); + + b.Property("ProveedorCuit") + .HasColumnType("INTEGER"); + + b.HasKey("Id"); + + b.HasIndex("ProveedorCuit"); + + b.ToTable("Presupuestos"); + }); + + modelBuilder.Entity("Entidades.Producto", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("INTEGER"); + + b.Property("Discriminator") + .IsRequired() + .HasMaxLength(21) + .HasColumnType("TEXT"); + + b.Property("EsPerecedero") + .HasColumnType("INTEGER"); + + b.Property("Habilitado") + .ValueGeneratedOnAdd() + .HasColumnType("INTEGER") + .HasDefaultValue(true); + + b.Property("Nombre") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("TEXT"); + + b.Property("Precio") + .HasColumnType("float"); + + b.HasKey("Id"); + + b.ToTable("Producto"); + + b.HasDiscriminator().HasValue("Producto"); + + b.UseTphMappingStrategy(); + }); + + modelBuilder.Entity("Entidades.Proveedor", b => + { + b.Property("Cuit") + .HasColumnType("INTEGER"); + + b.Property("Direccion") + .IsRequired() + .HasMaxLength(60) + .HasColumnType("TEXT"); + + b.Property("Habilitado") + .ValueGeneratedOnAdd() + .HasColumnType("INTEGER") + .HasDefaultValue(true); + + b.Property("Nombre") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("TEXT"); + + b.Property("RazonSocial") + .IsRequired() + .HasMaxLength(60) + .HasColumnType("TEXT"); + + b.HasKey("Cuit"); + + b.ToTable("Proveedores"); + }); + + modelBuilder.Entity("Entidades.Remito", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("INTEGER"); + + b.Property("ProveedorCuit") + .HasColumnType("INTEGER"); + + b.HasKey("Id"); + + b.HasIndex("ProveedorCuit"); + + b.ToTable("Remitos"); + }); + + modelBuilder.Entity("ProductoCategoria", b => + { + b.Property("CategoriaId") + .HasColumnType("INTEGER"); + + b.Property("ProductoId") + .HasColumnType("INTEGER"); + + b.HasKey("CategoriaId", "ProductoId"); + + b.HasIndex("ProductoId"); + + b.ToTable("ProductoCategoria"); + }); + + modelBuilder.Entity("ProductoProveedor", b => + { + b.Property("ProveedorId") + .HasColumnType("INTEGER"); + + b.Property("ProductoId") + .HasColumnType("INTEGER"); + + b.HasKey("ProveedorId", "ProductoId"); + + b.HasIndex("ProductoId"); + + b.ToTable("ProductoProveedor"); + }); + + modelBuilder.Entity("Entidades.ProductoNoPercedero", b => + { + b.HasBaseType("Entidades.Producto"); + + b.Property("TipoDeEnvase") + .IsRequired() + .HasColumnType("TEXT"); + + b.HasDiscriminator().HasValue("ProductoNoPercedero"); + }); + + modelBuilder.Entity("Entidades.ProductoPercedero", b => + { + b.HasBaseType("Entidades.Producto"); + + b.Property("MesesHastaConsumoPreferente") + .HasColumnType("INTEGER"); + + b.Property("MesesHastaVencimiento") + .HasColumnType("INTEGER"); + + b.HasDiscriminator().HasValue("ProductoPercedero"); + }); + + modelBuilder.Entity("Entidades.DetalleFactura", b => + { + b.HasOne("Entidades.Factura", null) + .WithMany("Detalles") + .HasForeignKey("IdFactura") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("Entidades.Producto", "Producto") + .WithMany() + .HasForeignKey("ProductoId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Producto"); + }); + + modelBuilder.Entity("Entidades.DetalleOrdenDeCompra", b => + { + b.HasOne("Entidades.OrdenDeCompra", null) + .WithMany("detalles") + .HasForeignKey("IdOrdenDeCompra") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("Entidades.Producto", "Producto") + .WithMany() + .HasForeignKey("ProductoId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Producto"); + }); + + modelBuilder.Entity("Entidades.DetallePresupuesto", b => + { + b.HasOne("Entidades.Presupuesto", null) + .WithMany("detalles") + .HasForeignKey("IdPresupuesto") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("Entidades.Producto", "Producto") + .WithMany() + .HasForeignKey("ProductoId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Producto"); + }); + + modelBuilder.Entity("Entidades.Factura", b => + { + b.HasOne("Entidades.Cliente", "Cliente") + .WithMany() + .HasForeignKey("ClienteCuit") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Cliente"); + }); + + modelBuilder.Entity("Entidades.Lote", b => + { + b.HasOne("Entidades.Remito", null) + .WithMany("Lotes") + .HasForeignKey("IdRemito") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("Entidades.Producto", "Producto") + .WithMany() + .HasForeignKey("ProductoId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Producto"); + }); + + modelBuilder.Entity("Entidades.OrdenDeCompra", b => + { + b.HasOne("Entidades.Proveedor", "Proveedor") + .WithMany() + .HasForeignKey("ProveedorCuit") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Proveedor"); + }); + + modelBuilder.Entity("Entidades.Presupuesto", b => + { + b.HasOne("Entidades.Proveedor", "Proveedor") + .WithMany() + .HasForeignKey("ProveedorCuit") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Proveedor"); + }); + + modelBuilder.Entity("Entidades.Remito", b => + { + b.HasOne("Entidades.Proveedor", "Proveedor") + .WithMany() + .HasForeignKey("ProveedorCuit") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Proveedor"); + }); + + modelBuilder.Entity("ProductoCategoria", b => + { + b.HasOne("Entidades.Categoria", null) + .WithMany() + .HasForeignKey("CategoriaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("Entidades.Producto", null) + .WithMany() + .HasForeignKey("ProductoId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("ProductoProveedor", b => + { + b.HasOne("Entidades.Producto", null) + .WithMany() + .HasForeignKey("ProductoId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("Entidades.Proveedor", null) + .WithMany() + .HasForeignKey("ProveedorId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Entidades.Factura", b => + { + b.Navigation("Detalles"); + }); + + modelBuilder.Entity("Entidades.OrdenDeCompra", b => + { + b.Navigation("detalles"); + }); + + modelBuilder.Entity("Entidades.Presupuesto", b => + { + b.Navigation("detalles"); + }); + + modelBuilder.Entity("Entidades.Remito", b => + { + b.Navigation("Lotes"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/Modelo/.Migrations_old/20240908162248_mepaseasqlite.cs b/Modelo/.Migrations_old/20240908162248_mepaseasqlite.cs new file mode 100644 index 0000000..d0a9797 --- /dev/null +++ b/Modelo/.Migrations_old/20240908162248_mepaseasqlite.cs @@ -0,0 +1,1109 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace Modelo.Migrations +{ + /// + public partial class mepaseasqlite : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AlterColumn( + name: "ProveedorCuit", + table: "Remitos", + type: "INTEGER", + nullable: false, + oldClrType: typeof(long), + oldType: "bigint"); + + migrationBuilder.AlterColumn( + name: "Id", + table: "Remitos", + type: "INTEGER", + nullable: false, + oldClrType: typeof(int), + oldType: "int") + .Annotation("Sqlite:Autoincrement", true) + .OldAnnotation("Sqlite:Autoincrement", true); + + migrationBuilder.AlterColumn( + name: "RazonSocial", + table: "Proveedores", + type: "TEXT", + maxLength: 60, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(60)", + oldMaxLength: 60); + + migrationBuilder.AlterColumn( + name: "Nombre", + table: "Proveedores", + type: "TEXT", + maxLength: 30, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(30)", + oldMaxLength: 30); + + migrationBuilder.AlterColumn( + name: "Habilitado", + table: "Proveedores", + type: "INTEGER", + nullable: false, + defaultValue: true, + oldClrType: typeof(bool), + oldType: "bit", + oldDefaultValue: true); + + migrationBuilder.AlterColumn( + name: "Direccion", + table: "Proveedores", + type: "TEXT", + maxLength: 60, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(60)", + oldMaxLength: 60); + + migrationBuilder.AlterColumn( + name: "Cuit", + table: "Proveedores", + type: "INTEGER", + nullable: false, + oldClrType: typeof(long), + oldType: "bigint"); + + migrationBuilder.AlterColumn( + name: "ProductoId", + table: "ProductoProveedor", + type: "INTEGER", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "ProveedorId", + table: "ProductoProveedor", + type: "INTEGER", + nullable: false, + oldClrType: typeof(long), + oldType: "bigint"); + + migrationBuilder.AlterColumn( + name: "ProductoId", + table: "ProductoCategoria", + type: "INTEGER", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "CategoriaId", + table: "ProductoCategoria", + type: "INTEGER", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "TipoDeEnvase", + table: "Producto", + type: "TEXT", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Nombre", + table: "Producto", + type: "TEXT", + maxLength: 30, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(30)", + oldMaxLength: 30); + + migrationBuilder.AlterColumn( + name: "MesesHastaVencimiento", + table: "Producto", + type: "INTEGER", + nullable: true, + oldClrType: typeof(int), + oldType: "int", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "MesesHastaConsumoPreferente", + table: "Producto", + type: "INTEGER", + nullable: true, + oldClrType: typeof(int), + oldType: "int", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Habilitado", + table: "Producto", + type: "INTEGER", + nullable: false, + defaultValue: true, + oldClrType: typeof(bool), + oldType: "bit", + oldDefaultValue: true); + + migrationBuilder.AlterColumn( + name: "EsPerecedero", + table: "Producto", + type: "INTEGER", + nullable: false, + oldClrType: typeof(bool), + oldType: "bit"); + + migrationBuilder.AlterColumn( + name: "Discriminator", + table: "Producto", + type: "TEXT", + maxLength: 21, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(21)", + oldMaxLength: 21); + + migrationBuilder.AlterColumn( + name: "Id", + table: "Producto", + type: "INTEGER", + nullable: false, + oldClrType: typeof(int), + oldType: "int") + .Annotation("Sqlite:Autoincrement", true) + .OldAnnotation("Sqlite:Autoincrement", true); + + migrationBuilder.AlterColumn( + name: "ProveedorCuit", + table: "Presupuestos", + type: "INTEGER", + nullable: false, + oldClrType: typeof(long), + oldType: "bigint"); + + migrationBuilder.AlterColumn( + name: "IdProveedor", + table: "Presupuestos", + type: "INTEGER", + nullable: false, + oldClrType: typeof(long), + oldType: "bigint"); + + migrationBuilder.AlterColumn( + name: "Habilitado", + table: "Presupuestos", + type: "INTEGER", + nullable: false, + oldClrType: typeof(bool), + oldType: "bit"); + + migrationBuilder.AlterColumn( + name: "Fecha", + table: "Presupuestos", + type: "TEXT", + nullable: false, + oldClrType: typeof(DateTime), + oldType: "datetime2"); + + migrationBuilder.AlterColumn( + name: "Aceptado", + table: "Presupuestos", + type: "INTEGER", + nullable: false, + oldClrType: typeof(bool), + oldType: "bit"); + + migrationBuilder.AlterColumn( + name: "Id", + table: "Presupuestos", + type: "INTEGER", + nullable: false, + oldClrType: typeof(int), + oldType: "int") + .Annotation("Sqlite:Autoincrement", true) + .OldAnnotation("Sqlite:Autoincrement", true); + + migrationBuilder.AlterColumn( + name: "ProveedorCuit", + table: "OrdenDeCompras", + type: "INTEGER", + nullable: false, + oldClrType: typeof(long), + oldType: "bigint"); + + migrationBuilder.AlterColumn( + name: "IdProveedor", + table: "OrdenDeCompras", + type: "INTEGER", + nullable: false, + oldClrType: typeof(long), + oldType: "bigint"); + + migrationBuilder.AlterColumn( + name: "Entregado", + table: "OrdenDeCompras", + type: "INTEGER", + nullable: false, + oldClrType: typeof(bool), + oldType: "bit"); + + migrationBuilder.AlterColumn( + name: "Id", + table: "OrdenDeCompras", + type: "INTEGER", + nullable: false, + oldClrType: typeof(int), + oldType: "int") + .Annotation("Sqlite:Autoincrement", true) + .OldAnnotation("Sqlite:Autoincrement", true); + + migrationBuilder.AlterColumn( + name: "ProductoId", + table: "Lotes", + type: "INTEGER", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "Habilitado", + table: "Lotes", + type: "INTEGER", + nullable: false, + oldClrType: typeof(bool), + oldType: "bit"); + + migrationBuilder.AlterColumn( + name: "Fecha", + table: "Lotes", + type: "TEXT", + nullable: false, + oldClrType: typeof(DateTime), + oldType: "datetime2"); + + migrationBuilder.AlterColumn( + name: "Cantidad", + table: "Lotes", + type: "INTEGER", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "IdRemito", + table: "Lotes", + type: "INTEGER", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "Id", + table: "Lotes", + type: "INTEGER", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "Total", + table: "Facturas", + type: "REAL", + nullable: false, + oldClrType: typeof(double), + oldType: "float"); + + migrationBuilder.AlterColumn( + name: "IdCliente", + table: "Facturas", + type: "INTEGER", + nullable: false, + oldClrType: typeof(long), + oldType: "bigint"); + + migrationBuilder.AlterColumn( + name: "Fecha", + table: "Facturas", + type: "TEXT", + nullable: false, + oldClrType: typeof(DateTime), + oldType: "datetime2"); + + migrationBuilder.AlterColumn( + name: "ClienteCuit", + table: "Facturas", + type: "INTEGER", + nullable: false, + oldClrType: typeof(long), + oldType: "bigint"); + + migrationBuilder.AlterColumn( + name: "Id", + table: "Facturas", + type: "INTEGER", + nullable: false, + oldClrType: typeof(int), + oldType: "int") + .Annotation("Sqlite:Autoincrement", true) + .OldAnnotation("Sqlite:Autoincrement", true); + + migrationBuilder.AlterColumn( + name: "ProductoId", + table: "DetallesFacturas", + type: "INTEGER", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "Cantidad", + table: "DetallesFacturas", + type: "INTEGER", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "IdFactura", + table: "DetallesFacturas", + type: "INTEGER", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "Id", + table: "DetallesFacturas", + type: "INTEGER", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "ProductoId", + table: "DetallePresupuestos", + type: "INTEGER", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "MontoCUPropuesto", + table: "DetallePresupuestos", + type: "REAL", + nullable: false, + oldClrType: typeof(double), + oldType: "float"); + + migrationBuilder.AlterColumn( + name: "Cantidad", + table: "DetallePresupuestos", + type: "INTEGER", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "IdPresupuesto", + table: "DetallePresupuestos", + type: "INTEGER", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "Id", + table: "DetallePresupuestos", + type: "INTEGER", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "ProductoId", + table: "DetalleOrdenDeCompras", + type: "INTEGER", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "MontoCU", + table: "DetalleOrdenDeCompras", + type: "REAL", + nullable: false, + oldClrType: typeof(double), + oldType: "float"); + + migrationBuilder.AlterColumn( + name: "IdPresupuesto", + table: "DetalleOrdenDeCompras", + type: "INTEGER", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "Cantidad", + table: "DetalleOrdenDeCompras", + type: "INTEGER", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "IdOrdenDeCompra", + table: "DetalleOrdenDeCompras", + type: "INTEGER", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "Id", + table: "DetalleOrdenDeCompras", + type: "INTEGER", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "Nombre", + table: "Clientes", + type: "TEXT", + maxLength: 30, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(30)", + oldMaxLength: 30); + + migrationBuilder.AlterColumn( + name: "Habilitado", + table: "Clientes", + type: "INTEGER", + nullable: false, + defaultValue: true, + oldClrType: typeof(bool), + oldType: "bit", + oldDefaultValue: true); + + migrationBuilder.AlterColumn( + name: "Direccion", + table: "Clientes", + type: "TEXT", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "Correo", + table: "Clientes", + type: "TEXT", + maxLength: 150, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(150)", + oldMaxLength: 150); + + migrationBuilder.AlterColumn( + name: "Apellido", + table: "Clientes", + type: "TEXT", + maxLength: 30, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(30)", + oldMaxLength: 30); + + migrationBuilder.AlterColumn( + name: "Cuit", + table: "Clientes", + type: "INTEGER", + nullable: false, + oldClrType: typeof(long), + oldType: "bigint"); + + migrationBuilder.AlterColumn( + name: "Descripcion", + table: "Categoria", + type: "TEXT", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "Id", + table: "Categoria", + type: "INTEGER", + nullable: false, + oldClrType: typeof(int), + oldType: "int") + .Annotation("Sqlite:Autoincrement", true) + .OldAnnotation("Sqlite:Autoincrement", true); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.AlterColumn( + name: "ProveedorCuit", + table: "Remitos", + type: "bigint", + nullable: false, + oldClrType: typeof(long), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "Id", + table: "Remitos", + type: "int", + nullable: false, + oldClrType: typeof(int), + oldType: "INTEGER") + .Annotation("Sqlite:Autoincrement", true) + .OldAnnotation("Sqlite:Autoincrement", true); + + migrationBuilder.AlterColumn( + name: "RazonSocial", + table: "Proveedores", + type: "nvarchar(60)", + maxLength: 60, + nullable: false, + oldClrType: typeof(string), + oldType: "TEXT", + oldMaxLength: 60); + + migrationBuilder.AlterColumn( + name: "Nombre", + table: "Proveedores", + type: "nvarchar(30)", + maxLength: 30, + nullable: false, + oldClrType: typeof(string), + oldType: "TEXT", + oldMaxLength: 30); + + migrationBuilder.AlterColumn( + name: "Habilitado", + table: "Proveedores", + type: "bit", + nullable: false, + defaultValue: true, + oldClrType: typeof(bool), + oldType: "INTEGER", + oldDefaultValue: true); + + migrationBuilder.AlterColumn( + name: "Direccion", + table: "Proveedores", + type: "nvarchar(60)", + maxLength: 60, + nullable: false, + oldClrType: typeof(string), + oldType: "TEXT", + oldMaxLength: 60); + + migrationBuilder.AlterColumn( + name: "Cuit", + table: "Proveedores", + type: "bigint", + nullable: false, + oldClrType: typeof(long), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "ProductoId", + table: "ProductoProveedor", + type: "int", + nullable: false, + oldClrType: typeof(int), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "ProveedorId", + table: "ProductoProveedor", + type: "bigint", + nullable: false, + oldClrType: typeof(long), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "ProductoId", + table: "ProductoCategoria", + type: "int", + nullable: false, + oldClrType: typeof(int), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "CategoriaId", + table: "ProductoCategoria", + type: "int", + nullable: false, + oldClrType: typeof(int), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "TipoDeEnvase", + table: "Producto", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "TEXT", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Nombre", + table: "Producto", + type: "nvarchar(30)", + maxLength: 30, + nullable: false, + oldClrType: typeof(string), + oldType: "TEXT", + oldMaxLength: 30); + + migrationBuilder.AlterColumn( + name: "MesesHastaVencimiento", + table: "Producto", + type: "int", + nullable: true, + oldClrType: typeof(int), + oldType: "INTEGER", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "MesesHastaConsumoPreferente", + table: "Producto", + type: "int", + nullable: true, + oldClrType: typeof(int), + oldType: "INTEGER", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Habilitado", + table: "Producto", + type: "bit", + nullable: false, + defaultValue: true, + oldClrType: typeof(bool), + oldType: "INTEGER", + oldDefaultValue: true); + + migrationBuilder.AlterColumn( + name: "EsPerecedero", + table: "Producto", + type: "bit", + nullable: false, + oldClrType: typeof(bool), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "Discriminator", + table: "Producto", + type: "nvarchar(21)", + maxLength: 21, + nullable: false, + oldClrType: typeof(string), + oldType: "TEXT", + oldMaxLength: 21); + + migrationBuilder.AlterColumn( + name: "Id", + table: "Producto", + type: "int", + nullable: false, + oldClrType: typeof(int), + oldType: "INTEGER") + .Annotation("Sqlite:Autoincrement", true) + .OldAnnotation("Sqlite:Autoincrement", true); + + migrationBuilder.AlterColumn( + name: "ProveedorCuit", + table: "Presupuestos", + type: "bigint", + nullable: false, + oldClrType: typeof(long), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "IdProveedor", + table: "Presupuestos", + type: "bigint", + nullable: false, + oldClrType: typeof(long), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "Habilitado", + table: "Presupuestos", + type: "bit", + nullable: false, + oldClrType: typeof(bool), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "Fecha", + table: "Presupuestos", + type: "datetime2", + nullable: false, + oldClrType: typeof(DateTime), + oldType: "TEXT"); + + migrationBuilder.AlterColumn( + name: "Aceptado", + table: "Presupuestos", + type: "bit", + nullable: false, + oldClrType: typeof(bool), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "Id", + table: "Presupuestos", + type: "int", + nullable: false, + oldClrType: typeof(int), + oldType: "INTEGER") + .Annotation("Sqlite:Autoincrement", true) + .OldAnnotation("Sqlite:Autoincrement", true); + + migrationBuilder.AlterColumn( + name: "ProveedorCuit", + table: "OrdenDeCompras", + type: "bigint", + nullable: false, + oldClrType: typeof(long), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "IdProveedor", + table: "OrdenDeCompras", + type: "bigint", + nullable: false, + oldClrType: typeof(long), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "Entregado", + table: "OrdenDeCompras", + type: "bit", + nullable: false, + oldClrType: typeof(bool), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "Id", + table: "OrdenDeCompras", + type: "int", + nullable: false, + oldClrType: typeof(int), + oldType: "INTEGER") + .Annotation("Sqlite:Autoincrement", true) + .OldAnnotation("Sqlite:Autoincrement", true); + + migrationBuilder.AlterColumn( + name: "ProductoId", + table: "Lotes", + type: "int", + nullable: false, + oldClrType: typeof(int), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "Habilitado", + table: "Lotes", + type: "bit", + nullable: false, + oldClrType: typeof(bool), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "Fecha", + table: "Lotes", + type: "datetime2", + nullable: false, + oldClrType: typeof(DateTime), + oldType: "TEXT"); + + migrationBuilder.AlterColumn( + name: "Cantidad", + table: "Lotes", + type: "int", + nullable: false, + oldClrType: typeof(int), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "IdRemito", + table: "Lotes", + type: "int", + nullable: false, + oldClrType: typeof(int), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "Id", + table: "Lotes", + type: "int", + nullable: false, + oldClrType: typeof(int), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "Total", + table: "Facturas", + type: "float", + nullable: false, + oldClrType: typeof(double), + oldType: "REAL"); + + migrationBuilder.AlterColumn( + name: "IdCliente", + table: "Facturas", + type: "bigint", + nullable: false, + oldClrType: typeof(long), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "Fecha", + table: "Facturas", + type: "datetime2", + nullable: false, + oldClrType: typeof(DateTime), + oldType: "TEXT"); + + migrationBuilder.AlterColumn( + name: "ClienteCuit", + table: "Facturas", + type: "bigint", + nullable: false, + oldClrType: typeof(long), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "Id", + table: "Facturas", + type: "int", + nullable: false, + oldClrType: typeof(int), + oldType: "INTEGER") + .Annotation("Sqlite:Autoincrement", true) + .OldAnnotation("Sqlite:Autoincrement", true); + + migrationBuilder.AlterColumn( + name: "ProductoId", + table: "DetallesFacturas", + type: "int", + nullable: false, + oldClrType: typeof(int), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "Cantidad", + table: "DetallesFacturas", + type: "int", + nullable: false, + oldClrType: typeof(int), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "IdFactura", + table: "DetallesFacturas", + type: "int", + nullable: false, + oldClrType: typeof(int), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "Id", + table: "DetallesFacturas", + type: "int", + nullable: false, + oldClrType: typeof(int), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "ProductoId", + table: "DetallePresupuestos", + type: "int", + nullable: false, + oldClrType: typeof(int), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "MontoCUPropuesto", + table: "DetallePresupuestos", + type: "float", + nullable: false, + oldClrType: typeof(double), + oldType: "REAL"); + + migrationBuilder.AlterColumn( + name: "Cantidad", + table: "DetallePresupuestos", + type: "int", + nullable: false, + oldClrType: typeof(int), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "IdPresupuesto", + table: "DetallePresupuestos", + type: "int", + nullable: false, + oldClrType: typeof(int), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "Id", + table: "DetallePresupuestos", + type: "int", + nullable: false, + oldClrType: typeof(int), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "ProductoId", + table: "DetalleOrdenDeCompras", + type: "int", + nullable: false, + oldClrType: typeof(int), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "MontoCU", + table: "DetalleOrdenDeCompras", + type: "float", + nullable: false, + oldClrType: typeof(double), + oldType: "REAL"); + + migrationBuilder.AlterColumn( + name: "IdPresupuesto", + table: "DetalleOrdenDeCompras", + type: "int", + nullable: false, + oldClrType: typeof(int), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "Cantidad", + table: "DetalleOrdenDeCompras", + type: "int", + nullable: false, + oldClrType: typeof(int), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "IdOrdenDeCompra", + table: "DetalleOrdenDeCompras", + type: "int", + nullable: false, + oldClrType: typeof(int), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "Id", + table: "DetalleOrdenDeCompras", + type: "int", + nullable: false, + oldClrType: typeof(int), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "Nombre", + table: "Clientes", + type: "nvarchar(30)", + maxLength: 30, + nullable: false, + oldClrType: typeof(string), + oldType: "TEXT", + oldMaxLength: 30); + + migrationBuilder.AlterColumn( + name: "Habilitado", + table: "Clientes", + type: "bit", + nullable: false, + defaultValue: true, + oldClrType: typeof(bool), + oldType: "INTEGER", + oldDefaultValue: true); + + migrationBuilder.AlterColumn( + name: "Direccion", + table: "Clientes", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "TEXT", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "Correo", + table: "Clientes", + type: "nvarchar(150)", + maxLength: 150, + nullable: false, + oldClrType: typeof(string), + oldType: "TEXT", + oldMaxLength: 150); + + migrationBuilder.AlterColumn( + name: "Apellido", + table: "Clientes", + type: "nvarchar(30)", + maxLength: 30, + nullable: false, + oldClrType: typeof(string), + oldType: "TEXT", + oldMaxLength: 30); + + migrationBuilder.AlterColumn( + name: "Cuit", + table: "Clientes", + type: "bigint", + nullable: false, + oldClrType: typeof(long), + oldType: "INTEGER"); + + migrationBuilder.AlterColumn( + name: "Descripcion", + table: "Categoria", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "TEXT", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "Id", + table: "Categoria", + type: "int", + nullable: false, + oldClrType: typeof(int), + oldType: "INTEGER") + .Annotation("Sqlite:Autoincrement", true) + .OldAnnotation("Sqlite:Autoincrement", true); + } + } +} diff --git a/Modelo/Migrations/ContextModelSnapshot.cs b/Modelo/.Migrations_old/ContextModelSnapshot.cs similarity index 75% rename from Modelo/Migrations/ContextModelSnapshot.cs rename to Modelo/.Migrations_old/ContextModelSnapshot.cs index 703d6c3..3b580d3 100644 --- a/Modelo/Migrations/ContextModelSnapshot.cs +++ b/Modelo/.Migrations_old/ContextModelSnapshot.cs @@ -2,7 +2,6 @@ using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Modelo; @@ -16,24 +15,18 @@ namespace Modelo.Migrations protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.8") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); + modelBuilder.HasAnnotation("ProductVersion", "8.0.8"); modelBuilder.Entity("Entidades.Categoria", b => { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + .HasColumnType("INTEGER"); b.Property("Descripcion") .IsRequired() .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasColumnType("TEXT"); b.HasKey("Id"); @@ -43,32 +36,32 @@ namespace Modelo.Migrations modelBuilder.Entity("Entidades.Cliente", b => { b.Property("Cuit") - .HasColumnType("bigint"); + .HasColumnType("INTEGER"); b.Property("Apellido") .IsRequired() .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); + .HasColumnType("TEXT"); b.Property("Correo") .IsRequired() .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); + .HasColumnType("TEXT"); b.Property("Direccion") .IsRequired() .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasColumnType("TEXT"); b.Property("Habilitado") .ValueGeneratedOnAdd() - .HasColumnType("bit") + .HasColumnType("INTEGER") .HasDefaultValue(true); b.Property("Nombre") .IsRequired() .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); + .HasColumnType("TEXT"); b.HasKey("Cuit"); @@ -78,16 +71,16 @@ namespace Modelo.Migrations modelBuilder.Entity("Entidades.DetalleFactura", b => { b.Property("Id") - .HasColumnType("int"); + .HasColumnType("INTEGER"); b.Property("IdFactura") - .HasColumnType("int"); + .HasColumnType("INTEGER"); b.Property("Cantidad") - .HasColumnType("int"); + .HasColumnType("INTEGER"); b.Property("ProductoId") - .HasColumnType("int"); + .HasColumnType("INTEGER"); b.HasKey("Id", "IdFactura"); @@ -101,22 +94,22 @@ namespace Modelo.Migrations modelBuilder.Entity("Entidades.DetalleOrdenDeCompra", b => { b.Property("Id") - .HasColumnType("int"); + .HasColumnType("INTEGER"); b.Property("IdOrdenDeCompra") - .HasColumnType("int"); + .HasColumnType("INTEGER"); b.Property("Cantidad") - .HasColumnType("int"); + .HasColumnType("INTEGER"); b.Property("IdPresupuesto") - .HasColumnType("int"); + .HasColumnType("INTEGER"); b.Property("MontoCU") - .HasColumnType("float"); + .HasColumnType("REAL"); b.Property("ProductoId") - .HasColumnType("int"); + .HasColumnType("INTEGER"); b.HasKey("Id", "IdOrdenDeCompra"); @@ -124,25 +117,25 @@ namespace Modelo.Migrations b.HasIndex("ProductoId"); - b.ToTable("DetalleOrdenDeCompras", (string)null); + b.ToTable("DetalleOrdenDeCompras"); }); modelBuilder.Entity("Entidades.DetallePresupuesto", b => { b.Property("Id") - .HasColumnType("int"); + .HasColumnType("INTEGER"); b.Property("IdPresupuesto") - .HasColumnType("int"); + .HasColumnType("INTEGER"); b.Property("Cantidad") - .HasColumnType("int"); + .HasColumnType("INTEGER"); b.Property("MontoCUPropuesto") - .HasColumnType("float"); + .HasColumnType("REAL"); b.Property("ProductoId") - .HasColumnType("int"); + .HasColumnType("INTEGER"); b.HasKey("Id", "IdPresupuesto"); @@ -150,28 +143,26 @@ namespace Modelo.Migrations b.HasIndex("ProductoId"); - b.ToTable("DetallePresupuestos", (string)null); + b.ToTable("DetallePresupuestos"); }); modelBuilder.Entity("Entidades.Factura", b => { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + .HasColumnType("INTEGER"); b.Property("ClienteCuit") - .HasColumnType("bigint"); + .HasColumnType("INTEGER"); b.Property("Fecha") - .HasColumnType("datetime2"); + .HasColumnType("TEXT"); b.Property("IdCliente") - .HasColumnType("bigint"); + .HasColumnType("INTEGER"); b.Property("Total") - .HasColumnType("float"); + .HasColumnType("REAL"); b.HasKey("Id"); @@ -183,22 +174,22 @@ namespace Modelo.Migrations modelBuilder.Entity("Entidades.Lote", b => { b.Property("Id") - .HasColumnType("int"); + .HasColumnType("INTEGER"); b.Property("IdRemito") - .HasColumnType("int"); + .HasColumnType("INTEGER"); b.Property("Cantidad") - .HasColumnType("int"); + .HasColumnType("INTEGER"); b.Property("Fecha") - .HasColumnType("datetime2"); + .HasColumnType("TEXT"); b.Property("Habilitado") - .HasColumnType("bit"); + .HasColumnType("INTEGER"); b.Property("ProductoId") - .HasColumnType("int"); + .HasColumnType("INTEGER"); b.HasKey("Id", "IdRemito"); @@ -206,95 +197,89 @@ namespace Modelo.Migrations b.HasIndex("ProductoId"); - b.ToTable("Lotes", (string)null); + b.ToTable("Lotes"); }); modelBuilder.Entity("Entidades.OrdenDeCompra", b => { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + .HasColumnType("INTEGER"); b.Property("Entregado") - .HasColumnType("bit"); + .HasColumnType("INTEGER"); b.Property("IdProveedor") - .HasColumnType("bigint"); + .HasColumnType("INTEGER"); b.Property("ProveedorCuit") - .HasColumnType("bigint"); + .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("ProveedorCuit"); - b.ToTable("OrdenDeCompras", (string)null); + b.ToTable("OrdenDeCompras"); }); modelBuilder.Entity("Entidades.Presupuesto", b => { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + .HasColumnType("INTEGER"); b.Property("Aceptado") - .HasColumnType("bit"); + .HasColumnType("INTEGER"); b.Property("Fecha") - .HasColumnType("datetime2"); + .HasColumnType("TEXT"); b.Property("Habilitado") - .HasColumnType("bit"); + .HasColumnType("INTEGER"); b.Property("IdProveedor") - .HasColumnType("bigint"); + .HasColumnType("INTEGER"); b.Property("ProveedorCuit") - .HasColumnType("bigint"); + .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("ProveedorCuit"); - b.ToTable("Presupuestos", (string)null); + b.ToTable("Presupuestos"); }); modelBuilder.Entity("Entidades.Producto", b => { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + .HasColumnType("INTEGER"); b.Property("Discriminator") .IsRequired() .HasMaxLength(21) - .HasColumnType("nvarchar(21)"); + .HasColumnType("TEXT"); b.Property("EsPerecedero") - .HasColumnType("bit"); + .HasColumnType("INTEGER"); b.Property("Habilitado") .ValueGeneratedOnAdd() - .HasColumnType("bit") + .HasColumnType("INTEGER") .HasDefaultValue(true); b.Property("Nombre") .IsRequired() .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); + .HasColumnType("TEXT"); b.Property("Precio") .HasColumnType("float"); b.HasKey("Id"); - b.ToTable("Producto", (string)null); + b.ToTable("Producto"); b.HasDiscriminator().HasValue("Producto"); @@ -304,82 +289,77 @@ namespace Modelo.Migrations modelBuilder.Entity("Entidades.Proveedor", b => { b.Property("Cuit") - .HasColumnType("bigint"); + .HasColumnType("INTEGER"); b.Property("Direccion") .IsRequired() .HasMaxLength(60) - .HasColumnType("nvarchar(60)"); + .HasColumnType("TEXT"); b.Property("Habilitado") .ValueGeneratedOnAdd() - .HasColumnType("bit") + .HasColumnType("INTEGER") .HasDefaultValue(true); b.Property("Nombre") .IsRequired() .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); + .HasColumnType("TEXT"); b.Property("RazonSocial") .IsRequired() .HasMaxLength(60) - .HasColumnType("nvarchar(60)"); + .HasColumnType("TEXT"); b.HasKey("Cuit"); - b.ToTable("Proveedores", (string)null); + b.ToTable("Proveedores"); }); modelBuilder.Entity("Entidades.Remito", b => { b.Property("Id") .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); - - b.Property("IdProveedor") - .HasColumnType("int"); + .HasColumnType("INTEGER"); b.Property("ProveedorCuit") - .HasColumnType("bigint"); + .HasColumnType("INTEGER"); b.HasKey("Id"); b.HasIndex("ProveedorCuit"); - b.ToTable("Remitos", (string)null); + b.ToTable("Remitos"); }); modelBuilder.Entity("ProductoCategoria", b => { b.Property("CategoriaId") - .HasColumnType("int"); + .HasColumnType("INTEGER"); b.Property("ProductoId") - .HasColumnType("int"); + .HasColumnType("INTEGER"); b.HasKey("CategoriaId", "ProductoId"); b.HasIndex("ProductoId"); - b.ToTable("ProductoCategoria", (string)null); + b.ToTable("ProductoCategoria"); }); modelBuilder.Entity("ProductoProveedor", b => { b.Property("ProveedorId") - .HasColumnType("bigint"); + .HasColumnType("INTEGER"); b.Property("ProductoId") - .HasColumnType("int"); + .HasColumnType("INTEGER"); b.HasKey("ProveedorId", "ProductoId"); b.HasIndex("ProductoId"); - b.ToTable("ProductoProveedor", (string)null); + b.ToTable("ProductoProveedor"); }); modelBuilder.Entity("Entidades.ProductoNoPercedero", b => @@ -388,7 +368,7 @@ namespace Modelo.Migrations b.Property("TipoDeEnvase") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasColumnType("TEXT"); b.HasDiscriminator().HasValue("ProductoNoPercedero"); }); @@ -398,10 +378,10 @@ namespace Modelo.Migrations b.HasBaseType("Entidades.Producto"); b.Property("MesesHastaConsumoPreferente") - .HasColumnType("int"); + .HasColumnType("INTEGER"); b.Property("MesesHastaVencimiento") - .HasColumnType("int"); + .HasColumnType("INTEGER"); b.HasDiscriminator().HasValue("ProductoPercedero"); }); @@ -426,7 +406,7 @@ namespace Modelo.Migrations modelBuilder.Entity("Entidades.DetalleOrdenDeCompra", b => { b.HasOne("Entidades.OrdenDeCompra", null) - .WithMany("Detalles") + .WithMany("detalles") .HasForeignKey("IdOrdenDeCompra") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); @@ -555,7 +535,7 @@ namespace Modelo.Migrations modelBuilder.Entity("Entidades.OrdenDeCompra", b => { - b.Navigation("Detalles"); + b.Navigation("detalles"); }); modelBuilder.Entity("Entidades.Presupuesto", b => diff --git a/Modelo/Context.cs b/Modelo/Context.cs index 7c1d5b7..3074ad2 100644 --- a/Modelo/Context.cs +++ b/Modelo/Context.cs @@ -18,10 +18,16 @@ public class Context : Microsoft.EntityFrameworkCore.DbContext public DbSet ProductoNoPercederos { get; set; } public DbSet Proveedores { get; set; } public DbSet Remitos { get; set; } - + protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) - { // Esto de poner credenciales sueltas está mal - optionsBuilder.UseSqlServer(@"Server=fedesrv.ddns.net,1433;Database=ControlStockDAS;User Id=ProyectoDas;Password=A?5?~*=Gux'}JT0me,z5Cf^f(s'-gy[G#-jt%b&uHe+/,$Gl>qkXl-c[@&e(\.V?[3)\w|aMH+^67x;Trusted_Connection=False;Encrypt=False;Connection Timeout=5;"); + { + var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); + + // Definir la ruta completa del archivo SQLite en el directorio del usuario + var dbPath = System.IO.Path.Combine(homeDirectory, "app.db"); + + // Configurar SQLite con la ruta a la base de datos en el directorio del usuario + optionsBuilder.UseSqlite($"Data Source={dbPath}"); } protected override void OnModelCreating(ModelBuilder modelBuilder) @@ -128,13 +134,15 @@ public class Context : Microsoft.EntityFrameworkCore.DbContext j => j.HasOne().WithMany().HasForeignKey("CategoriaId"), j => j.HasOne().WithMany().HasForeignKey("ProductoId"), j => j.HasKey("CategoriaId", "ProductoId")); - }); + }); // Mapeo para ProductoNoPercedero modelBuilder.Entity(entity => { entity.Property(e => e.TipoDeEnvase) .HasConversion(); + entity.Property(p => p.TipoDeEnvase) + .HasColumnType("TEXT"); }); modelBuilder.Entity(entity => @@ -164,7 +172,7 @@ public class Context : Microsoft.EntityFrameworkCore.DbContext .HasKey(df => new { df.Id, df.IdOrdenDeCompra }); modelBuilder.Entity() - .HasKey(x => x.Id); + .HasKey(x => x.Id); modelBuilder.Entity() .HasMany(x => x.detalles) diff --git a/Modelo/Migrations/20240908162625_mepaseasqlite.cs b/Modelo/Migrations/20240908162625_mepaseasqlite.cs new file mode 100644 index 0000000..0c0e86f --- /dev/null +++ b/Modelo/Migrations/20240908162625_mepaseasqlite.cs @@ -0,0 +1,437 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace Modelo.Migrations +{ + /// + public partial class mepaseasqlite : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "Categoria", + columns: table => new + { + Id = table.Column(type: "INTEGER", nullable: false) + .Annotation("Sqlite:Autoincrement", true), + Descripcion = table.Column(type: "TEXT", maxLength: 50, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Categoria", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Clientes", + columns: table => new + { + Cuit = table.Column(type: "INTEGER", nullable: false), + Nombre = table.Column(type: "TEXT", maxLength: 30, nullable: false), + Apellido = table.Column(type: "TEXT", maxLength: 30, nullable: false), + Direccion = table.Column(type: "TEXT", maxLength: 50, nullable: false), + Correo = table.Column(type: "TEXT", maxLength: 150, nullable: false), + Habilitado = table.Column(type: "INTEGER", nullable: false, defaultValue: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Clientes", x => x.Cuit); + }); + + migrationBuilder.CreateTable( + name: "Producto", + columns: table => new + { + Id = table.Column(type: "INTEGER", nullable: false) + .Annotation("Sqlite:Autoincrement", true), + Nombre = table.Column(type: "TEXT", maxLength: 30, nullable: false), + Precio = table.Column(type: "float", nullable: false), + Habilitado = table.Column(type: "INTEGER", nullable: false, defaultValue: true), + EsPerecedero = table.Column(type: "INTEGER", nullable: false), + Discriminator = table.Column(type: "TEXT", maxLength: 21, nullable: false), + TipoDeEnvase = table.Column(type: "TEXT", nullable: true), + MesesHastaConsumoPreferente = table.Column(type: "INTEGER", nullable: true), + MesesHastaVencimiento = table.Column(type: "INTEGER", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Producto", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Proveedores", + columns: table => new + { + Cuit = table.Column(type: "INTEGER", nullable: false), + Nombre = table.Column(type: "TEXT", maxLength: 30, nullable: false), + RazonSocial = table.Column(type: "TEXT", maxLength: 60, nullable: false), + Direccion = table.Column(type: "TEXT", maxLength: 60, nullable: false), + Habilitado = table.Column(type: "INTEGER", nullable: false, defaultValue: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Proveedores", x => x.Cuit); + }); + + migrationBuilder.CreateTable( + name: "Facturas", + columns: table => new + { + Id = table.Column(type: "INTEGER", nullable: false) + .Annotation("Sqlite:Autoincrement", true), + Total = table.Column(type: "REAL", nullable: false), + Fecha = table.Column(type: "TEXT", nullable: false), + IdCliente = table.Column(type: "INTEGER", nullable: false), + ClienteCuit = table.Column(type: "INTEGER", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Facturas", x => x.Id); + table.ForeignKey( + name: "FK_Facturas_Clientes_ClienteCuit", + column: x => x.ClienteCuit, + principalTable: "Clientes", + principalColumn: "Cuit", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "ProductoCategoria", + columns: table => new + { + CategoriaId = table.Column(type: "INTEGER", nullable: false), + ProductoId = table.Column(type: "INTEGER", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_ProductoCategoria", x => new { x.CategoriaId, x.ProductoId }); + table.ForeignKey( + name: "FK_ProductoCategoria_Categoria_CategoriaId", + column: x => x.CategoriaId, + principalTable: "Categoria", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_ProductoCategoria_Producto_ProductoId", + column: x => x.ProductoId, + principalTable: "Producto", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "OrdenDeCompras", + columns: table => new + { + Id = table.Column(type: "INTEGER", nullable: false) + .Annotation("Sqlite:Autoincrement", true), + ProveedorCuit = table.Column(type: "INTEGER", nullable: false), + IdProveedor = table.Column(type: "INTEGER", nullable: false), + Entregado = table.Column(type: "INTEGER", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_OrdenDeCompras", x => x.Id); + table.ForeignKey( + name: "FK_OrdenDeCompras_Proveedores_ProveedorCuit", + column: x => x.ProveedorCuit, + principalTable: "Proveedores", + principalColumn: "Cuit", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Presupuestos", + columns: table => new + { + Id = table.Column(type: "INTEGER", nullable: false) + .Annotation("Sqlite:Autoincrement", true), + Fecha = table.Column(type: "TEXT", nullable: false), + Habilitado = table.Column(type: "INTEGER", nullable: false), + Aceptado = table.Column(type: "INTEGER", nullable: false), + ProveedorCuit = table.Column(type: "INTEGER", nullable: false), + IdProveedor = table.Column(type: "INTEGER", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Presupuestos", x => x.Id); + table.ForeignKey( + name: "FK_Presupuestos_Proveedores_ProveedorCuit", + column: x => x.ProveedorCuit, + principalTable: "Proveedores", + principalColumn: "Cuit", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "ProductoProveedor", + columns: table => new + { + ProveedorId = table.Column(type: "INTEGER", nullable: false), + ProductoId = table.Column(type: "INTEGER", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_ProductoProveedor", x => new { x.ProveedorId, x.ProductoId }); + table.ForeignKey( + name: "FK_ProductoProveedor_Producto_ProductoId", + column: x => x.ProductoId, + principalTable: "Producto", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_ProductoProveedor_Proveedores_ProveedorId", + column: x => x.ProveedorId, + principalTable: "Proveedores", + principalColumn: "Cuit", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Remitos", + columns: table => new + { + Id = table.Column(type: "INTEGER", nullable: false) + .Annotation("Sqlite:Autoincrement", true), + ProveedorCuit = table.Column(type: "INTEGER", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Remitos", x => x.Id); + table.ForeignKey( + name: "FK_Remitos_Proveedores_ProveedorCuit", + column: x => x.ProveedorCuit, + principalTable: "Proveedores", + principalColumn: "Cuit", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "DetallesFacturas", + columns: table => new + { + Id = table.Column(type: "INTEGER", nullable: false), + IdFactura = table.Column(type: "INTEGER", nullable: false), + Cantidad = table.Column(type: "INTEGER", nullable: false), + ProductoId = table.Column(type: "INTEGER", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_DetallesFacturas", x => new { x.Id, x.IdFactura }); + table.ForeignKey( + name: "FK_DetallesFacturas_Facturas_IdFactura", + column: x => x.IdFactura, + principalTable: "Facturas", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_DetallesFacturas_Producto_ProductoId", + column: x => x.ProductoId, + principalTable: "Producto", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "DetalleOrdenDeCompras", + columns: table => new + { + Id = table.Column(type: "INTEGER", nullable: false), + IdOrdenDeCompra = table.Column(type: "INTEGER", nullable: false), + MontoCU = table.Column(type: "REAL", nullable: false), + IdPresupuesto = table.Column(type: "INTEGER", nullable: false), + Cantidad = table.Column(type: "INTEGER", nullable: false), + ProductoId = table.Column(type: "INTEGER", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_DetalleOrdenDeCompras", x => new { x.Id, x.IdOrdenDeCompra }); + table.ForeignKey( + name: "FK_DetalleOrdenDeCompras_OrdenDeCompras_IdOrdenDeCompra", + column: x => x.IdOrdenDeCompra, + principalTable: "OrdenDeCompras", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_DetalleOrdenDeCompras_Producto_ProductoId", + column: x => x.ProductoId, + principalTable: "Producto", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "DetallePresupuestos", + columns: table => new + { + Id = table.Column(type: "INTEGER", nullable: false), + IdPresupuesto = table.Column(type: "INTEGER", nullable: false), + MontoCUPropuesto = table.Column(type: "REAL", nullable: false), + Cantidad = table.Column(type: "INTEGER", nullable: false), + ProductoId = table.Column(type: "INTEGER", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_DetallePresupuestos", x => new { x.Id, x.IdPresupuesto }); + table.ForeignKey( + name: "FK_DetallePresupuestos_Presupuestos_IdPresupuesto", + column: x => x.IdPresupuesto, + principalTable: "Presupuestos", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_DetallePresupuestos_Producto_ProductoId", + column: x => x.ProductoId, + principalTable: "Producto", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Lotes", + columns: table => new + { + Id = table.Column(type: "INTEGER", nullable: false), + IdRemito = table.Column(type: "INTEGER", nullable: false), + Fecha = table.Column(type: "TEXT", nullable: false), + Habilitado = table.Column(type: "INTEGER", nullable: false), + Cantidad = table.Column(type: "INTEGER", nullable: false), + ProductoId = table.Column(type: "INTEGER", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Lotes", x => new { x.Id, x.IdRemito }); + table.ForeignKey( + name: "FK_Lotes_Producto_ProductoId", + column: x => x.ProductoId, + principalTable: "Producto", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_Lotes_Remitos_IdRemito", + column: x => x.IdRemito, + principalTable: "Remitos", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateIndex( + name: "IX_DetalleOrdenDeCompras_IdOrdenDeCompra", + table: "DetalleOrdenDeCompras", + column: "IdOrdenDeCompra"); + + migrationBuilder.CreateIndex( + name: "IX_DetalleOrdenDeCompras_ProductoId", + table: "DetalleOrdenDeCompras", + column: "ProductoId"); + + migrationBuilder.CreateIndex( + name: "IX_DetallePresupuestos_IdPresupuesto", + table: "DetallePresupuestos", + column: "IdPresupuesto"); + + migrationBuilder.CreateIndex( + name: "IX_DetallePresupuestos_ProductoId", + table: "DetallePresupuestos", + column: "ProductoId"); + + migrationBuilder.CreateIndex( + name: "IX_DetallesFacturas_IdFactura", + table: "DetallesFacturas", + column: "IdFactura"); + + migrationBuilder.CreateIndex( + name: "IX_DetallesFacturas_ProductoId", + table: "DetallesFacturas", + column: "ProductoId"); + + migrationBuilder.CreateIndex( + name: "IX_Facturas_ClienteCuit", + table: "Facturas", + column: "ClienteCuit"); + + migrationBuilder.CreateIndex( + name: "IX_Lotes_IdRemito", + table: "Lotes", + column: "IdRemito"); + + migrationBuilder.CreateIndex( + name: "IX_Lotes_ProductoId", + table: "Lotes", + column: "ProductoId"); + + migrationBuilder.CreateIndex( + name: "IX_OrdenDeCompras_ProveedorCuit", + table: "OrdenDeCompras", + column: "ProveedorCuit"); + + migrationBuilder.CreateIndex( + name: "IX_Presupuestos_ProveedorCuit", + table: "Presupuestos", + column: "ProveedorCuit"); + + migrationBuilder.CreateIndex( + name: "IX_ProductoCategoria_ProductoId", + table: "ProductoCategoria", + column: "ProductoId"); + + migrationBuilder.CreateIndex( + name: "IX_ProductoProveedor_ProductoId", + table: "ProductoProveedor", + column: "ProductoId"); + + migrationBuilder.CreateIndex( + name: "IX_Remitos_ProveedorCuit", + table: "Remitos", + column: "ProveedorCuit"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "DetalleOrdenDeCompras"); + + migrationBuilder.DropTable( + name: "DetallePresupuestos"); + + migrationBuilder.DropTable( + name: "DetallesFacturas"); + + migrationBuilder.DropTable( + name: "Lotes"); + + migrationBuilder.DropTable( + name: "ProductoCategoria"); + + migrationBuilder.DropTable( + name: "ProductoProveedor"); + + migrationBuilder.DropTable( + name: "OrdenDeCompras"); + + migrationBuilder.DropTable( + name: "Presupuestos"); + + migrationBuilder.DropTable( + name: "Facturas"); + + migrationBuilder.DropTable( + name: "Remitos"); + + migrationBuilder.DropTable( + name: "Categoria"); + + migrationBuilder.DropTable( + name: "Producto"); + + migrationBuilder.DropTable( + name: "Clientes"); + + migrationBuilder.DropTable( + name: "Proveedores"); + } + } +} diff --git a/Modelo/Migrations/20240908172708_Cambie_nombre_de_key2.Designer.cs b/Modelo/Migrations/20240908172708_Cambie_nombre_de_key2.Designer.cs new file mode 100644 index 0000000..4651bf9 --- /dev/null +++ b/Modelo/Migrations/20240908172708_Cambie_nombre_de_key2.Designer.cs @@ -0,0 +1,556 @@ +// +using System; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using Modelo; + +#nullable disable + +namespace Modelo.Migrations +{ + [DbContext(typeof(Context))] + [Migration("20240908172708_Cambie_nombre_de_key2")] + partial class Cambie_nombre_de_key2 + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder.HasAnnotation("ProductVersion", "8.0.8"); + + modelBuilder.Entity("Entidades.Categoria", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("INTEGER"); + + b.Property("Descripcion") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("TEXT"); + + b.HasKey("Id"); + + b.ToTable("Categoria", (string)null); + }); + + modelBuilder.Entity("Entidades.Cliente", b => + { + b.Property("Cuit") + .HasColumnType("INTEGER"); + + b.Property("Apellido") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("TEXT"); + + b.Property("Correo") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("TEXT"); + + b.Property("Direccion") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("TEXT"); + + b.Property("Habilitado") + .ValueGeneratedOnAdd() + .HasColumnType("INTEGER") + .HasDefaultValue(true); + + b.Property("Nombre") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("TEXT"); + + b.HasKey("Cuit"); + + b.ToTable("Clientes", (string)null); + }); + + modelBuilder.Entity("Entidades.DetalleFactura", b => + { + b.Property("Id") + .HasColumnType("INTEGER"); + + b.Property("IdFactura") + .HasColumnType("INTEGER"); + + b.Property("Cantidad") + .HasColumnType("INTEGER"); + + b.Property("ProductoId") + .HasColumnType("INTEGER"); + + b.HasKey("Id", "IdFactura"); + + b.HasIndex("IdFactura"); + + b.HasIndex("ProductoId"); + + b.ToTable("DetallesFacturas", (string)null); + }); + + modelBuilder.Entity("Entidades.DetalleOrdenDeCompra", b => + { + b.Property("Id") + .HasColumnType("INTEGER"); + + b.Property("IdOrdenDeCompra") + .HasColumnType("INTEGER"); + + b.Property("Cantidad") + .HasColumnType("INTEGER"); + + b.Property("IdPresupuesto") + .HasColumnType("INTEGER"); + + b.Property("MontoCU") + .HasColumnType("REAL"); + + b.Property("ProductoId") + .HasColumnType("INTEGER"); + + b.HasKey("Id", "IdOrdenDeCompra"); + + b.HasIndex("IdOrdenDeCompra"); + + b.HasIndex("ProductoId"); + + b.ToTable("DetalleOrdenDeCompras"); + }); + + modelBuilder.Entity("Entidades.DetallePresupuesto", b => + { + b.Property("Id") + .HasColumnType("INTEGER"); + + b.Property("IdPresupuesto") + .HasColumnType("INTEGER"); + + b.Property("Cantidad") + .HasColumnType("INTEGER"); + + b.Property("MontoCUPropuesto") + .HasColumnType("REAL"); + + b.Property("ProductoId") + .HasColumnType("INTEGER"); + + b.HasKey("Id", "IdPresupuesto"); + + b.HasIndex("IdPresupuesto"); + + b.HasIndex("ProductoId"); + + b.ToTable("DetallePresupuestos"); + }); + + modelBuilder.Entity("Entidades.Factura", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("INTEGER"); + + b.Property("ClienteCuit") + .HasColumnType("INTEGER"); + + b.Property("Fecha") + .HasColumnType("TEXT"); + + b.Property("IdCliente") + .HasColumnType("INTEGER"); + + b.Property("Total") + .HasColumnType("REAL"); + + b.HasKey("Id"); + + b.HasIndex("ClienteCuit"); + + b.ToTable("Facturas", (string)null); + }); + + modelBuilder.Entity("Entidades.Lote", b => + { + b.Property("Id") + .HasColumnType("INTEGER"); + + b.Property("IdRemito") + .HasColumnType("INTEGER"); + + b.Property("Cantidad") + .HasColumnType("INTEGER"); + + b.Property("Fecha") + .HasColumnType("TEXT"); + + b.Property("Habilitado") + .HasColumnType("INTEGER"); + + b.Property("ProductoId") + .HasColumnType("INTEGER"); + + b.HasKey("Id", "IdRemito"); + + b.HasIndex("IdRemito"); + + b.HasIndex("ProductoId"); + + b.ToTable("Lotes"); + }); + + modelBuilder.Entity("Entidades.OrdenDeCompra", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("INTEGER"); + + b.Property("Entregado") + .HasColumnType("INTEGER"); + + b.Property("IdProveedor") + .HasColumnType("INTEGER"); + + b.Property("ProveedorCuit") + .HasColumnType("INTEGER"); + + b.HasKey("Id"); + + b.HasIndex("ProveedorCuit"); + + b.ToTable("OrdenDeCompras"); + }); + + modelBuilder.Entity("Entidades.Presupuesto", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("INTEGER"); + + b.Property("Aceptado") + .HasColumnType("INTEGER"); + + b.Property("Fecha") + .HasColumnType("TEXT"); + + b.Property("Habilitado") + .HasColumnType("INTEGER"); + + b.Property("IdProveedor") + .HasColumnType("INTEGER"); + + b.Property("ProveedorCuit") + .HasColumnType("INTEGER"); + + b.HasKey("Id"); + + b.HasIndex("ProveedorCuit"); + + b.ToTable("Presupuestos"); + }); + + modelBuilder.Entity("Entidades.Producto", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("INTEGER"); + + b.Property("Discriminator") + .IsRequired() + .HasMaxLength(21) + .HasColumnType("TEXT"); + + b.Property("EsPerecedero") + .HasColumnType("INTEGER"); + + b.Property("Habilitado") + .ValueGeneratedOnAdd() + .HasColumnType("INTEGER") + .HasDefaultValue(true); + + b.Property("Nombre") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("TEXT"); + + b.Property("Precio") + .HasColumnType("float"); + + b.HasKey("Id"); + + b.ToTable("Producto"); + + b.HasDiscriminator().HasValue("Producto"); + + b.UseTphMappingStrategy(); + }); + + modelBuilder.Entity("Entidades.Proveedor", b => + { + b.Property("Cuit") + .HasColumnType("INTEGER"); + + b.Property("Direccion") + .IsRequired() + .HasMaxLength(60) + .HasColumnType("TEXT"); + + b.Property("Habilitado") + .ValueGeneratedOnAdd() + .HasColumnType("INTEGER") + .HasDefaultValue(true); + + b.Property("Nombre") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("TEXT"); + + b.Property("RazonSocial") + .IsRequired() + .HasMaxLength(60) + .HasColumnType("TEXT"); + + b.HasKey("Cuit"); + + b.ToTable("Proveedores"); + }); + + modelBuilder.Entity("Entidades.Remito", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("INTEGER"); + + b.Property("ProveedorCuit") + .HasColumnType("INTEGER"); + + b.HasKey("Id"); + + b.HasIndex("ProveedorCuit"); + + b.ToTable("Remitos"); + }); + + modelBuilder.Entity("ProductoCategoria", b => + { + b.Property("CategoriaId") + .HasColumnType("INTEGER"); + + b.Property("ProductoId") + .HasColumnType("INTEGER"); + + b.HasKey("CategoriaId", "ProductoId"); + + b.HasIndex("ProductoId"); + + b.ToTable("ProductoCategoria"); + }); + + modelBuilder.Entity("ProductoProveedor", b => + { + b.Property("ProveedorId") + .HasColumnType("INTEGER"); + + b.Property("ProductoId") + .HasColumnType("INTEGER"); + + b.HasKey("ProveedorId", "ProductoId"); + + b.HasIndex("ProductoId"); + + b.ToTable("ProductoProveedor"); + }); + + modelBuilder.Entity("Entidades.ProductoNoPercedero", b => + { + b.HasBaseType("Entidades.Producto"); + + b.Property("TipoDeEnvase") + .IsRequired() + .HasColumnType("TEXT"); + + b.HasDiscriminator().HasValue("ProductoNoPercedero"); + }); + + modelBuilder.Entity("Entidades.ProductoPercedero", b => + { + b.HasBaseType("Entidades.Producto"); + + b.Property("MesesHastaConsumoPreferente") + .HasColumnType("INTEGER"); + + b.Property("MesesHastaVencimiento") + .HasColumnType("INTEGER"); + + b.HasDiscriminator().HasValue("ProductoPercedero"); + }); + + modelBuilder.Entity("Entidades.DetalleFactura", b => + { + b.HasOne("Entidades.Factura", null) + .WithMany("Detalles") + .HasForeignKey("IdFactura") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("Entidades.Producto", "Producto") + .WithMany() + .HasForeignKey("ProductoId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Producto"); + }); + + modelBuilder.Entity("Entidades.DetalleOrdenDeCompra", b => + { + b.HasOne("Entidades.OrdenDeCompra", null) + .WithMany("detalles") + .HasForeignKey("IdOrdenDeCompra") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("Entidades.Producto", "Producto") + .WithMany() + .HasForeignKey("ProductoId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Producto"); + }); + + modelBuilder.Entity("Entidades.DetallePresupuesto", b => + { + b.HasOne("Entidades.Presupuesto", null) + .WithMany("detalles") + .HasForeignKey("IdPresupuesto") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("Entidades.Producto", "Producto") + .WithMany() + .HasForeignKey("ProductoId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Producto"); + }); + + modelBuilder.Entity("Entidades.Factura", b => + { + b.HasOne("Entidades.Cliente", "Cliente") + .WithMany() + .HasForeignKey("ClienteCuit") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Cliente"); + }); + + modelBuilder.Entity("Entidades.Lote", b => + { + b.HasOne("Entidades.Remito", null) + .WithMany("Lotes") + .HasForeignKey("IdRemito") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("Entidades.Producto", "Producto") + .WithMany() + .HasForeignKey("ProductoId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Producto"); + }); + + modelBuilder.Entity("Entidades.OrdenDeCompra", b => + { + b.HasOne("Entidades.Proveedor", "Proveedor") + .WithMany() + .HasForeignKey("ProveedorCuit") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Proveedor"); + }); + + modelBuilder.Entity("Entidades.Presupuesto", b => + { + b.HasOne("Entidades.Proveedor", "Proveedor") + .WithMany() + .HasForeignKey("ProveedorCuit") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Proveedor"); + }); + + modelBuilder.Entity("Entidades.Remito", b => + { + b.HasOne("Entidades.Proveedor", "Proveedor") + .WithMany() + .HasForeignKey("ProveedorCuit") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Proveedor"); + }); + + modelBuilder.Entity("ProductoCategoria", b => + { + b.HasOne("Entidades.Categoria", null) + .WithMany() + .HasForeignKey("CategoriaId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("Entidades.Producto", null) + .WithMany() + .HasForeignKey("ProductoId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("ProductoProveedor", b => + { + b.HasOne("Entidades.Producto", null) + .WithMany() + .HasForeignKey("ProductoId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("Entidades.Proveedor", null) + .WithMany() + .HasForeignKey("ProveedorId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Entidades.Factura", b => + { + b.Navigation("Detalles"); + }); + + modelBuilder.Entity("Entidades.OrdenDeCompra", b => + { + b.Navigation("detalles"); + }); + + modelBuilder.Entity("Entidades.Presupuesto", b => + { + b.Navigation("detalles"); + }); + + modelBuilder.Entity("Entidades.Remito", b => + { + b.Navigation("Lotes"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/Modelo/Migrations/20240908172708_Cambie_nombre_de_key2.cs b/Modelo/Migrations/20240908172708_Cambie_nombre_de_key2.cs new file mode 100644 index 0000000..b6f6370 --- /dev/null +++ b/Modelo/Migrations/20240908172708_Cambie_nombre_de_key2.cs @@ -0,0 +1,437 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace Modelo.Migrations +{ + /// + public partial class Cambie_nombre_de_key2 : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "Categoria", + columns: table => new + { + Id = table.Column(type: "INTEGER", nullable: false) + .Annotation("Sqlite:Autoincrement", true), + Descripcion = table.Column(type: "TEXT", maxLength: 50, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Categoria", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Clientes", + columns: table => new + { + Cuit = table.Column(type: "INTEGER", nullable: false), + Nombre = table.Column(type: "TEXT", maxLength: 30, nullable: false), + Apellido = table.Column(type: "TEXT", maxLength: 30, nullable: false), + Direccion = table.Column(type: "TEXT", maxLength: 50, nullable: false), + Correo = table.Column(type: "TEXT", maxLength: 150, nullable: false), + Habilitado = table.Column(type: "INTEGER", nullable: false, defaultValue: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Clientes", x => x.Cuit); + }); + + migrationBuilder.CreateTable( + name: "Producto", + columns: table => new + { + Id = table.Column(type: "INTEGER", nullable: false) + .Annotation("Sqlite:Autoincrement", true), + Nombre = table.Column(type: "TEXT", maxLength: 30, nullable: false), + Precio = table.Column(type: "float", nullable: false), + Habilitado = table.Column(type: "INTEGER", nullable: false, defaultValue: true), + EsPerecedero = table.Column(type: "INTEGER", nullable: false), + Discriminator = table.Column(type: "TEXT", maxLength: 21, nullable: false), + TipoDeEnvase = table.Column(type: "TEXT", nullable: true), + MesesHastaConsumoPreferente = table.Column(type: "INTEGER", nullable: true), + MesesHastaVencimiento = table.Column(type: "INTEGER", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Producto", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Proveedores", + columns: table => new + { + Cuit = table.Column(type: "INTEGER", nullable: false), + Nombre = table.Column(type: "TEXT", maxLength: 30, nullable: false), + RazonSocial = table.Column(type: "TEXT", maxLength: 60, nullable: false), + Direccion = table.Column(type: "TEXT", maxLength: 60, nullable: false), + Habilitado = table.Column(type: "INTEGER", nullable: false, defaultValue: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Proveedores", x => x.Cuit); + }); + + migrationBuilder.CreateTable( + name: "Facturas", + columns: table => new + { + Id = table.Column(type: "INTEGER", nullable: false) + .Annotation("Sqlite:Autoincrement", true), + Total = table.Column(type: "REAL", nullable: false), + Fecha = table.Column(type: "TEXT", nullable: false), + IdCliente = table.Column(type: "INTEGER", nullable: false), + ClienteCuit = table.Column(type: "INTEGER", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Facturas", x => x.Id); + table.ForeignKey( + name: "FK_Facturas_Clientes_ClienteCuit", + column: x => x.ClienteCuit, + principalTable: "Clientes", + principalColumn: "Cuit", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "ProductoCategoria", + columns: table => new + { + CategoriaId = table.Column(type: "INTEGER", nullable: false), + ProductoId = table.Column(type: "INTEGER", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_ProductoCategoria", x => new { x.CategoriaId, x.ProductoId }); + table.ForeignKey( + name: "FK_ProductoCategoria_Categoria_CategoriaId", + column: x => x.CategoriaId, + principalTable: "Categoria", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_ProductoCategoria_Producto_ProductoId", + column: x => x.ProductoId, + principalTable: "Producto", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "OrdenDeCompras", + columns: table => new + { + Id = table.Column(type: "INTEGER", nullable: false) + .Annotation("Sqlite:Autoincrement", true), + ProveedorCuit = table.Column(type: "INTEGER", nullable: false), + IdProveedor = table.Column(type: "INTEGER", nullable: false), + Entregado = table.Column(type: "INTEGER", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_OrdenDeCompras", x => x.Id); + table.ForeignKey( + name: "FK_OrdenDeCompras_Proveedores_ProveedorCuit", + column: x => x.ProveedorCuit, + principalTable: "Proveedores", + principalColumn: "Cuit", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Presupuestos", + columns: table => new + { + Id = table.Column(type: "INTEGER", nullable: false) + .Annotation("Sqlite:Autoincrement", true), + Fecha = table.Column(type: "TEXT", nullable: false), + Habilitado = table.Column(type: "INTEGER", nullable: false), + Aceptado = table.Column(type: "INTEGER", nullable: false), + ProveedorCuit = table.Column(type: "INTEGER", nullable: false), + IdProveedor = table.Column(type: "INTEGER", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Presupuestos", x => x.Id); + table.ForeignKey( + name: "FK_Presupuestos_Proveedores_ProveedorCuit", + column: x => x.ProveedorCuit, + principalTable: "Proveedores", + principalColumn: "Cuit", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "ProductoProveedor", + columns: table => new + { + ProveedorId = table.Column(type: "INTEGER", nullable: false), + ProductoId = table.Column(type: "INTEGER", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_ProductoProveedor", x => new { x.ProveedorId, x.ProductoId }); + table.ForeignKey( + name: "FK_ProductoProveedor_Producto_ProductoId", + column: x => x.ProductoId, + principalTable: "Producto", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_ProductoProveedor_Proveedores_ProveedorId", + column: x => x.ProveedorId, + principalTable: "Proveedores", + principalColumn: "Cuit", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Remitos", + columns: table => new + { + Id = table.Column(type: "INTEGER", nullable: false) + .Annotation("Sqlite:Autoincrement", true), + ProveedorCuit = table.Column(type: "INTEGER", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Remitos", x => x.Id); + table.ForeignKey( + name: "FK_Remitos_Proveedores_ProveedorCuit", + column: x => x.ProveedorCuit, + principalTable: "Proveedores", + principalColumn: "Cuit", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "DetallesFacturas", + columns: table => new + { + Id = table.Column(type: "INTEGER", nullable: false), + IdFactura = table.Column(type: "INTEGER", nullable: false), + Cantidad = table.Column(type: "INTEGER", nullable: false), + ProductoId = table.Column(type: "INTEGER", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_DetallesFacturas", x => new { x.Id, x.IdFactura }); + table.ForeignKey( + name: "FK_DetallesFacturas_Facturas_IdFactura", + column: x => x.IdFactura, + principalTable: "Facturas", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_DetallesFacturas_Producto_ProductoId", + column: x => x.ProductoId, + principalTable: "Producto", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "DetalleOrdenDeCompras", + columns: table => new + { + Id = table.Column(type: "INTEGER", nullable: false), + IdOrdenDeCompra = table.Column(type: "INTEGER", nullable: false), + MontoCU = table.Column(type: "REAL", nullable: false), + IdPresupuesto = table.Column(type: "INTEGER", nullable: false), + Cantidad = table.Column(type: "INTEGER", nullable: false), + ProductoId = table.Column(type: "INTEGER", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_DetalleOrdenDeCompras", x => new { x.Id, x.IdOrdenDeCompra }); + table.ForeignKey( + name: "FK_DetalleOrdenDeCompras_OrdenDeCompras_IdOrdenDeCompra", + column: x => x.IdOrdenDeCompra, + principalTable: "OrdenDeCompras", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_DetalleOrdenDeCompras_Producto_ProductoId", + column: x => x.ProductoId, + principalTable: "Producto", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "DetallePresupuestos", + columns: table => new + { + Id = table.Column(type: "INTEGER", nullable: false), + IdPresupuesto = table.Column(type: "INTEGER", nullable: false), + MontoCUPropuesto = table.Column(type: "REAL", nullable: false), + Cantidad = table.Column(type: "INTEGER", nullable: false), + ProductoId = table.Column(type: "INTEGER", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_DetallePresupuestos", x => new { x.Id, x.IdPresupuesto }); + table.ForeignKey( + name: "FK_DetallePresupuestos_Presupuestos_IdPresupuesto", + column: x => x.IdPresupuesto, + principalTable: "Presupuestos", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_DetallePresupuestos_Producto_ProductoId", + column: x => x.ProductoId, + principalTable: "Producto", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Lotes", + columns: table => new + { + Id = table.Column(type: "INTEGER", nullable: false), + IdRemito = table.Column(type: "INTEGER", nullable: false), + Fecha = table.Column(type: "TEXT", nullable: false), + Habilitado = table.Column(type: "INTEGER", nullable: false), + Cantidad = table.Column(type: "INTEGER", nullable: false), + ProductoId = table.Column(type: "INTEGER", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Lotes", x => new { x.Id, x.IdRemito }); + table.ForeignKey( + name: "FK_Lotes_Producto_ProductoId", + column: x => x.ProductoId, + principalTable: "Producto", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_Lotes_Remitos_IdRemito", + column: x => x.IdRemito, + principalTable: "Remitos", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateIndex( + name: "IX_DetalleOrdenDeCompras_IdOrdenDeCompra", + table: "DetalleOrdenDeCompras", + column: "IdOrdenDeCompra"); + + migrationBuilder.CreateIndex( + name: "IX_DetalleOrdenDeCompras_ProductoId", + table: "DetalleOrdenDeCompras", + column: "ProductoId"); + + migrationBuilder.CreateIndex( + name: "IX_DetallePresupuestos_IdPresupuesto", + table: "DetallePresupuestos", + column: "IdPresupuesto"); + + migrationBuilder.CreateIndex( + name: "IX_DetallePresupuestos_ProductoId", + table: "DetallePresupuestos", + column: "ProductoId"); + + migrationBuilder.CreateIndex( + name: "IX_DetallesFacturas_IdFactura", + table: "DetallesFacturas", + column: "IdFactura"); + + migrationBuilder.CreateIndex( + name: "IX_DetallesFacturas_ProductoId", + table: "DetallesFacturas", + column: "ProductoId"); + + migrationBuilder.CreateIndex( + name: "IX_Facturas_ClienteCuit", + table: "Facturas", + column: "ClienteCuit"); + + migrationBuilder.CreateIndex( + name: "IX_Lotes_IdRemito", + table: "Lotes", + column: "IdRemito"); + + migrationBuilder.CreateIndex( + name: "IX_Lotes_ProductoId", + table: "Lotes", + column: "ProductoId"); + + migrationBuilder.CreateIndex( + name: "IX_OrdenDeCompras_ProveedorCuit", + table: "OrdenDeCompras", + column: "ProveedorCuit"); + + migrationBuilder.CreateIndex( + name: "IX_Presupuestos_ProveedorCuit", + table: "Presupuestos", + column: "ProveedorCuit"); + + migrationBuilder.CreateIndex( + name: "IX_ProductoCategoria_ProductoId", + table: "ProductoCategoria", + column: "ProductoId"); + + migrationBuilder.CreateIndex( + name: "IX_ProductoProveedor_ProductoId", + table: "ProductoProveedor", + column: "ProductoId"); + + migrationBuilder.CreateIndex( + name: "IX_Remitos_ProveedorCuit", + table: "Remitos", + column: "ProveedorCuit"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "DetalleOrdenDeCompras"); + + migrationBuilder.DropTable( + name: "DetallePresupuestos"); + + migrationBuilder.DropTable( + name: "DetallesFacturas"); + + migrationBuilder.DropTable( + name: "Lotes"); + + migrationBuilder.DropTable( + name: "ProductoCategoria"); + + migrationBuilder.DropTable( + name: "ProductoProveedor"); + + migrationBuilder.DropTable( + name: "OrdenDeCompras"); + + migrationBuilder.DropTable( + name: "Presupuestos"); + + migrationBuilder.DropTable( + name: "Facturas"); + + migrationBuilder.DropTable( + name: "Remitos"); + + migrationBuilder.DropTable( + name: "Categoria"); + + migrationBuilder.DropTable( + name: "Producto"); + + migrationBuilder.DropTable( + name: "Clientes"); + + migrationBuilder.DropTable( + name: "Proveedores"); + } + } +} diff --git a/Modelo/Modelo.csproj b/Modelo/Modelo.csproj index e6e4093..096014f 100644 --- a/Modelo/Modelo.csproj +++ b/Modelo/Modelo.csproj @@ -1,7 +1,8 @@ - + + all diff --git a/Modelo/RepositorioLote.cs b/Modelo/RepositorioLote.cs index 09d57d3..27c7e5a 100644 --- a/Modelo/RepositorioLote.cs +++ b/Modelo/RepositorioLote.cs @@ -26,15 +26,19 @@ namespace Modelo } public void Add(Remito rem) { - if (rem.Lotes.Count <= 0) return; foreach (var detalle in rem.Lotes) { + detalle.IdRemito = rem.Id; Add(detalle); } } public override void Add(Lote t) { + t.Producto = (t.Producto.EsPerecedero) ? + context.ProductoPercederos.First(x => x.Id == t.Producto.Id) : + context.ProductoNoPercederos.First(x => x.Id == t.Producto.Id); context.Lotes.Add(t); + Guardar(); } public override void Del(Lote t) diff --git a/Modelo/RepositorioOrdenDeCompra.cs b/Modelo/RepositorioOrdenDeCompra.cs index 312d7f2..ee6dfe1 100644 --- a/Modelo/RepositorioOrdenDeCompra.cs +++ b/Modelo/RepositorioOrdenDeCompra.cs @@ -49,6 +49,15 @@ namespace Modelo public override void Mod(OrdenDeCompra t) { + + t.Proveedor = context.Proveedores.First(x => x.Cuit == t.Proveedor.Cuit); + + foreach (var detalle in t.detalles) + { + detalle.Producto = (detalle.Producto.EsPerecedero) ? + context.ProductoPercederos.First(x => x.Id == detalle.Producto.Id) : + context.ProductoNoPercederos.First(x => x.Id == detalle.Producto.Id); + } context.OrdenDeCompras.Update(t); } diff --git a/Modelo/RepositorioProductoNoPercedero.cs b/Modelo/RepositorioProductoNoPercedero.cs index 9aab79e..d8a1208 100644 --- a/Modelo/RepositorioProductoNoPercedero.cs +++ b/Modelo/RepositorioProductoNoPercedero.cs @@ -32,12 +32,17 @@ namespace Modelo public override void Add(ProductoNoPercedero t) { - foreach (var prov in t.proveedores) + var listcat = t.categorias.ToList(); + var listpro = t.proveedores.ToList(); + t.categorias.Clear(); + t.proveedores.Clear(); + + foreach (var prov in listpro) { var prove = context.Proveedores.First(x => x.Cuit == prov.Cuit); t.proveedores.Add(prove); } - foreach (var categoria in t.categorias) + foreach (var categoria in listcat) { var cat = context.Categorias.First(x => x.Id == categoria.Id); t.categorias.Add(cat); diff --git a/Modelo/RepositorioProductosPercedero.cs b/Modelo/RepositorioProductosPercedero.cs index 7af57f2..ce4fe6b 100644 --- a/Modelo/RepositorioProductosPercedero.cs +++ b/Modelo/RepositorioProductosPercedero.cs @@ -27,12 +27,17 @@ namespace Modelo public override void Add(ProductoPercedero t) { - foreach (var prov in t.proveedores) + var listcat = t.categorias.ToList(); + var listpro = t.proveedores.ToList(); + t.categorias.Clear(); + t.proveedores.Clear(); + + foreach (var prov in listpro) { var prove = context.Proveedores.First(x => x.Cuit == prov.Cuit); t.proveedores.Add(prove); } - foreach (var categoria in t.categorias) + foreach (var categoria in listcat) { var cat = context.Categorias.First(x => x.Id == categoria.Id); t.categorias.Add(cat); diff --git a/Modelo/RepositorioRemito.cs b/Modelo/RepositorioRemito.cs index 02c1d24..07cfa9d 100644 --- a/Modelo/RepositorioRemito.cs +++ b/Modelo/RepositorioRemito.cs @@ -30,6 +30,8 @@ namespace Modelo public override void Add(Remito t) { + t.Lotes = context.Lotes.Where(x => x.IdRemito == t.Id).ToList(); + t.Proveedor = context.Proveedores.First(x => x.Cuit == t.Proveedor.Cuit); context.Remitos.Add(t); } diff --git a/Modelo/obj/Modelo.csproj.nuget.dgspec.json b/Modelo/obj/Modelo.csproj.nuget.dgspec.json index b048403..7ac8681 100644 --- a/Modelo/obj/Modelo.csproj.nuget.dgspec.json +++ b/Modelo/obj/Modelo.csproj.nuget.dgspec.json @@ -119,6 +119,10 @@ "target": "Package", "version": "[8.0.8, )" }, + "Microsoft.EntityFrameworkCore.Sqlite": { + "target": "Package", + "version": "[8.0.8, )" + }, "Microsoft.EntityFrameworkCore.Tools": { "include": "Runtime, Build, Native, ContentFiles, Analyzers, BuildTransitive", "suppressParent": "All", diff --git a/Modelo/obj/Modelo.csproj.nuget.g.targets b/Modelo/obj/Modelo.csproj.nuget.g.targets index c4eeff5..698da91 100644 --- a/Modelo/obj/Modelo.csproj.nuget.g.targets +++ b/Modelo/obj/Modelo.csproj.nuget.g.targets @@ -2,6 +2,7 @@ + diff --git a/Modelo/obj/project.assets.json b/Modelo/obj/project.assets.json index 207a04b..176093e 100644 --- a/Modelo/obj/project.assets.json +++ b/Modelo/obj/project.assets.json @@ -386,6 +386,22 @@ } } }, + "Microsoft.Data.Sqlite.Core/8.0.8": { + "type": "package", + "dependencies": { + "SQLitePCLRaw.core": "2.1.6" + }, + "compile": { + "lib/net8.0/Microsoft.Data.Sqlite.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/net8.0/Microsoft.Data.Sqlite.dll": { + "related": ".xml" + } + } + }, "Microsoft.EntityFrameworkCore/8.0.8": { "type": "package", "dependencies": { @@ -470,6 +486,37 @@ } } }, + "Microsoft.EntityFrameworkCore.Sqlite/8.0.8": { + "type": "package", + "dependencies": { + "Microsoft.EntityFrameworkCore.Sqlite.Core": "8.0.8", + "SQLitePCLRaw.bundle_e_sqlite3": "2.1.6" + }, + "compile": { + "lib/net8.0/_._": {} + }, + "runtime": { + "lib/net8.0/_._": {} + } + }, + "Microsoft.EntityFrameworkCore.Sqlite.Core/8.0.8": { + "type": "package", + "dependencies": { + "Microsoft.Data.Sqlite.Core": "8.0.8", + "Microsoft.EntityFrameworkCore.Relational": "8.0.8", + "Microsoft.Extensions.DependencyModel": "8.0.1" + }, + "compile": { + "lib/net8.0/Microsoft.EntityFrameworkCore.Sqlite.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/net8.0/Microsoft.EntityFrameworkCore.Sqlite.dll": { + "related": ".xml" + } + } + }, "Microsoft.EntityFrameworkCore.SqlServer/8.0.8": { "type": "package", "dependencies": { @@ -602,7 +649,7 @@ "System.Text.Json": "8.0.4" }, "compile": { - "lib/net8.0/_._": { + "lib/net8.0/Microsoft.Extensions.DependencyModel.dll": { "related": ".xml" } }, @@ -890,6 +937,137 @@ "lib/netstandard2.0/Mono.TextTemplating.dll": {} } }, + "SQLitePCLRaw.bundle_e_sqlite3/2.1.6": { + "type": "package", + "dependencies": { + "SQLitePCLRaw.lib.e_sqlite3": "2.1.6", + "SQLitePCLRaw.provider.e_sqlite3": "2.1.6" + }, + "compile": { + "lib/netstandard2.0/SQLitePCLRaw.batteries_v2.dll": {} + }, + "runtime": { + "lib/netstandard2.0/SQLitePCLRaw.batteries_v2.dll": {} + } + }, + "SQLitePCLRaw.core/2.1.6": { + "type": "package", + "dependencies": { + "System.Memory": "4.5.3" + }, + "compile": { + "lib/netstandard2.0/SQLitePCLRaw.core.dll": {} + }, + "runtime": { + "lib/netstandard2.0/SQLitePCLRaw.core.dll": {} + } + }, + "SQLitePCLRaw.lib.e_sqlite3/2.1.6": { + "type": "package", + "compile": { + "lib/netstandard2.0/_._": {} + }, + "runtime": { + "lib/netstandard2.0/_._": {} + }, + "build": { + "buildTransitive/net8.0/SQLitePCLRaw.lib.e_sqlite3.targets": {} + }, + "runtimeTargets": { + "runtimes/browser-wasm/nativeassets/net8.0/e_sqlite3.a": { + "assetType": "native", + "rid": "browser-wasm" + }, + "runtimes/linux-arm/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-arm" + }, + "runtimes/linux-arm64/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-arm64" + }, + "runtimes/linux-armel/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-armel" + }, + "runtimes/linux-mips64/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-mips64" + }, + "runtimes/linux-musl-arm/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-musl-arm" + }, + "runtimes/linux-musl-arm64/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-musl-arm64" + }, + "runtimes/linux-musl-x64/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-musl-x64" + }, + "runtimes/linux-ppc64le/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-ppc64le" + }, + "runtimes/linux-s390x/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-s390x" + }, + "runtimes/linux-x64/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-x64" + }, + "runtimes/linux-x86/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-x86" + }, + "runtimes/maccatalyst-arm64/native/libe_sqlite3.dylib": { + "assetType": "native", + "rid": "maccatalyst-arm64" + }, + "runtimes/maccatalyst-x64/native/libe_sqlite3.dylib": { + "assetType": "native", + "rid": "maccatalyst-x64" + }, + "runtimes/osx-arm64/native/libe_sqlite3.dylib": { + "assetType": "native", + "rid": "osx-arm64" + }, + "runtimes/osx-x64/native/libe_sqlite3.dylib": { + "assetType": "native", + "rid": "osx-x64" + }, + "runtimes/win-arm/native/e_sqlite3.dll": { + "assetType": "native", + "rid": "win-arm" + }, + "runtimes/win-arm64/native/e_sqlite3.dll": { + "assetType": "native", + "rid": "win-arm64" + }, + "runtimes/win-x64/native/e_sqlite3.dll": { + "assetType": "native", + "rid": "win-x64" + }, + "runtimes/win-x86/native/e_sqlite3.dll": { + "assetType": "native", + "rid": "win-x86" + } + } + }, + "SQLitePCLRaw.provider.e_sqlite3/2.1.6": { + "type": "package", + "dependencies": { + "SQLitePCLRaw.core": "2.1.6" + }, + "compile": { + "lib/net6.0/SQLitePCLRaw.provider.e_sqlite3.dll": {} + }, + "runtime": { + "lib/net6.0/SQLitePCLRaw.provider.e_sqlite3.dll": {} + } + }, "System.CodeDom/4.4.0": { "type": "package", "compile": { @@ -2173,6 +2351,25 @@ "runtimes/win-x86/native/Microsoft.Data.SqlClient.SNI.dll" ] }, + "Microsoft.Data.Sqlite.Core/8.0.8": { + "sha512": "qHInO2EvOcPhjgboP0TGnXM7rASdvWXrw6jAH8Yuz5YP82VTje7d/NKiX1i+dVbE3+G3JuW1kqNVB8yLvsqgYA==", + "type": "package", + "path": "microsoft.data.sqlite.core/8.0.8", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "Icon.png", + "PACKAGE.md", + "lib/net6.0/Microsoft.Data.Sqlite.dll", + "lib/net6.0/Microsoft.Data.Sqlite.xml", + "lib/net8.0/Microsoft.Data.Sqlite.dll", + "lib/net8.0/Microsoft.Data.Sqlite.xml", + "lib/netstandard2.0/Microsoft.Data.Sqlite.dll", + "lib/netstandard2.0/Microsoft.Data.Sqlite.xml", + "microsoft.data.sqlite.core.8.0.8.nupkg.sha512", + "microsoft.data.sqlite.core.nuspec" + ] + }, "Microsoft.EntityFrameworkCore/8.0.8": { "sha512": "iK+jrJzkfbIxutB7or808BPmJtjUEi5O+eSM7cLDwsyde6+3iOujCSfWnrHrLxY3u+EQrJD+aD8DJ6ogPA2Rtw==", "type": "package", @@ -2250,6 +2447,35 @@ "microsoft.entityframeworkcore.relational.nuspec" ] }, + "Microsoft.EntityFrameworkCore.Sqlite/8.0.8": { + "sha512": "IDB7Xs16hN/3VkWFCCa4r3fqoJxMVezwq418gr8dBkRBO0pxH+BX/Kjk/U3PYXDvzVLkXqUgJsHv1XoFrJbZPQ==", + "type": "package", + "path": "microsoft.entityframeworkcore.sqlite/8.0.8", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "Icon.png", + "PACKAGE.md", + "lib/net8.0/_._", + "microsoft.entityframeworkcore.sqlite.8.0.8.nupkg.sha512", + "microsoft.entityframeworkcore.sqlite.nuspec" + ] + }, + "Microsoft.EntityFrameworkCore.Sqlite.Core/8.0.8": { + "sha512": "w5k/ENj3+BPbmggqh83RRuPhhKcJmW7CmdJuGwdX1eFrmptJwnzKiHfQCPkJAu9df16PSs5YFeWrDgepfqnltA==", + "type": "package", + "path": "microsoft.entityframeworkcore.sqlite.core/8.0.8", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "Icon.png", + "PACKAGE.md", + "lib/net8.0/Microsoft.EntityFrameworkCore.Sqlite.dll", + "lib/net8.0/Microsoft.EntityFrameworkCore.Sqlite.xml", + "microsoft.entityframeworkcore.sqlite.core.8.0.8.nupkg.sha512", + "microsoft.entityframeworkcore.sqlite.core.nuspec" + ] + }, "Microsoft.EntityFrameworkCore.SqlServer/8.0.8": { "sha512": "A2F52W+hnGqvprx37HcAnYnJv4QoFFdc9cxd/QGNSd1vCu1I0eAEKRd0r9KS3E5I5RRj/m9XJfYCyTdy1cdn5Q==", "type": "package", @@ -2934,6 +3160,95 @@ "mono.texttemplating.nuspec" ] }, + "SQLitePCLRaw.bundle_e_sqlite3/2.1.6": { + "sha512": "BmAf6XWt4TqtowmiWe4/5rRot6GerAeklmOPfviOvwLoF5WwgxcJHAxZtySuyW9r9w+HLILnm8VfJFLCUJYW8A==", + "type": "package", + "path": "sqlitepclraw.bundle_e_sqlite3/2.1.6", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "lib/monoandroid90/SQLitePCLRaw.batteries_v2.dll", + "lib/net461/SQLitePCLRaw.batteries_v2.dll", + "lib/net6.0-android31.0/SQLitePCLRaw.batteries_v2.dll", + "lib/net6.0-android31.0/SQLitePCLRaw.batteries_v2.xml", + "lib/net6.0-ios14.0/SQLitePCLRaw.batteries_v2.dll", + "lib/net6.0-ios14.2/SQLitePCLRaw.batteries_v2.dll", + "lib/net6.0-tvos10.0/SQLitePCLRaw.batteries_v2.dll", + "lib/netstandard2.0/SQLitePCLRaw.batteries_v2.dll", + "lib/xamarinios10/SQLitePCLRaw.batteries_v2.dll", + "sqlitepclraw.bundle_e_sqlite3.2.1.6.nupkg.sha512", + "sqlitepclraw.bundle_e_sqlite3.nuspec" + ] + }, + "SQLitePCLRaw.core/2.1.6": { + "sha512": "wO6v9GeMx9CUngAet8hbO7xdm+M42p1XeJq47ogyRoYSvNSp0NGLI+MgC0bhrMk9C17MTVFlLiN6ylyExLCc5w==", + "type": "package", + "path": "sqlitepclraw.core/2.1.6", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "lib/netstandard2.0/SQLitePCLRaw.core.dll", + "sqlitepclraw.core.2.1.6.nupkg.sha512", + "sqlitepclraw.core.nuspec" + ] + }, + "SQLitePCLRaw.lib.e_sqlite3/2.1.6": { + "sha512": "2ObJJLkIUIxRpOUlZNGuD4rICpBnrBR5anjyfUFQep4hMOIeqW+XGQYzrNmHSVz5xSWZ3klSbh7sFR6UyDj68Q==", + "type": "package", + "path": "sqlitepclraw.lib.e_sqlite3/2.1.6", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "buildTransitive/net461/SQLitePCLRaw.lib.e_sqlite3.targets", + "buildTransitive/net6.0/SQLitePCLRaw.lib.e_sqlite3.targets", + "buildTransitive/net7.0/SQLitePCLRaw.lib.e_sqlite3.targets", + "buildTransitive/net8.0/SQLitePCLRaw.lib.e_sqlite3.targets", + "lib/net461/_._", + "lib/netstandard2.0/_._", + "runtimes/browser-wasm/nativeassets/net6.0/e_sqlite3.a", + "runtimes/browser-wasm/nativeassets/net7.0/e_sqlite3.a", + "runtimes/browser-wasm/nativeassets/net8.0/e_sqlite3.a", + "runtimes/linux-arm/native/libe_sqlite3.so", + "runtimes/linux-arm64/native/libe_sqlite3.so", + "runtimes/linux-armel/native/libe_sqlite3.so", + "runtimes/linux-mips64/native/libe_sqlite3.so", + "runtimes/linux-musl-arm/native/libe_sqlite3.so", + "runtimes/linux-musl-arm64/native/libe_sqlite3.so", + "runtimes/linux-musl-x64/native/libe_sqlite3.so", + "runtimes/linux-ppc64le/native/libe_sqlite3.so", + "runtimes/linux-s390x/native/libe_sqlite3.so", + "runtimes/linux-x64/native/libe_sqlite3.so", + "runtimes/linux-x86/native/libe_sqlite3.so", + "runtimes/maccatalyst-arm64/native/libe_sqlite3.dylib", + "runtimes/maccatalyst-x64/native/libe_sqlite3.dylib", + "runtimes/osx-arm64/native/libe_sqlite3.dylib", + "runtimes/osx-x64/native/libe_sqlite3.dylib", + "runtimes/win-arm/native/e_sqlite3.dll", + "runtimes/win-arm64/native/e_sqlite3.dll", + "runtimes/win-x64/native/e_sqlite3.dll", + "runtimes/win-x86/native/e_sqlite3.dll", + "runtimes/win10-arm/nativeassets/uap10.0/e_sqlite3.dll", + "runtimes/win10-arm64/nativeassets/uap10.0/e_sqlite3.dll", + "runtimes/win10-x64/nativeassets/uap10.0/e_sqlite3.dll", + "runtimes/win10-x86/nativeassets/uap10.0/e_sqlite3.dll", + "sqlitepclraw.lib.e_sqlite3.2.1.6.nupkg.sha512", + "sqlitepclraw.lib.e_sqlite3.nuspec" + ] + }, + "SQLitePCLRaw.provider.e_sqlite3/2.1.6": { + "sha512": "PQ2Oq3yepLY4P7ll145P3xtx2bX8xF4PzaKPRpw9jZlKvfe4LE/saAV82inND9usn1XRpmxXk7Lal3MTI+6CNg==", + "type": "package", + "path": "sqlitepclraw.provider.e_sqlite3/2.1.6", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "lib/net6.0-windows7.0/SQLitePCLRaw.provider.e_sqlite3.dll", + "lib/net6.0/SQLitePCLRaw.provider.e_sqlite3.dll", + "lib/netstandard2.0/SQLitePCLRaw.provider.e_sqlite3.dll", + "sqlitepclraw.provider.e_sqlite3.2.1.6.nupkg.sha512", + "sqlitepclraw.provider.e_sqlite3.nuspec" + ] + }, "System.CodeDom/4.4.0": { "sha512": "2sCCb7doXEwtYAbqzbF/8UAeDRMNmPaQbU2q50Psg1J9KzumyVVCgKQY8s53WIPTufNT0DpSe9QRvVjOzfDWBA==", "type": "package", @@ -4118,6 +4433,7 @@ "Entidades >= 1.0.0", "Microsoft.EntityFrameworkCore >= 8.0.8", "Microsoft.EntityFrameworkCore.SqlServer >= 8.0.8", + "Microsoft.EntityFrameworkCore.Sqlite >= 8.0.8", "Microsoft.EntityFrameworkCore.Tools >= 8.0.8" ] }, @@ -4178,6 +4494,10 @@ "target": "Package", "version": "[8.0.8, )" }, + "Microsoft.EntityFrameworkCore.Sqlite": { + "target": "Package", + "version": "[8.0.8, )" + }, "Microsoft.EntityFrameworkCore.Tools": { "include": "Runtime, Build, Native, ContentFiles, Analyzers, BuildTransitive", "suppressParent": "All", diff --git a/Modelo/obj/project.nuget.cache b/Modelo/obj/project.nuget.cache index 6517e5b..cb2fb4a 100644 --- a/Modelo/obj/project.nuget.cache +++ b/Modelo/obj/project.nuget.cache @@ -1,6 +1,6 @@ { "version": 2, - "dgSpecHash": "RfnM8S6586M=", + "dgSpecHash": "NhK3CE/FFk0=", "success": true, "projectFilePath": "C:\\Users\\fedpo\\source\\repos\\Final_Das\\Modelo\\Modelo.csproj", "expectedPackageFiles": [ @@ -16,11 +16,14 @@ "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.csharp\\4.5.0\\microsoft.csharp.4.5.0.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.data.sqlclient\\5.1.5\\microsoft.data.sqlclient.5.1.5.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.data.sqlclient.sni.runtime\\5.1.1\\microsoft.data.sqlclient.sni.runtime.5.1.1.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.data.sqlite.core\\8.0.8\\microsoft.data.sqlite.core.8.0.8.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore\\8.0.8\\microsoft.entityframeworkcore.8.0.8.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore.abstractions\\8.0.8\\microsoft.entityframeworkcore.abstractions.8.0.8.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore.analyzers\\8.0.8\\microsoft.entityframeworkcore.analyzers.8.0.8.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore.design\\8.0.8\\microsoft.entityframeworkcore.design.8.0.8.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore.relational\\8.0.8\\microsoft.entityframeworkcore.relational.8.0.8.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore.sqlite\\8.0.8\\microsoft.entityframeworkcore.sqlite.8.0.8.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore.sqlite.core\\8.0.8\\microsoft.entityframeworkcore.sqlite.core.8.0.8.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore.sqlserver\\8.0.8\\microsoft.entityframeworkcore.sqlserver.8.0.8.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore.tools\\8.0.8\\microsoft.entityframeworkcore.tools.8.0.8.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.extensions.caching.abstractions\\8.0.0\\microsoft.extensions.caching.abstractions.8.0.0.nupkg.sha512", @@ -46,6 +49,10 @@ "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.sqlserver.server\\1.0.0\\microsoft.sqlserver.server.1.0.0.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.win32.systemevents\\6.0.0\\microsoft.win32.systemevents.6.0.0.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\mono.texttemplating\\2.2.1\\mono.texttemplating.2.2.1.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\sqlitepclraw.bundle_e_sqlite3\\2.1.6\\sqlitepclraw.bundle_e_sqlite3.2.1.6.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\sqlitepclraw.core\\2.1.6\\sqlitepclraw.core.2.1.6.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\sqlitepclraw.lib.e_sqlite3\\2.1.6\\sqlitepclraw.lib.e_sqlite3.2.1.6.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\sqlitepclraw.provider.e_sqlite3\\2.1.6\\sqlitepclraw.provider.e_sqlite3.2.1.6.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\system.codedom\\4.4.0\\system.codedom.4.4.0.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\system.collections.immutable\\6.0.0\\system.collections.immutable.6.0.0.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\system.composition\\6.0.0\\system.composition.6.0.0.nupkg.sha512", diff --git a/Vista/FrmProducto.cs b/Vista/FrmProducto.cs index 9b3b869..abe0b3e 100644 --- a/Vista/FrmProducto.cs +++ b/Vista/FrmProducto.cs @@ -38,6 +38,7 @@ namespace Vista private void InicializarFormulario() { numId.Value = nuevoproducto.Id; + nuevoproducto = ControladoraProductos.Instance.MostrarPorId(nuevoproducto); numId.Enabled = false; txtNombre.Text = nuevoproducto.Nombre; numPrecio.Value = (decimal)nuevoproducto.Precio; @@ -52,30 +53,26 @@ namespace Vista numConsumoPreferente.Value = Prodperc.MesesHastaConsumoPreferente; numvencimiento.Value = Prodperc.MesesHastaVencimiento; } - else - { - } } private void CargarTabla() { dgvProveedor.DataSource = null; dgvProveedor.DataSource = ControladoraProductos.Instance.ListarProveedores(); - if (mod) - { - dgvProveedorAñadido.DataSource = ControladoraProductos.Instance.ListarProveedores(nuevoproducto); - - } - + dgvCategoria.DataSource = null; dgvCategoria.DataSource = ControladoraCategorias.Instance.Listar(); + if (mod) { - dgvCategoriaAñadida.DataSource = ControladoraProductos.Instance.ListarCategorias(nuevoproducto); + + dgvProveedorAñadido.DataSource = nuevoproducto.proveedores.AsReadOnly(); + + dgvCategoriaAñadida.DataSource = null; + dgvCategoriaAñadida.DataSource = nuevoproducto.categorias.AsReadOnly(); } - } private void CargarNumid() diff --git a/Vista/FrmRemito.cs b/Vista/FrmRemito.cs index 53e31d1..d016bee 100644 --- a/Vista/FrmRemito.cs +++ b/Vista/FrmRemito.cs @@ -67,7 +67,7 @@ namespace Vista var remito = new Remito { - Proveedor = orden.Proveedor + Proveedor = orden.Proveedor, }; foreach (var detalle in ControladoraRemito.Instance.ListarDetallesOrdenesDeCompra(orden)) { @@ -76,7 +76,6 @@ namespace Vista Cantidad = detalle.Cantidad, Fecha = DateTime.Now, Habilitado = true, - IdRemito = remito.Id, Producto = detalle.Producto, }; remito.AñadirLote(lote); diff --git a/Vista/FrmRemitos.cs b/Vista/FrmRemitos.cs index f56409f..fd1ede7 100644 --- a/Vista/FrmRemitos.cs +++ b/Vista/FrmRemitos.cs @@ -33,7 +33,7 @@ namespace Vista dgvRemito.DataSource = ControladoraRemito.Instance.Listar(); foreach (DataGridViewColumn column in dgvRemito.Columns) { - column.Visible = column.Name == "Id" || column.Name == "NombreProveedor"; + column.Visible = column.Name == "Id" || column.Name == "NombreProveedor"; } } private void BtnAdd_Click(object sender, EventArgs e) @@ -51,9 +51,9 @@ namespace Vista var rem = new Remito { Id = ordenid }; - var detallesrem = ControladoraRemito.Instance.ListarLotesPorRemito(rem); + rem = ControladoraRemito.Instance.MostrarRemitoPorId(rem); dgvDetallesRemito.DataSource = null; - dgvDetallesRemito.DataSource = detallesrem; + dgvDetallesRemito.DataSource = rem.Lotes; foreach (DataGridViewColumn column in dgvDetallesRemito.Columns) { column.Visible = column.Name == "Id" || column.Name == "Fecha" diff --git a/Vista/daslug.db b/Vista/daslug.db new file mode 100644 index 0000000..55eafed Binary files /dev/null and b/Vista/daslug.db differ diff --git a/Vista/obj/Vista.csproj.nuget.dgspec.json b/Vista/obj/Vista.csproj.nuget.dgspec.json index 2aa5ddc..f93c896 100644 --- a/Vista/obj/Vista.csproj.nuget.dgspec.json +++ b/Vista/obj/Vista.csproj.nuget.dgspec.json @@ -255,6 +255,10 @@ "target": "Package", "version": "[8.0.8, )" }, + "Microsoft.EntityFrameworkCore.Sqlite": { + "target": "Package", + "version": "[8.0.8, )" + }, "Microsoft.EntityFrameworkCore.Tools": { "include": "Runtime, Build, Native, ContentFiles, Analyzers, BuildTransitive", "suppressParent": "All", diff --git a/Vista/obj/Vista.csproj.nuget.g.targets b/Vista/obj/Vista.csproj.nuget.g.targets index c4eeff5..698da91 100644 --- a/Vista/obj/Vista.csproj.nuget.g.targets +++ b/Vista/obj/Vista.csproj.nuget.g.targets @@ -2,6 +2,7 @@ + diff --git a/Vista/obj/project.assets.json b/Vista/obj/project.assets.json index db9eb4a..fd05da3 100644 --- a/Vista/obj/project.assets.json +++ b/Vista/obj/project.assets.json @@ -386,6 +386,22 @@ } } }, + "Microsoft.Data.Sqlite.Core/8.0.8": { + "type": "package", + "dependencies": { + "SQLitePCLRaw.core": "2.1.6" + }, + "compile": { + "lib/net8.0/Microsoft.Data.Sqlite.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/net8.0/Microsoft.Data.Sqlite.dll": { + "related": ".xml" + } + } + }, "Microsoft.EntityFrameworkCore/8.0.8": { "type": "package", "dependencies": { @@ -470,6 +486,37 @@ } } }, + "Microsoft.EntityFrameworkCore.Sqlite/8.0.8": { + "type": "package", + "dependencies": { + "Microsoft.EntityFrameworkCore.Sqlite.Core": "8.0.8", + "SQLitePCLRaw.bundle_e_sqlite3": "2.1.6" + }, + "compile": { + "lib/net8.0/_._": {} + }, + "runtime": { + "lib/net8.0/_._": {} + } + }, + "Microsoft.EntityFrameworkCore.Sqlite.Core/8.0.8": { + "type": "package", + "dependencies": { + "Microsoft.Data.Sqlite.Core": "8.0.8", + "Microsoft.EntityFrameworkCore.Relational": "8.0.8", + "Microsoft.Extensions.DependencyModel": "8.0.1" + }, + "compile": { + "lib/net8.0/Microsoft.EntityFrameworkCore.Sqlite.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/net8.0/Microsoft.EntityFrameworkCore.Sqlite.dll": { + "related": ".xml" + } + } + }, "Microsoft.EntityFrameworkCore.SqlServer/8.0.8": { "type": "package", "dependencies": { @@ -590,7 +637,7 @@ "System.Text.Json": "8.0.4" }, "compile": { - "lib/net8.0/_._": { + "lib/net8.0/Microsoft.Extensions.DependencyModel.dll": { "related": ".xml" } }, @@ -948,6 +995,137 @@ "lib/netstandard2.0/Mono.TextTemplating.dll": {} } }, + "SQLitePCLRaw.bundle_e_sqlite3/2.1.6": { + "type": "package", + "dependencies": { + "SQLitePCLRaw.lib.e_sqlite3": "2.1.6", + "SQLitePCLRaw.provider.e_sqlite3": "2.1.6" + }, + "compile": { + "lib/netstandard2.0/SQLitePCLRaw.batteries_v2.dll": {} + }, + "runtime": { + "lib/netstandard2.0/SQLitePCLRaw.batteries_v2.dll": {} + } + }, + "SQLitePCLRaw.core/2.1.6": { + "type": "package", + "dependencies": { + "System.Memory": "4.5.3" + }, + "compile": { + "lib/netstandard2.0/SQLitePCLRaw.core.dll": {} + }, + "runtime": { + "lib/netstandard2.0/SQLitePCLRaw.core.dll": {} + } + }, + "SQLitePCLRaw.lib.e_sqlite3/2.1.6": { + "type": "package", + "compile": { + "lib/netstandard2.0/_._": {} + }, + "runtime": { + "lib/netstandard2.0/_._": {} + }, + "build": { + "buildTransitive/net8.0/SQLitePCLRaw.lib.e_sqlite3.targets": {} + }, + "runtimeTargets": { + "runtimes/browser-wasm/nativeassets/net8.0/e_sqlite3.a": { + "assetType": "native", + "rid": "browser-wasm" + }, + "runtimes/linux-arm/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-arm" + }, + "runtimes/linux-arm64/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-arm64" + }, + "runtimes/linux-armel/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-armel" + }, + "runtimes/linux-mips64/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-mips64" + }, + "runtimes/linux-musl-arm/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-musl-arm" + }, + "runtimes/linux-musl-arm64/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-musl-arm64" + }, + "runtimes/linux-musl-x64/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-musl-x64" + }, + "runtimes/linux-ppc64le/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-ppc64le" + }, + "runtimes/linux-s390x/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-s390x" + }, + "runtimes/linux-x64/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-x64" + }, + "runtimes/linux-x86/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-x86" + }, + "runtimes/maccatalyst-arm64/native/libe_sqlite3.dylib": { + "assetType": "native", + "rid": "maccatalyst-arm64" + }, + "runtimes/maccatalyst-x64/native/libe_sqlite3.dylib": { + "assetType": "native", + "rid": "maccatalyst-x64" + }, + "runtimes/osx-arm64/native/libe_sqlite3.dylib": { + "assetType": "native", + "rid": "osx-arm64" + }, + "runtimes/osx-x64/native/libe_sqlite3.dylib": { + "assetType": "native", + "rid": "osx-x64" + }, + "runtimes/win-arm/native/e_sqlite3.dll": { + "assetType": "native", + "rid": "win-arm" + }, + "runtimes/win-arm64/native/e_sqlite3.dll": { + "assetType": "native", + "rid": "win-arm64" + }, + "runtimes/win-x64/native/e_sqlite3.dll": { + "assetType": "native", + "rid": "win-x64" + }, + "runtimes/win-x86/native/e_sqlite3.dll": { + "assetType": "native", + "rid": "win-x86" + } + } + }, + "SQLitePCLRaw.provider.e_sqlite3/2.1.6": { + "type": "package", + "dependencies": { + "SQLitePCLRaw.core": "2.1.6" + }, + "compile": { + "lib/net6.0-windows7.0/SQLitePCLRaw.provider.e_sqlite3.dll": {} + }, + "runtime": { + "lib/net6.0-windows7.0/SQLitePCLRaw.provider.e_sqlite3.dll": {} + } + }, "System.CodeDom/4.4.0": { "type": "package", "compile": { @@ -1605,7 +1783,8 @@ "dependencies": { "Entidades": "1.0.0", "Microsoft.EntityFrameworkCore": "8.0.8", - "Microsoft.EntityFrameworkCore.SqlServer": "8.0.8" + "Microsoft.EntityFrameworkCore.SqlServer": "8.0.8", + "Microsoft.EntityFrameworkCore.Sqlite": "8.0.8" }, "compile": { "bin/placeholder/Modelo.dll": {} @@ -2274,6 +2453,25 @@ "runtimes/win-x86/native/Microsoft.Data.SqlClient.SNI.dll" ] }, + "Microsoft.Data.Sqlite.Core/8.0.8": { + "sha512": "qHInO2EvOcPhjgboP0TGnXM7rASdvWXrw6jAH8Yuz5YP82VTje7d/NKiX1i+dVbE3+G3JuW1kqNVB8yLvsqgYA==", + "type": "package", + "path": "microsoft.data.sqlite.core/8.0.8", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "Icon.png", + "PACKAGE.md", + "lib/net6.0/Microsoft.Data.Sqlite.dll", + "lib/net6.0/Microsoft.Data.Sqlite.xml", + "lib/net8.0/Microsoft.Data.Sqlite.dll", + "lib/net8.0/Microsoft.Data.Sqlite.xml", + "lib/netstandard2.0/Microsoft.Data.Sqlite.dll", + "lib/netstandard2.0/Microsoft.Data.Sqlite.xml", + "microsoft.data.sqlite.core.8.0.8.nupkg.sha512", + "microsoft.data.sqlite.core.nuspec" + ] + }, "Microsoft.EntityFrameworkCore/8.0.8": { "sha512": "iK+jrJzkfbIxutB7or808BPmJtjUEi5O+eSM7cLDwsyde6+3iOujCSfWnrHrLxY3u+EQrJD+aD8DJ6ogPA2Rtw==", "type": "package", @@ -2351,6 +2549,35 @@ "microsoft.entityframeworkcore.relational.nuspec" ] }, + "Microsoft.EntityFrameworkCore.Sqlite/8.0.8": { + "sha512": "IDB7Xs16hN/3VkWFCCa4r3fqoJxMVezwq418gr8dBkRBO0pxH+BX/Kjk/U3PYXDvzVLkXqUgJsHv1XoFrJbZPQ==", + "type": "package", + "path": "microsoft.entityframeworkcore.sqlite/8.0.8", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "Icon.png", + "PACKAGE.md", + "lib/net8.0/_._", + "microsoft.entityframeworkcore.sqlite.8.0.8.nupkg.sha512", + "microsoft.entityframeworkcore.sqlite.nuspec" + ] + }, + "Microsoft.EntityFrameworkCore.Sqlite.Core/8.0.8": { + "sha512": "w5k/ENj3+BPbmggqh83RRuPhhKcJmW7CmdJuGwdX1eFrmptJwnzKiHfQCPkJAu9df16PSs5YFeWrDgepfqnltA==", + "type": "package", + "path": "microsoft.entityframeworkcore.sqlite.core/8.0.8", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "Icon.png", + "PACKAGE.md", + "lib/net8.0/Microsoft.EntityFrameworkCore.Sqlite.dll", + "lib/net8.0/Microsoft.EntityFrameworkCore.Sqlite.xml", + "microsoft.entityframeworkcore.sqlite.core.8.0.8.nupkg.sha512", + "microsoft.entityframeworkcore.sqlite.core.nuspec" + ] + }, "Microsoft.EntityFrameworkCore.SqlServer/8.0.8": { "sha512": "A2F52W+hnGqvprx37HcAnYnJv4QoFFdc9cxd/QGNSd1vCu1I0eAEKRd0r9KS3E5I5RRj/m9XJfYCyTdy1cdn5Q==", "type": "package", @@ -3072,6 +3299,95 @@ "mono.texttemplating.nuspec" ] }, + "SQLitePCLRaw.bundle_e_sqlite3/2.1.6": { + "sha512": "BmAf6XWt4TqtowmiWe4/5rRot6GerAeklmOPfviOvwLoF5WwgxcJHAxZtySuyW9r9w+HLILnm8VfJFLCUJYW8A==", + "type": "package", + "path": "sqlitepclraw.bundle_e_sqlite3/2.1.6", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "lib/monoandroid90/SQLitePCLRaw.batteries_v2.dll", + "lib/net461/SQLitePCLRaw.batteries_v2.dll", + "lib/net6.0-android31.0/SQLitePCLRaw.batteries_v2.dll", + "lib/net6.0-android31.0/SQLitePCLRaw.batteries_v2.xml", + "lib/net6.0-ios14.0/SQLitePCLRaw.batteries_v2.dll", + "lib/net6.0-ios14.2/SQLitePCLRaw.batteries_v2.dll", + "lib/net6.0-tvos10.0/SQLitePCLRaw.batteries_v2.dll", + "lib/netstandard2.0/SQLitePCLRaw.batteries_v2.dll", + "lib/xamarinios10/SQLitePCLRaw.batteries_v2.dll", + "sqlitepclraw.bundle_e_sqlite3.2.1.6.nupkg.sha512", + "sqlitepclraw.bundle_e_sqlite3.nuspec" + ] + }, + "SQLitePCLRaw.core/2.1.6": { + "sha512": "wO6v9GeMx9CUngAet8hbO7xdm+M42p1XeJq47ogyRoYSvNSp0NGLI+MgC0bhrMk9C17MTVFlLiN6ylyExLCc5w==", + "type": "package", + "path": "sqlitepclraw.core/2.1.6", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "lib/netstandard2.0/SQLitePCLRaw.core.dll", + "sqlitepclraw.core.2.1.6.nupkg.sha512", + "sqlitepclraw.core.nuspec" + ] + }, + "SQLitePCLRaw.lib.e_sqlite3/2.1.6": { + "sha512": "2ObJJLkIUIxRpOUlZNGuD4rICpBnrBR5anjyfUFQep4hMOIeqW+XGQYzrNmHSVz5xSWZ3klSbh7sFR6UyDj68Q==", + "type": "package", + "path": "sqlitepclraw.lib.e_sqlite3/2.1.6", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "buildTransitive/net461/SQLitePCLRaw.lib.e_sqlite3.targets", + "buildTransitive/net6.0/SQLitePCLRaw.lib.e_sqlite3.targets", + "buildTransitive/net7.0/SQLitePCLRaw.lib.e_sqlite3.targets", + "buildTransitive/net8.0/SQLitePCLRaw.lib.e_sqlite3.targets", + "lib/net461/_._", + "lib/netstandard2.0/_._", + "runtimes/browser-wasm/nativeassets/net6.0/e_sqlite3.a", + "runtimes/browser-wasm/nativeassets/net7.0/e_sqlite3.a", + "runtimes/browser-wasm/nativeassets/net8.0/e_sqlite3.a", + "runtimes/linux-arm/native/libe_sqlite3.so", + "runtimes/linux-arm64/native/libe_sqlite3.so", + "runtimes/linux-armel/native/libe_sqlite3.so", + "runtimes/linux-mips64/native/libe_sqlite3.so", + "runtimes/linux-musl-arm/native/libe_sqlite3.so", + "runtimes/linux-musl-arm64/native/libe_sqlite3.so", + "runtimes/linux-musl-x64/native/libe_sqlite3.so", + "runtimes/linux-ppc64le/native/libe_sqlite3.so", + "runtimes/linux-s390x/native/libe_sqlite3.so", + "runtimes/linux-x64/native/libe_sqlite3.so", + "runtimes/linux-x86/native/libe_sqlite3.so", + "runtimes/maccatalyst-arm64/native/libe_sqlite3.dylib", + "runtimes/maccatalyst-x64/native/libe_sqlite3.dylib", + "runtimes/osx-arm64/native/libe_sqlite3.dylib", + "runtimes/osx-x64/native/libe_sqlite3.dylib", + "runtimes/win-arm/native/e_sqlite3.dll", + "runtimes/win-arm64/native/e_sqlite3.dll", + "runtimes/win-x64/native/e_sqlite3.dll", + "runtimes/win-x86/native/e_sqlite3.dll", + "runtimes/win10-arm/nativeassets/uap10.0/e_sqlite3.dll", + "runtimes/win10-arm64/nativeassets/uap10.0/e_sqlite3.dll", + "runtimes/win10-x64/nativeassets/uap10.0/e_sqlite3.dll", + "runtimes/win10-x86/nativeassets/uap10.0/e_sqlite3.dll", + "sqlitepclraw.lib.e_sqlite3.2.1.6.nupkg.sha512", + "sqlitepclraw.lib.e_sqlite3.nuspec" + ] + }, + "SQLitePCLRaw.provider.e_sqlite3/2.1.6": { + "sha512": "PQ2Oq3yepLY4P7ll145P3xtx2bX8xF4PzaKPRpw9jZlKvfe4LE/saAV82inND9usn1XRpmxXk7Lal3MTI+6CNg==", + "type": "package", + "path": "sqlitepclraw.provider.e_sqlite3/2.1.6", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "lib/net6.0-windows7.0/SQLitePCLRaw.provider.e_sqlite3.dll", + "lib/net6.0/SQLitePCLRaw.provider.e_sqlite3.dll", + "lib/netstandard2.0/SQLitePCLRaw.provider.e_sqlite3.dll", + "sqlitepclraw.provider.e_sqlite3.2.1.6.nupkg.sha512", + "sqlitepclraw.provider.e_sqlite3.nuspec" + ] + }, "System.CodeDom/4.4.0": { "sha512": "2sCCb7doXEwtYAbqzbF/8UAeDRMNmPaQbU2q50Psg1J9KzumyVVCgKQY8s53WIPTufNT0DpSe9QRvVjOzfDWBA==", "type": "package", diff --git a/Vista/obj/project.nuget.cache b/Vista/obj/project.nuget.cache index ce8baa2..d32babb 100644 --- a/Vista/obj/project.nuget.cache +++ b/Vista/obj/project.nuget.cache @@ -1,6 +1,6 @@ { "version": 2, - "dgSpecHash": "RZQdbCeghbw=", + "dgSpecHash": "gLAiGl4EbGM=", "success": true, "projectFilePath": "C:\\Users\\fedpo\\source\\repos\\Final_Das\\Vista\\Vista.csproj", "expectedPackageFiles": [ @@ -16,11 +16,14 @@ "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.csharp\\4.5.0\\microsoft.csharp.4.5.0.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.data.sqlclient\\5.1.5\\microsoft.data.sqlclient.5.1.5.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.data.sqlclient.sni.runtime\\5.1.1\\microsoft.data.sqlclient.sni.runtime.5.1.1.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.data.sqlite.core\\8.0.8\\microsoft.data.sqlite.core.8.0.8.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore\\8.0.8\\microsoft.entityframeworkcore.8.0.8.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore.abstractions\\8.0.8\\microsoft.entityframeworkcore.abstractions.8.0.8.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore.analyzers\\8.0.8\\microsoft.entityframeworkcore.analyzers.8.0.8.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore.design\\8.0.8\\microsoft.entityframeworkcore.design.8.0.8.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore.relational\\8.0.8\\microsoft.entityframeworkcore.relational.8.0.8.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore.sqlite\\8.0.8\\microsoft.entityframeworkcore.sqlite.8.0.8.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore.sqlite.core\\8.0.8\\microsoft.entityframeworkcore.sqlite.core.8.0.8.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore.sqlserver\\8.0.8\\microsoft.entityframeworkcore.sqlserver.8.0.8.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.extensions.caching.abstractions\\8.0.0\\microsoft.extensions.caching.abstractions.8.0.0.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.extensions.caching.memory\\8.0.0\\microsoft.extensions.caching.memory.8.0.0.nupkg.sha512", @@ -47,6 +50,10 @@ "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.web.webview2\\1.0.864.35\\microsoft.web.webview2.1.0.864.35.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.win32.systemevents\\6.0.0\\microsoft.win32.systemevents.6.0.0.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\mono.texttemplating\\2.2.1\\mono.texttemplating.2.2.1.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\sqlitepclraw.bundle_e_sqlite3\\2.1.6\\sqlitepclraw.bundle_e_sqlite3.2.1.6.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\sqlitepclraw.core\\2.1.6\\sqlitepclraw.core.2.1.6.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\sqlitepclraw.lib.e_sqlite3\\2.1.6\\sqlitepclraw.lib.e_sqlite3.2.1.6.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\sqlitepclraw.provider.e_sqlite3\\2.1.6\\sqlitepclraw.provider.e_sqlite3.2.1.6.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\system.codedom\\4.4.0\\system.codedom.4.4.0.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\system.collections.immutable\\6.0.0\\system.collections.immutable.6.0.0.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\system.composition\\6.0.0\\system.composition.6.0.0.nupkg.sha512", diff --git a/testing/bin/Debug/net8.0/Entidades.dll b/testing/bin/Debug/net8.0/Entidades.dll index 16b2eae..8416213 100644 Binary files a/testing/bin/Debug/net8.0/Entidades.dll and b/testing/bin/Debug/net8.0/Entidades.dll differ diff --git a/testing/bin/Debug/net8.0/Entidades.pdb b/testing/bin/Debug/net8.0/Entidades.pdb index c72e326..b8316e6 100644 Binary files a/testing/bin/Debug/net8.0/Entidades.pdb and b/testing/bin/Debug/net8.0/Entidades.pdb differ diff --git a/testing/bin/Debug/net8.0/Microsoft.Data.Sqlite.dll b/testing/bin/Debug/net8.0/Microsoft.Data.Sqlite.dll new file mode 100644 index 0000000..4fd360f Binary files /dev/null and b/testing/bin/Debug/net8.0/Microsoft.Data.Sqlite.dll differ diff --git a/testing/bin/Debug/net8.0/Microsoft.EntityFrameworkCore.Sqlite.dll b/testing/bin/Debug/net8.0/Microsoft.EntityFrameworkCore.Sqlite.dll new file mode 100644 index 0000000..234323a Binary files /dev/null and b/testing/bin/Debug/net8.0/Microsoft.EntityFrameworkCore.Sqlite.dll differ diff --git a/testing/bin/Debug/net8.0/Microsoft.Extensions.DependencyModel.dll b/testing/bin/Debug/net8.0/Microsoft.Extensions.DependencyModel.dll new file mode 100644 index 0000000..c55e07f Binary files /dev/null and b/testing/bin/Debug/net8.0/Microsoft.Extensions.DependencyModel.dll differ diff --git a/testing/bin/Debug/net8.0/Modelo.dll b/testing/bin/Debug/net8.0/Modelo.dll index 43fbe35..b0743bd 100644 Binary files a/testing/bin/Debug/net8.0/Modelo.dll and b/testing/bin/Debug/net8.0/Modelo.dll differ diff --git a/testing/bin/Debug/net8.0/Modelo.pdb b/testing/bin/Debug/net8.0/Modelo.pdb index ca11292..d7da8a6 100644 Binary files a/testing/bin/Debug/net8.0/Modelo.pdb and b/testing/bin/Debug/net8.0/Modelo.pdb differ diff --git a/testing/bin/Debug/net8.0/SQLitePCLRaw.batteries_v2.dll b/testing/bin/Debug/net8.0/SQLitePCLRaw.batteries_v2.dll new file mode 100644 index 0000000..f9eb46b Binary files /dev/null and b/testing/bin/Debug/net8.0/SQLitePCLRaw.batteries_v2.dll differ diff --git a/testing/bin/Debug/net8.0/SQLitePCLRaw.core.dll b/testing/bin/Debug/net8.0/SQLitePCLRaw.core.dll new file mode 100644 index 0000000..556d40f Binary files /dev/null and b/testing/bin/Debug/net8.0/SQLitePCLRaw.core.dll differ diff --git a/testing/bin/Debug/net8.0/SQLitePCLRaw.provider.e_sqlite3.dll b/testing/bin/Debug/net8.0/SQLitePCLRaw.provider.e_sqlite3.dll new file mode 100644 index 0000000..fc5919d Binary files /dev/null and b/testing/bin/Debug/net8.0/SQLitePCLRaw.provider.e_sqlite3.dll differ diff --git a/testing/bin/Debug/net8.0/runtimes/browser-wasm/nativeassets/net8.0/e_sqlite3.a b/testing/bin/Debug/net8.0/runtimes/browser-wasm/nativeassets/net8.0/e_sqlite3.a new file mode 100644 index 0000000..ace30e6 Binary files /dev/null and b/testing/bin/Debug/net8.0/runtimes/browser-wasm/nativeassets/net8.0/e_sqlite3.a differ diff --git a/testing/bin/Debug/net8.0/runtimes/linux-arm/native/libe_sqlite3.so b/testing/bin/Debug/net8.0/runtimes/linux-arm/native/libe_sqlite3.so new file mode 100644 index 0000000..8520492 Binary files /dev/null and b/testing/bin/Debug/net8.0/runtimes/linux-arm/native/libe_sqlite3.so differ diff --git a/testing/bin/Debug/net8.0/runtimes/linux-arm64/native/libe_sqlite3.so b/testing/bin/Debug/net8.0/runtimes/linux-arm64/native/libe_sqlite3.so new file mode 100644 index 0000000..30b84ea Binary files /dev/null and b/testing/bin/Debug/net8.0/runtimes/linux-arm64/native/libe_sqlite3.so differ diff --git a/testing/bin/Debug/net8.0/runtimes/linux-armel/native/libe_sqlite3.so b/testing/bin/Debug/net8.0/runtimes/linux-armel/native/libe_sqlite3.so new file mode 100644 index 0000000..48de629 Binary files /dev/null and b/testing/bin/Debug/net8.0/runtimes/linux-armel/native/libe_sqlite3.so differ diff --git a/testing/bin/Debug/net8.0/runtimes/linux-mips64/native/libe_sqlite3.so b/testing/bin/Debug/net8.0/runtimes/linux-mips64/native/libe_sqlite3.so new file mode 100644 index 0000000..4f7d693 Binary files /dev/null and b/testing/bin/Debug/net8.0/runtimes/linux-mips64/native/libe_sqlite3.so differ diff --git a/testing/bin/Debug/net8.0/runtimes/linux-musl-arm/native/libe_sqlite3.so b/testing/bin/Debug/net8.0/runtimes/linux-musl-arm/native/libe_sqlite3.so new file mode 100644 index 0000000..2c9dcda Binary files /dev/null and b/testing/bin/Debug/net8.0/runtimes/linux-musl-arm/native/libe_sqlite3.so differ diff --git a/testing/bin/Debug/net8.0/runtimes/linux-musl-arm64/native/libe_sqlite3.so b/testing/bin/Debug/net8.0/runtimes/linux-musl-arm64/native/libe_sqlite3.so new file mode 100644 index 0000000..53949cf Binary files /dev/null and b/testing/bin/Debug/net8.0/runtimes/linux-musl-arm64/native/libe_sqlite3.so differ diff --git a/testing/bin/Debug/net8.0/runtimes/linux-musl-x64/native/libe_sqlite3.so b/testing/bin/Debug/net8.0/runtimes/linux-musl-x64/native/libe_sqlite3.so new file mode 100644 index 0000000..a043d7d Binary files /dev/null and b/testing/bin/Debug/net8.0/runtimes/linux-musl-x64/native/libe_sqlite3.so differ diff --git a/testing/bin/Debug/net8.0/runtimes/linux-ppc64le/native/libe_sqlite3.so b/testing/bin/Debug/net8.0/runtimes/linux-ppc64le/native/libe_sqlite3.so new file mode 100644 index 0000000..3593c9b Binary files /dev/null and b/testing/bin/Debug/net8.0/runtimes/linux-ppc64le/native/libe_sqlite3.so differ diff --git a/testing/bin/Debug/net8.0/runtimes/linux-s390x/native/libe_sqlite3.so b/testing/bin/Debug/net8.0/runtimes/linux-s390x/native/libe_sqlite3.so new file mode 100644 index 0000000..7e01b91 Binary files /dev/null and b/testing/bin/Debug/net8.0/runtimes/linux-s390x/native/libe_sqlite3.so differ diff --git a/testing/bin/Debug/net8.0/runtimes/linux-x64/native/libe_sqlite3.so b/testing/bin/Debug/net8.0/runtimes/linux-x64/native/libe_sqlite3.so new file mode 100644 index 0000000..a8f9ae0 Binary files /dev/null and b/testing/bin/Debug/net8.0/runtimes/linux-x64/native/libe_sqlite3.so differ diff --git a/testing/bin/Debug/net8.0/runtimes/linux-x86/native/libe_sqlite3.so b/testing/bin/Debug/net8.0/runtimes/linux-x86/native/libe_sqlite3.so new file mode 100644 index 0000000..f9a9b69 Binary files /dev/null and b/testing/bin/Debug/net8.0/runtimes/linux-x86/native/libe_sqlite3.so differ diff --git a/testing/bin/Debug/net8.0/runtimes/maccatalyst-arm64/native/libe_sqlite3.dylib b/testing/bin/Debug/net8.0/runtimes/maccatalyst-arm64/native/libe_sqlite3.dylib new file mode 100644 index 0000000..e6612c5 Binary files /dev/null and b/testing/bin/Debug/net8.0/runtimes/maccatalyst-arm64/native/libe_sqlite3.dylib differ diff --git a/testing/bin/Debug/net8.0/runtimes/maccatalyst-x64/native/libe_sqlite3.dylib b/testing/bin/Debug/net8.0/runtimes/maccatalyst-x64/native/libe_sqlite3.dylib new file mode 100644 index 0000000..3ad1142 Binary files /dev/null and b/testing/bin/Debug/net8.0/runtimes/maccatalyst-x64/native/libe_sqlite3.dylib differ diff --git a/testing/bin/Debug/net8.0/runtimes/osx-arm64/native/libe_sqlite3.dylib b/testing/bin/Debug/net8.0/runtimes/osx-arm64/native/libe_sqlite3.dylib new file mode 100644 index 0000000..21a8f42 Binary files /dev/null and b/testing/bin/Debug/net8.0/runtimes/osx-arm64/native/libe_sqlite3.dylib differ diff --git a/testing/bin/Debug/net8.0/runtimes/osx-x64/native/libe_sqlite3.dylib b/testing/bin/Debug/net8.0/runtimes/osx-x64/native/libe_sqlite3.dylib new file mode 100644 index 0000000..ffaf82f Binary files /dev/null and b/testing/bin/Debug/net8.0/runtimes/osx-x64/native/libe_sqlite3.dylib differ diff --git a/testing/bin/Debug/net8.0/runtimes/win-arm/native/e_sqlite3.dll b/testing/bin/Debug/net8.0/runtimes/win-arm/native/e_sqlite3.dll new file mode 100644 index 0000000..454821f Binary files /dev/null and b/testing/bin/Debug/net8.0/runtimes/win-arm/native/e_sqlite3.dll differ diff --git a/testing/bin/Debug/net8.0/runtimes/win-arm64/native/e_sqlite3.dll b/testing/bin/Debug/net8.0/runtimes/win-arm64/native/e_sqlite3.dll new file mode 100644 index 0000000..70805d9 Binary files /dev/null and b/testing/bin/Debug/net8.0/runtimes/win-arm64/native/e_sqlite3.dll differ diff --git a/testing/bin/Debug/net8.0/runtimes/win-x64/native/e_sqlite3.dll b/testing/bin/Debug/net8.0/runtimes/win-x64/native/e_sqlite3.dll new file mode 100644 index 0000000..379665c Binary files /dev/null and b/testing/bin/Debug/net8.0/runtimes/win-x64/native/e_sqlite3.dll differ diff --git a/testing/bin/Debug/net8.0/runtimes/win-x86/native/e_sqlite3.dll b/testing/bin/Debug/net8.0/runtimes/win-x86/native/e_sqlite3.dll new file mode 100644 index 0000000..c0e722d Binary files /dev/null and b/testing/bin/Debug/net8.0/runtimes/win-x86/native/e_sqlite3.dll differ diff --git a/testing/bin/Debug/net8.0/testing.deps.json b/testing/bin/Debug/net8.0/testing.deps.json index b5767d0..013526b 100644 --- a/testing/bin/Debug/net8.0/testing.deps.json +++ b/testing/bin/Debug/net8.0/testing.deps.json @@ -25,8 +25,8 @@ "System.Diagnostics.DiagnosticSource": "6.0.1", "System.Memory.Data": "1.0.2", "System.Numerics.Vectors": "4.5.0", - "System.Text.Encodings.Web": "6.0.0", - "System.Text.Json": "4.7.2", + "System.Text.Encodings.Web": "8.0.0", + "System.Text.Json": "8.0.4", "System.Threading.Tasks.Extensions": "4.5.4" }, "runtime": { @@ -43,7 +43,7 @@ "Microsoft.Identity.Client.Extensions.Msal": "4.56.0", "System.Memory": "4.5.4", "System.Security.Cryptography.ProtectedData": "6.0.0", - "System.Text.Json": "4.7.2", + "System.Text.Json": "8.0.4", "System.Threading.Tasks.Extensions": "4.5.4" }, "runtime": { @@ -85,7 +85,7 @@ "System.Security.Cryptography.Cng": "5.0.0", "System.Security.Principal.Windows": "5.0.0", "System.Text.Encoding.CodePages": "6.0.0", - "System.Text.Encodings.Web": "6.0.0" + "System.Text.Encodings.Web": "8.0.0" }, "runtime": { "lib/net6.0/Microsoft.Data.SqlClient.dll": { @@ -132,6 +132,17 @@ } } }, + "Microsoft.Data.Sqlite.Core/8.0.8": { + "dependencies": { + "SQLitePCLRaw.core": "2.1.6" + }, + "runtime": { + "lib/net8.0/Microsoft.Data.Sqlite.dll": { + "assemblyVersion": "8.0.8.0", + "fileVersion": "8.0.824.36704" + } + } + }, "Microsoft.EntityFrameworkCore/8.0.8": { "dependencies": { "Microsoft.EntityFrameworkCore.Abstractions": "8.0.8", @@ -167,6 +178,25 @@ } } }, + "Microsoft.EntityFrameworkCore.Sqlite/8.0.8": { + "dependencies": { + "Microsoft.EntityFrameworkCore.Sqlite.Core": "8.0.8", + "SQLitePCLRaw.bundle_e_sqlite3": "2.1.6" + } + }, + "Microsoft.EntityFrameworkCore.Sqlite.Core/8.0.8": { + "dependencies": { + "Microsoft.Data.Sqlite.Core": "8.0.8", + "Microsoft.EntityFrameworkCore.Relational": "8.0.8", + "Microsoft.Extensions.DependencyModel": "8.0.1" + }, + "runtime": { + "lib/net8.0/Microsoft.EntityFrameworkCore.Sqlite.dll": { + "assemblyVersion": "8.0.8.0", + "fileVersion": "8.0.824.36704" + } + } + }, "Microsoft.EntityFrameworkCore.SqlServer/8.0.8": { "dependencies": { "Microsoft.Data.SqlClient": "5.1.5", @@ -235,6 +265,18 @@ } } }, + "Microsoft.Extensions.DependencyModel/8.0.1": { + "dependencies": { + "System.Text.Encodings.Web": "8.0.0", + "System.Text.Json": "8.0.4" + }, + "runtime": { + "lib/net8.0/Microsoft.Extensions.DependencyModel.dll": { + "assemblyVersion": "8.0.0.1", + "fileVersion": "8.0.724.31311" + } + } + }, "Microsoft.Extensions.Logging/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "8.0.0", @@ -315,8 +357,8 @@ "dependencies": { "Microsoft.IdentityModel.Tokens": "6.35.0", "System.Text.Encoding": "4.3.0", - "System.Text.Encodings.Web": "6.0.0", - "System.Text.Json": "4.7.2" + "System.Text.Encodings.Web": "8.0.0", + "System.Text.Json": "8.0.4" }, "runtime": { "lib/net6.0/Microsoft.IdentityModel.JsonWebTokens.dll": { @@ -673,6 +715,144 @@ }, "NUnit.Analyzers/4.3.0": {}, "NUnit3TestAdapter/4.6.0": {}, + "SQLitePCLRaw.bundle_e_sqlite3/2.1.6": { + "dependencies": { + "SQLitePCLRaw.lib.e_sqlite3": "2.1.6", + "SQLitePCLRaw.provider.e_sqlite3": "2.1.6" + }, + "runtime": { + "lib/netstandard2.0/SQLitePCLRaw.batteries_v2.dll": { + "assemblyVersion": "2.1.6.2060", + "fileVersion": "2.1.6.2060" + } + } + }, + "SQLitePCLRaw.core/2.1.6": { + "dependencies": { + "System.Memory": "4.5.4" + }, + "runtime": { + "lib/netstandard2.0/SQLitePCLRaw.core.dll": { + "assemblyVersion": "2.1.6.2060", + "fileVersion": "2.1.6.2060" + } + } + }, + "SQLitePCLRaw.lib.e_sqlite3/2.1.6": { + "runtimeTargets": { + "runtimes/browser-wasm/nativeassets/net8.0/e_sqlite3.a": { + "rid": "browser-wasm", + "assetType": "native", + "fileVersion": "0.0.0.0" + }, + "runtimes/linux-arm/native/libe_sqlite3.so": { + "rid": "linux-arm", + "assetType": "native", + "fileVersion": "0.0.0.0" + }, + "runtimes/linux-arm64/native/libe_sqlite3.so": { + "rid": "linux-arm64", + "assetType": "native", + "fileVersion": "0.0.0.0" + }, + "runtimes/linux-armel/native/libe_sqlite3.so": { + "rid": "linux-armel", + "assetType": "native", + "fileVersion": "0.0.0.0" + }, + "runtimes/linux-mips64/native/libe_sqlite3.so": { + "rid": "linux-mips64", + "assetType": "native", + "fileVersion": "0.0.0.0" + }, + "runtimes/linux-musl-arm/native/libe_sqlite3.so": { + "rid": "linux-musl-arm", + "assetType": "native", + "fileVersion": "0.0.0.0" + }, + "runtimes/linux-musl-arm64/native/libe_sqlite3.so": { + "rid": "linux-musl-arm64", + "assetType": "native", + "fileVersion": "0.0.0.0" + }, + "runtimes/linux-musl-x64/native/libe_sqlite3.so": { + "rid": "linux-musl-x64", + "assetType": "native", + "fileVersion": "0.0.0.0" + }, + "runtimes/linux-ppc64le/native/libe_sqlite3.so": { + "rid": "linux-ppc64le", + "assetType": "native", + "fileVersion": "0.0.0.0" + }, + "runtimes/linux-s390x/native/libe_sqlite3.so": { + "rid": "linux-s390x", + "assetType": "native", + "fileVersion": "0.0.0.0" + }, + "runtimes/linux-x64/native/libe_sqlite3.so": { + "rid": "linux-x64", + "assetType": "native", + "fileVersion": "0.0.0.0" + }, + "runtimes/linux-x86/native/libe_sqlite3.so": { + "rid": "linux-x86", + "assetType": "native", + "fileVersion": "0.0.0.0" + }, + "runtimes/maccatalyst-arm64/native/libe_sqlite3.dylib": { + "rid": "maccatalyst-arm64", + "assetType": "native", + "fileVersion": "0.0.0.0" + }, + "runtimes/maccatalyst-x64/native/libe_sqlite3.dylib": { + "rid": "maccatalyst-x64", + "assetType": "native", + "fileVersion": "0.0.0.0" + }, + "runtimes/osx-arm64/native/libe_sqlite3.dylib": { + "rid": "osx-arm64", + "assetType": "native", + "fileVersion": "0.0.0.0" + }, + "runtimes/osx-x64/native/libe_sqlite3.dylib": { + "rid": "osx-x64", + "assetType": "native", + "fileVersion": "0.0.0.0" + }, + "runtimes/win-arm/native/e_sqlite3.dll": { + "rid": "win-arm", + "assetType": "native", + "fileVersion": "0.0.0.0" + }, + "runtimes/win-arm64/native/e_sqlite3.dll": { + "rid": "win-arm64", + "assetType": "native", + "fileVersion": "0.0.0.0" + }, + "runtimes/win-x64/native/e_sqlite3.dll": { + "rid": "win-x64", + "assetType": "native", + "fileVersion": "0.0.0.0" + }, + "runtimes/win-x86/native/e_sqlite3.dll": { + "rid": "win-x86", + "assetType": "native", + "fileVersion": "0.0.0.0" + } + } + }, + "SQLitePCLRaw.provider.e_sqlite3/2.1.6": { + "dependencies": { + "SQLitePCLRaw.core": "2.1.6" + }, + "runtime": { + "lib/net6.0/SQLitePCLRaw.provider.e_sqlite3.dll": { + "assemblyVersion": "2.1.6.2060", + "fileVersion": "2.1.6.2060" + } + } + }, "System.Configuration.ConfigurationManager/6.0.1": { "dependencies": { "System.Security.Cryptography.ProtectedData": "6.0.0", @@ -737,8 +917,8 @@ "System.Memory/4.5.4": {}, "System.Memory.Data/1.0.2": { "dependencies": { - "System.Text.Encodings.Web": "6.0.0", - "System.Text.Json": "4.7.2" + "System.Text.Encodings.Web": "8.0.0", + "System.Text.Json": "8.0.4" }, "runtime": { "lib/netstandard2.0/System.Memory.Data.dll": { @@ -822,12 +1002,12 @@ "System.Runtime.CompilerServices.Unsafe": "6.0.0" } }, - "System.Text.Encodings.Web/6.0.0": { + "System.Text.Encodings.Web/8.0.0": {}, + "System.Text.Json/8.0.4": { "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0" + "System.Text.Encodings.Web": "8.0.0" } }, - "System.Text.Json/4.7.2": {}, "System.Threading.Tasks.Extensions/4.5.4": {}, "System.Windows.Extensions/6.0.0": { "dependencies": { @@ -860,7 +1040,8 @@ "dependencies": { "Entidades": "1.0.0", "Microsoft.EntityFrameworkCore": "8.0.8", - "Microsoft.EntityFrameworkCore.SqlServer": "8.0.8" + "Microsoft.EntityFrameworkCore.SqlServer": "8.0.8", + "Microsoft.EntityFrameworkCore.Sqlite": "8.0.8" }, "runtime": { "Modelo.dll": { @@ -933,6 +1114,13 @@ "path": "microsoft.data.sqlclient.sni.runtime/5.1.1", "hashPath": "microsoft.data.sqlclient.sni.runtime.5.1.1.nupkg.sha512" }, + "Microsoft.Data.Sqlite.Core/8.0.8": { + "type": "package", + "serviceable": true, + "sha512": "sha512-qHInO2EvOcPhjgboP0TGnXM7rASdvWXrw6jAH8Yuz5YP82VTje7d/NKiX1i+dVbE3+G3JuW1kqNVB8yLvsqgYA==", + "path": "microsoft.data.sqlite.core/8.0.8", + "hashPath": "microsoft.data.sqlite.core.8.0.8.nupkg.sha512" + }, "Microsoft.EntityFrameworkCore/8.0.8": { "type": "package", "serviceable": true, @@ -961,6 +1149,20 @@ "path": "microsoft.entityframeworkcore.relational/8.0.8", "hashPath": "microsoft.entityframeworkcore.relational.8.0.8.nupkg.sha512" }, + "Microsoft.EntityFrameworkCore.Sqlite/8.0.8": { + "type": "package", + "serviceable": true, + "sha512": "sha512-IDB7Xs16hN/3VkWFCCa4r3fqoJxMVezwq418gr8dBkRBO0pxH+BX/Kjk/U3PYXDvzVLkXqUgJsHv1XoFrJbZPQ==", + "path": "microsoft.entityframeworkcore.sqlite/8.0.8", + "hashPath": "microsoft.entityframeworkcore.sqlite.8.0.8.nupkg.sha512" + }, + "Microsoft.EntityFrameworkCore.Sqlite.Core/8.0.8": { + "type": "package", + "serviceable": true, + "sha512": "sha512-w5k/ENj3+BPbmggqh83RRuPhhKcJmW7CmdJuGwdX1eFrmptJwnzKiHfQCPkJAu9df16PSs5YFeWrDgepfqnltA==", + "path": "microsoft.entityframeworkcore.sqlite.core/8.0.8", + "hashPath": "microsoft.entityframeworkcore.sqlite.core.8.0.8.nupkg.sha512" + }, "Microsoft.EntityFrameworkCore.SqlServer/8.0.8": { "type": "package", "serviceable": true, @@ -1003,6 +1205,13 @@ "path": "microsoft.extensions.dependencyinjection.abstractions/8.0.0", "hashPath": "microsoft.extensions.dependencyinjection.abstractions.8.0.0.nupkg.sha512" }, + "Microsoft.Extensions.DependencyModel/8.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-5Ou6varcxLBzQ+Agfm0k0pnH7vrEITYlXMDuE6s7ZHlZHz6/G8XJ3iISZDr5rfwfge6RnXJ1+Wc479mMn52vjA==", + "path": "microsoft.extensions.dependencymodel/8.0.1", + "hashPath": "microsoft.extensions.dependencymodel.8.0.1.nupkg.sha512" + }, "Microsoft.Extensions.Logging/8.0.0": { "type": "package", "serviceable": true, @@ -1164,6 +1373,34 @@ "path": "nunit3testadapter/4.6.0", "hashPath": "nunit3testadapter.4.6.0.nupkg.sha512" }, + "SQLitePCLRaw.bundle_e_sqlite3/2.1.6": { + "type": "package", + "serviceable": true, + "sha512": "sha512-BmAf6XWt4TqtowmiWe4/5rRot6GerAeklmOPfviOvwLoF5WwgxcJHAxZtySuyW9r9w+HLILnm8VfJFLCUJYW8A==", + "path": "sqlitepclraw.bundle_e_sqlite3/2.1.6", + "hashPath": "sqlitepclraw.bundle_e_sqlite3.2.1.6.nupkg.sha512" + }, + "SQLitePCLRaw.core/2.1.6": { + "type": "package", + "serviceable": true, + "sha512": "sha512-wO6v9GeMx9CUngAet8hbO7xdm+M42p1XeJq47ogyRoYSvNSp0NGLI+MgC0bhrMk9C17MTVFlLiN6ylyExLCc5w==", + "path": "sqlitepclraw.core/2.1.6", + "hashPath": "sqlitepclraw.core.2.1.6.nupkg.sha512" + }, + "SQLitePCLRaw.lib.e_sqlite3/2.1.6": { + "type": "package", + "serviceable": true, + "sha512": "sha512-2ObJJLkIUIxRpOUlZNGuD4rICpBnrBR5anjyfUFQep4hMOIeqW+XGQYzrNmHSVz5xSWZ3klSbh7sFR6UyDj68Q==", + "path": "sqlitepclraw.lib.e_sqlite3/2.1.6", + "hashPath": "sqlitepclraw.lib.e_sqlite3.2.1.6.nupkg.sha512" + }, + "SQLitePCLRaw.provider.e_sqlite3/2.1.6": { + "type": "package", + "serviceable": true, + "sha512": "sha512-PQ2Oq3yepLY4P7ll145P3xtx2bX8xF4PzaKPRpw9jZlKvfe4LE/saAV82inND9usn1XRpmxXk7Lal3MTI+6CNg==", + "path": "sqlitepclraw.provider.e_sqlite3/2.1.6", + "hashPath": "sqlitepclraw.provider.e_sqlite3.2.1.6.nupkg.sha512" + }, "System.Configuration.ConfigurationManager/6.0.1": { "type": "package", "serviceable": true, @@ -1304,19 +1541,19 @@ "path": "system.text.encoding.codepages/6.0.0", "hashPath": "system.text.encoding.codepages.6.0.0.nupkg.sha512" }, - "System.Text.Encodings.Web/6.0.0": { + "System.Text.Encodings.Web/8.0.0": { "type": "package", "serviceable": true, - "sha512": "sha512-Vg8eB5Tawm1IFqj4TVK1czJX89rhFxJo9ELqc/Eiq0eXy13RK00eubyU6TJE6y+GQXjyV5gSfiewDUZjQgSE0w==", - "path": "system.text.encodings.web/6.0.0", - "hashPath": "system.text.encodings.web.6.0.0.nupkg.sha512" + "sha512": "sha512-yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", + "path": "system.text.encodings.web/8.0.0", + "hashPath": "system.text.encodings.web.8.0.0.nupkg.sha512" }, - "System.Text.Json/4.7.2": { + "System.Text.Json/8.0.4": { "type": "package", "serviceable": true, - "sha512": "sha512-TcMd95wcrubm9nHvJEQs70rC0H/8omiSGGpU4FQ/ZA1URIqD4pjmFJh2Mfv1yH1eHgJDWTi2hMDXwTET+zOOyg==", - "path": "system.text.json/4.7.2", - "hashPath": "system.text.json.4.7.2.nupkg.sha512" + "sha512": "sha512-bAkhgDJ88XTsqczoxEMliSrpijKZHhbJQldhAmObj/RbrN3sU5dcokuXmWJWsdQAhiMJ9bTayWsL1C9fbbCRhw==", + "path": "system.text.json/8.0.4", + "hashPath": "system.text.json.8.0.4.nupkg.sha512" }, "System.Threading.Tasks.Extensions/4.5.4": { "type": "package", diff --git a/testing/bin/Debug/net8.0/testing.dll b/testing/bin/Debug/net8.0/testing.dll index 4d9da85..0194216 100644 Binary files a/testing/bin/Debug/net8.0/testing.dll and b/testing/bin/Debug/net8.0/testing.dll differ diff --git a/testing/bin/Debug/net8.0/testing.pdb b/testing/bin/Debug/net8.0/testing.pdb index 7c3d7d6..9ff2158 100644 Binary files a/testing/bin/Debug/net8.0/testing.pdb and b/testing/bin/Debug/net8.0/testing.pdb differ diff --git a/testing/obj/Debug/net8.0/ref/testing.dll b/testing/obj/Debug/net8.0/ref/testing.dll index ead2a66..56c6e57 100644 Binary files a/testing/obj/Debug/net8.0/ref/testing.dll and b/testing/obj/Debug/net8.0/ref/testing.dll differ diff --git a/testing/obj/Debug/net8.0/refint/testing.dll b/testing/obj/Debug/net8.0/refint/testing.dll index ead2a66..56c6e57 100644 Binary files a/testing/obj/Debug/net8.0/refint/testing.dll and b/testing/obj/Debug/net8.0/refint/testing.dll differ diff --git a/testing/obj/Debug/net8.0/testing.AssemblyInfo.cs b/testing/obj/Debug/net8.0/testing.AssemblyInfo.cs index 5f9ab21..8d5a4a9 100644 --- a/testing/obj/Debug/net8.0/testing.AssemblyInfo.cs +++ b/testing/obj/Debug/net8.0/testing.AssemblyInfo.cs @@ -14,7 +14,7 @@ using System.Reflection; [assembly: System.Reflection.AssemblyCompanyAttribute("testing")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+c15ae743ab4e6f1c270349cbe1eadde8c6404874")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+393caac989bc21fa565a3f37f2db36fec8e62f3b")] [assembly: System.Reflection.AssemblyProductAttribute("testing")] [assembly: System.Reflection.AssemblyTitleAttribute("testing")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] diff --git a/testing/obj/Debug/net8.0/testing.AssemblyInfoInputs.cache b/testing/obj/Debug/net8.0/testing.AssemblyInfoInputs.cache index 4f06a88..b95e082 100644 --- a/testing/obj/Debug/net8.0/testing.AssemblyInfoInputs.cache +++ b/testing/obj/Debug/net8.0/testing.AssemblyInfoInputs.cache @@ -1 +1 @@ -61c944394d80796eab68c80421f3d70d87e7c76b24136ff08a133fa8b31e15fa +44505325d713c4e34fbd482fe5605c51a1e1d88b38aa7fb13c0c45363244a32f diff --git a/testing/obj/Debug/net8.0/testing.assets.cache b/testing/obj/Debug/net8.0/testing.assets.cache index b8a07b7..cb46a76 100644 Binary files a/testing/obj/Debug/net8.0/testing.assets.cache and b/testing/obj/Debug/net8.0/testing.assets.cache differ diff --git a/testing/obj/Debug/net8.0/testing.csproj.AssemblyReference.cache b/testing/obj/Debug/net8.0/testing.csproj.AssemblyReference.cache index ca343b1..138f58b 100644 Binary files a/testing/obj/Debug/net8.0/testing.csproj.AssemblyReference.cache and b/testing/obj/Debug/net8.0/testing.csproj.AssemblyReference.cache differ diff --git a/testing/obj/Debug/net8.0/testing.csproj.CoreCompileInputs.cache b/testing/obj/Debug/net8.0/testing.csproj.CoreCompileInputs.cache index ce1d015..0b1ff6c 100644 --- a/testing/obj/Debug/net8.0/testing.csproj.CoreCompileInputs.cache +++ b/testing/obj/Debug/net8.0/testing.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -166e5c30706d1e63f7ccc614b81f88058752b8904f9b5eae500b3e0dd4eabef7 +9374421611809f29d5a891e9c02e3f0e7c4526c1fce4b339f64d0ec8b6da1b7b diff --git a/testing/obj/Debug/net8.0/testing.csproj.FileListAbsolute.txt b/testing/obj/Debug/net8.0/testing.csproj.FileListAbsolute.txt index 99b5b2f..e43e921 100644 --- a/testing/obj/Debug/net8.0/testing.csproj.FileListAbsolute.txt +++ b/testing/obj/Debug/net8.0/testing.csproj.FileListAbsolute.txt @@ -157,3 +157,29 @@ C:\Users\fedpo\source\repos\Final_Das\testing\obj\Debug\net8.0\refint\testing.dl C:\Users\fedpo\source\repos\Final_Das\testing\obj\Debug\net8.0\testing.pdb C:\Users\fedpo\source\repos\Final_Das\testing\obj\Debug\net8.0\testing.genruntimeconfig.cache C:\Users\fedpo\source\repos\Final_Das\testing\obj\Debug\net8.0\ref\testing.dll +C:\Users\fedpo\source\repos\Final_Das\testing\bin\Debug\net8.0\Microsoft.Data.Sqlite.dll +C:\Users\fedpo\source\repos\Final_Das\testing\bin\Debug\net8.0\Microsoft.EntityFrameworkCore.Sqlite.dll +C:\Users\fedpo\source\repos\Final_Das\testing\bin\Debug\net8.0\Microsoft.Extensions.DependencyModel.dll +C:\Users\fedpo\source\repos\Final_Das\testing\bin\Debug\net8.0\SQLitePCLRaw.batteries_v2.dll +C:\Users\fedpo\source\repos\Final_Das\testing\bin\Debug\net8.0\SQLitePCLRaw.core.dll +C:\Users\fedpo\source\repos\Final_Das\testing\bin\Debug\net8.0\SQLitePCLRaw.provider.e_sqlite3.dll +C:\Users\fedpo\source\repos\Final_Das\testing\bin\Debug\net8.0\runtimes\browser-wasm\nativeassets\net8.0\e_sqlite3.a +C:\Users\fedpo\source\repos\Final_Das\testing\bin\Debug\net8.0\runtimes\linux-arm\native\libe_sqlite3.so +C:\Users\fedpo\source\repos\Final_Das\testing\bin\Debug\net8.0\runtimes\linux-arm64\native\libe_sqlite3.so +C:\Users\fedpo\source\repos\Final_Das\testing\bin\Debug\net8.0\runtimes\linux-armel\native\libe_sqlite3.so +C:\Users\fedpo\source\repos\Final_Das\testing\bin\Debug\net8.0\runtimes\linux-mips64\native\libe_sqlite3.so +C:\Users\fedpo\source\repos\Final_Das\testing\bin\Debug\net8.0\runtimes\linux-musl-arm\native\libe_sqlite3.so +C:\Users\fedpo\source\repos\Final_Das\testing\bin\Debug\net8.0\runtimes\linux-musl-arm64\native\libe_sqlite3.so +C:\Users\fedpo\source\repos\Final_Das\testing\bin\Debug\net8.0\runtimes\linux-musl-x64\native\libe_sqlite3.so +C:\Users\fedpo\source\repos\Final_Das\testing\bin\Debug\net8.0\runtimes\linux-ppc64le\native\libe_sqlite3.so +C:\Users\fedpo\source\repos\Final_Das\testing\bin\Debug\net8.0\runtimes\linux-s390x\native\libe_sqlite3.so +C:\Users\fedpo\source\repos\Final_Das\testing\bin\Debug\net8.0\runtimes\linux-x64\native\libe_sqlite3.so +C:\Users\fedpo\source\repos\Final_Das\testing\bin\Debug\net8.0\runtimes\linux-x86\native\libe_sqlite3.so +C:\Users\fedpo\source\repos\Final_Das\testing\bin\Debug\net8.0\runtimes\maccatalyst-arm64\native\libe_sqlite3.dylib +C:\Users\fedpo\source\repos\Final_Das\testing\bin\Debug\net8.0\runtimes\maccatalyst-x64\native\libe_sqlite3.dylib +C:\Users\fedpo\source\repos\Final_Das\testing\bin\Debug\net8.0\runtimes\osx-arm64\native\libe_sqlite3.dylib +C:\Users\fedpo\source\repos\Final_Das\testing\bin\Debug\net8.0\runtimes\osx-x64\native\libe_sqlite3.dylib +C:\Users\fedpo\source\repos\Final_Das\testing\bin\Debug\net8.0\runtimes\win-arm\native\e_sqlite3.dll +C:\Users\fedpo\source\repos\Final_Das\testing\bin\Debug\net8.0\runtimes\win-arm64\native\e_sqlite3.dll +C:\Users\fedpo\source\repos\Final_Das\testing\bin\Debug\net8.0\runtimes\win-x64\native\e_sqlite3.dll +C:\Users\fedpo\source\repos\Final_Das\testing\bin\Debug\net8.0\runtimes\win-x86\native\e_sqlite3.dll diff --git a/testing/obj/Debug/net8.0/testing.dll b/testing/obj/Debug/net8.0/testing.dll index 4d9da85..0194216 100644 Binary files a/testing/obj/Debug/net8.0/testing.dll and b/testing/obj/Debug/net8.0/testing.dll differ diff --git a/testing/obj/Debug/net8.0/testing.pdb b/testing/obj/Debug/net8.0/testing.pdb index 7c3d7d6..9ff2158 100644 Binary files a/testing/obj/Debug/net8.0/testing.pdb and b/testing/obj/Debug/net8.0/testing.pdb differ diff --git a/testing/obj/project.assets.json b/testing/obj/project.assets.json index 896b220..fbdefe2 100644 --- a/testing/obj/project.assets.json +++ b/testing/obj/project.assets.json @@ -144,6 +144,22 @@ } } }, + "Microsoft.Data.Sqlite.Core/8.0.8": { + "type": "package", + "dependencies": { + "SQLitePCLRaw.core": "2.1.6" + }, + "compile": { + "lib/net8.0/Microsoft.Data.Sqlite.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/net8.0/Microsoft.Data.Sqlite.dll": { + "related": ".xml" + } + } + }, "Microsoft.EntityFrameworkCore/8.0.8": { "type": "package", "dependencies": { @@ -205,6 +221,37 @@ } } }, + "Microsoft.EntityFrameworkCore.Sqlite/8.0.8": { + "type": "package", + "dependencies": { + "Microsoft.EntityFrameworkCore.Sqlite.Core": "8.0.8", + "SQLitePCLRaw.bundle_e_sqlite3": "2.1.6" + }, + "compile": { + "lib/net8.0/_._": {} + }, + "runtime": { + "lib/net8.0/_._": {} + } + }, + "Microsoft.EntityFrameworkCore.Sqlite.Core/8.0.8": { + "type": "package", + "dependencies": { + "Microsoft.Data.Sqlite.Core": "8.0.8", + "Microsoft.EntityFrameworkCore.Relational": "8.0.8", + "Microsoft.Extensions.DependencyModel": "8.0.1" + }, + "compile": { + "lib/net8.0/Microsoft.EntityFrameworkCore.Sqlite.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/net8.0/Microsoft.EntityFrameworkCore.Sqlite.dll": { + "related": ".xml" + } + } + }, "Microsoft.EntityFrameworkCore.SqlServer/8.0.8": { "type": "package", "dependencies": { @@ -318,6 +365,26 @@ "buildTransitive/net6.0/_._": {} } }, + "Microsoft.Extensions.DependencyModel/8.0.1": { + "type": "package", + "dependencies": { + "System.Text.Encodings.Web": "8.0.0", + "System.Text.Json": "8.0.4" + }, + "compile": { + "lib/net8.0/Microsoft.Extensions.DependencyModel.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/net8.0/Microsoft.Extensions.DependencyModel.dll": { + "related": ".xml" + } + }, + "build": { + "buildTransitive/net6.0/_._": {} + } + }, "Microsoft.Extensions.Logging/8.0.0": { "type": "package", "dependencies": { @@ -894,6 +961,137 @@ "build/netcoreapp3.1/NUnit3TestAdapter.props": {} } }, + "SQLitePCLRaw.bundle_e_sqlite3/2.1.6": { + "type": "package", + "dependencies": { + "SQLitePCLRaw.lib.e_sqlite3": "2.1.6", + "SQLitePCLRaw.provider.e_sqlite3": "2.1.6" + }, + "compile": { + "lib/netstandard2.0/SQLitePCLRaw.batteries_v2.dll": {} + }, + "runtime": { + "lib/netstandard2.0/SQLitePCLRaw.batteries_v2.dll": {} + } + }, + "SQLitePCLRaw.core/2.1.6": { + "type": "package", + "dependencies": { + "System.Memory": "4.5.3" + }, + "compile": { + "lib/netstandard2.0/SQLitePCLRaw.core.dll": {} + }, + "runtime": { + "lib/netstandard2.0/SQLitePCLRaw.core.dll": {} + } + }, + "SQLitePCLRaw.lib.e_sqlite3/2.1.6": { + "type": "package", + "compile": { + "lib/netstandard2.0/_._": {} + }, + "runtime": { + "lib/netstandard2.0/_._": {} + }, + "build": { + "buildTransitive/net8.0/SQLitePCLRaw.lib.e_sqlite3.targets": {} + }, + "runtimeTargets": { + "runtimes/browser-wasm/nativeassets/net8.0/e_sqlite3.a": { + "assetType": "native", + "rid": "browser-wasm" + }, + "runtimes/linux-arm/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-arm" + }, + "runtimes/linux-arm64/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-arm64" + }, + "runtimes/linux-armel/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-armel" + }, + "runtimes/linux-mips64/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-mips64" + }, + "runtimes/linux-musl-arm/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-musl-arm" + }, + "runtimes/linux-musl-arm64/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-musl-arm64" + }, + "runtimes/linux-musl-x64/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-musl-x64" + }, + "runtimes/linux-ppc64le/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-ppc64le" + }, + "runtimes/linux-s390x/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-s390x" + }, + "runtimes/linux-x64/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-x64" + }, + "runtimes/linux-x86/native/libe_sqlite3.so": { + "assetType": "native", + "rid": "linux-x86" + }, + "runtimes/maccatalyst-arm64/native/libe_sqlite3.dylib": { + "assetType": "native", + "rid": "maccatalyst-arm64" + }, + "runtimes/maccatalyst-x64/native/libe_sqlite3.dylib": { + "assetType": "native", + "rid": "maccatalyst-x64" + }, + "runtimes/osx-arm64/native/libe_sqlite3.dylib": { + "assetType": "native", + "rid": "osx-arm64" + }, + "runtimes/osx-x64/native/libe_sqlite3.dylib": { + "assetType": "native", + "rid": "osx-x64" + }, + "runtimes/win-arm/native/e_sqlite3.dll": { + "assetType": "native", + "rid": "win-arm" + }, + "runtimes/win-arm64/native/e_sqlite3.dll": { + "assetType": "native", + "rid": "win-arm64" + }, + "runtimes/win-x64/native/e_sqlite3.dll": { + "assetType": "native", + "rid": "win-x64" + }, + "runtimes/win-x86/native/e_sqlite3.dll": { + "assetType": "native", + "rid": "win-x86" + } + } + }, + "SQLitePCLRaw.provider.e_sqlite3/2.1.6": { + "type": "package", + "dependencies": { + "SQLitePCLRaw.core": "2.1.6" + }, + "compile": { + "lib/net6.0/SQLitePCLRaw.provider.e_sqlite3.dll": {} + }, + "runtime": { + "lib/net6.0/SQLitePCLRaw.provider.e_sqlite3.dll": {} + } + }, "System.Configuration.ConfigurationManager/6.0.1": { "type": "package", "dependencies": { @@ -1263,42 +1461,45 @@ } } }, - "System.Text.Encodings.Web/6.0.0": { + "System.Text.Encodings.Web/8.0.0": { "type": "package", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - }, "compile": { - "lib/net6.0/System.Text.Encodings.Web.dll": { + "lib/net8.0/System.Text.Encodings.Web.dll": { "related": ".xml" } }, "runtime": { - "lib/net6.0/System.Text.Encodings.Web.dll": { + "lib/net8.0/System.Text.Encodings.Web.dll": { "related": ".xml" } }, "build": { - "buildTransitive/netcoreapp3.1/_._": {} + "buildTransitive/net6.0/_._": {} }, "runtimeTargets": { - "runtimes/browser/lib/net6.0/System.Text.Encodings.Web.dll": { + "runtimes/browser/lib/net8.0/System.Text.Encodings.Web.dll": { "assetType": "runtime", "rid": "browser" } } }, - "System.Text.Json/4.7.2": { + "System.Text.Json/8.0.4": { "type": "package", + "dependencies": { + "System.Text.Encodings.Web": "8.0.0" + }, "compile": { - "lib/netcoreapp3.0/System.Text.Json.dll": { + "lib/net8.0/System.Text.Json.dll": { "related": ".xml" } }, "runtime": { - "lib/netcoreapp3.0/System.Text.Json.dll": { + "lib/net8.0/System.Text.Json.dll": { "related": ".xml" } + }, + "build": { + "buildTransitive/net6.0/System.Text.Json.targets": {} } }, "System.Threading.Tasks.Extensions/4.5.4": { @@ -1348,7 +1549,8 @@ "dependencies": { "Entidades": "1.0.0", "Microsoft.EntityFrameworkCore": "8.0.8", - "Microsoft.EntityFrameworkCore.SqlServer": "8.0.8" + "Microsoft.EntityFrameworkCore.SqlServer": "8.0.8", + "Microsoft.EntityFrameworkCore.Sqlite": "8.0.8" }, "compile": { "bin/placeholder/Modelo.dll": {} @@ -1708,6 +1910,25 @@ "runtimes/win-x86/native/Microsoft.Data.SqlClient.SNI.dll" ] }, + "Microsoft.Data.Sqlite.Core/8.0.8": { + "sha512": "qHInO2EvOcPhjgboP0TGnXM7rASdvWXrw6jAH8Yuz5YP82VTje7d/NKiX1i+dVbE3+G3JuW1kqNVB8yLvsqgYA==", + "type": "package", + "path": "microsoft.data.sqlite.core/8.0.8", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "Icon.png", + "PACKAGE.md", + "lib/net6.0/Microsoft.Data.Sqlite.dll", + "lib/net6.0/Microsoft.Data.Sqlite.xml", + "lib/net8.0/Microsoft.Data.Sqlite.dll", + "lib/net8.0/Microsoft.Data.Sqlite.xml", + "lib/netstandard2.0/Microsoft.Data.Sqlite.dll", + "lib/netstandard2.0/Microsoft.Data.Sqlite.xml", + "microsoft.data.sqlite.core.8.0.8.nupkg.sha512", + "microsoft.data.sqlite.core.nuspec" + ] + }, "Microsoft.EntityFrameworkCore/8.0.8": { "sha512": "iK+jrJzkfbIxutB7or808BPmJtjUEi5O+eSM7cLDwsyde6+3iOujCSfWnrHrLxY3u+EQrJD+aD8DJ6ogPA2Rtw==", "type": "package", @@ -1769,6 +1990,35 @@ "microsoft.entityframeworkcore.relational.nuspec" ] }, + "Microsoft.EntityFrameworkCore.Sqlite/8.0.8": { + "sha512": "IDB7Xs16hN/3VkWFCCa4r3fqoJxMVezwq418gr8dBkRBO0pxH+BX/Kjk/U3PYXDvzVLkXqUgJsHv1XoFrJbZPQ==", + "type": "package", + "path": "microsoft.entityframeworkcore.sqlite/8.0.8", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "Icon.png", + "PACKAGE.md", + "lib/net8.0/_._", + "microsoft.entityframeworkcore.sqlite.8.0.8.nupkg.sha512", + "microsoft.entityframeworkcore.sqlite.nuspec" + ] + }, + "Microsoft.EntityFrameworkCore.Sqlite.Core/8.0.8": { + "sha512": "w5k/ENj3+BPbmggqh83RRuPhhKcJmW7CmdJuGwdX1eFrmptJwnzKiHfQCPkJAu9df16PSs5YFeWrDgepfqnltA==", + "type": "package", + "path": "microsoft.entityframeworkcore.sqlite.core/8.0.8", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "Icon.png", + "PACKAGE.md", + "lib/net8.0/Microsoft.EntityFrameworkCore.Sqlite.dll", + "lib/net8.0/Microsoft.EntityFrameworkCore.Sqlite.xml", + "microsoft.entityframeworkcore.sqlite.core.8.0.8.nupkg.sha512", + "microsoft.entityframeworkcore.sqlite.core.nuspec" + ] + }, "Microsoft.EntityFrameworkCore.SqlServer/8.0.8": { "sha512": "A2F52W+hnGqvprx37HcAnYnJv4QoFFdc9cxd/QGNSd1vCu1I0eAEKRd0r9KS3E5I5RRj/m9XJfYCyTdy1cdn5Q==", "type": "package", @@ -1938,6 +2188,36 @@ "useSharedDesignerContext.txt" ] }, + "Microsoft.Extensions.DependencyModel/8.0.1": { + "sha512": "5Ou6varcxLBzQ+Agfm0k0pnH7vrEITYlXMDuE6s7ZHlZHz6/G8XJ3iISZDr5rfwfge6RnXJ1+Wc479mMn52vjA==", + "type": "package", + "path": "microsoft.extensions.dependencymodel/8.0.1", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "Icon.png", + "LICENSE.TXT", + "PACKAGE.md", + "THIRD-PARTY-NOTICES.TXT", + "buildTransitive/net461/Microsoft.Extensions.DependencyModel.targets", + "buildTransitive/net462/_._", + "buildTransitive/net6.0/_._", + "buildTransitive/netcoreapp2.0/Microsoft.Extensions.DependencyModel.targets", + "lib/net462/Microsoft.Extensions.DependencyModel.dll", + "lib/net462/Microsoft.Extensions.DependencyModel.xml", + "lib/net6.0/Microsoft.Extensions.DependencyModel.dll", + "lib/net6.0/Microsoft.Extensions.DependencyModel.xml", + "lib/net7.0/Microsoft.Extensions.DependencyModel.dll", + "lib/net7.0/Microsoft.Extensions.DependencyModel.xml", + "lib/net8.0/Microsoft.Extensions.DependencyModel.dll", + "lib/net8.0/Microsoft.Extensions.DependencyModel.xml", + "lib/netstandard2.0/Microsoft.Extensions.DependencyModel.dll", + "lib/netstandard2.0/Microsoft.Extensions.DependencyModel.xml", + "microsoft.extensions.dependencymodel.8.0.1.nupkg.sha512", + "microsoft.extensions.dependencymodel.nuspec", + "useSharedDesignerContext.txt" + ] + }, "Microsoft.Extensions.Logging/8.0.0": { "sha512": "tvRkov9tAJ3xP51LCv3FJ2zINmv1P8Hi8lhhtcKGqM+ImiTCC84uOPEI4z8Cdq2C3o9e+Aa0Gw0rmrsJD77W+w==", "type": "package", @@ -2672,6 +2952,95 @@ "nunit_256.png" ] }, + "SQLitePCLRaw.bundle_e_sqlite3/2.1.6": { + "sha512": "BmAf6XWt4TqtowmiWe4/5rRot6GerAeklmOPfviOvwLoF5WwgxcJHAxZtySuyW9r9w+HLILnm8VfJFLCUJYW8A==", + "type": "package", + "path": "sqlitepclraw.bundle_e_sqlite3/2.1.6", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "lib/monoandroid90/SQLitePCLRaw.batteries_v2.dll", + "lib/net461/SQLitePCLRaw.batteries_v2.dll", + "lib/net6.0-android31.0/SQLitePCLRaw.batteries_v2.dll", + "lib/net6.0-android31.0/SQLitePCLRaw.batteries_v2.xml", + "lib/net6.0-ios14.0/SQLitePCLRaw.batteries_v2.dll", + "lib/net6.0-ios14.2/SQLitePCLRaw.batteries_v2.dll", + "lib/net6.0-tvos10.0/SQLitePCLRaw.batteries_v2.dll", + "lib/netstandard2.0/SQLitePCLRaw.batteries_v2.dll", + "lib/xamarinios10/SQLitePCLRaw.batteries_v2.dll", + "sqlitepclraw.bundle_e_sqlite3.2.1.6.nupkg.sha512", + "sqlitepclraw.bundle_e_sqlite3.nuspec" + ] + }, + "SQLitePCLRaw.core/2.1.6": { + "sha512": "wO6v9GeMx9CUngAet8hbO7xdm+M42p1XeJq47ogyRoYSvNSp0NGLI+MgC0bhrMk9C17MTVFlLiN6ylyExLCc5w==", + "type": "package", + "path": "sqlitepclraw.core/2.1.6", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "lib/netstandard2.0/SQLitePCLRaw.core.dll", + "sqlitepclraw.core.2.1.6.nupkg.sha512", + "sqlitepclraw.core.nuspec" + ] + }, + "SQLitePCLRaw.lib.e_sqlite3/2.1.6": { + "sha512": "2ObJJLkIUIxRpOUlZNGuD4rICpBnrBR5anjyfUFQep4hMOIeqW+XGQYzrNmHSVz5xSWZ3klSbh7sFR6UyDj68Q==", + "type": "package", + "path": "sqlitepclraw.lib.e_sqlite3/2.1.6", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "buildTransitive/net461/SQLitePCLRaw.lib.e_sqlite3.targets", + "buildTransitive/net6.0/SQLitePCLRaw.lib.e_sqlite3.targets", + "buildTransitive/net7.0/SQLitePCLRaw.lib.e_sqlite3.targets", + "buildTransitive/net8.0/SQLitePCLRaw.lib.e_sqlite3.targets", + "lib/net461/_._", + "lib/netstandard2.0/_._", + "runtimes/browser-wasm/nativeassets/net6.0/e_sqlite3.a", + "runtimes/browser-wasm/nativeassets/net7.0/e_sqlite3.a", + "runtimes/browser-wasm/nativeassets/net8.0/e_sqlite3.a", + "runtimes/linux-arm/native/libe_sqlite3.so", + "runtimes/linux-arm64/native/libe_sqlite3.so", + "runtimes/linux-armel/native/libe_sqlite3.so", + "runtimes/linux-mips64/native/libe_sqlite3.so", + "runtimes/linux-musl-arm/native/libe_sqlite3.so", + "runtimes/linux-musl-arm64/native/libe_sqlite3.so", + "runtimes/linux-musl-x64/native/libe_sqlite3.so", + "runtimes/linux-ppc64le/native/libe_sqlite3.so", + "runtimes/linux-s390x/native/libe_sqlite3.so", + "runtimes/linux-x64/native/libe_sqlite3.so", + "runtimes/linux-x86/native/libe_sqlite3.so", + "runtimes/maccatalyst-arm64/native/libe_sqlite3.dylib", + "runtimes/maccatalyst-x64/native/libe_sqlite3.dylib", + "runtimes/osx-arm64/native/libe_sqlite3.dylib", + "runtimes/osx-x64/native/libe_sqlite3.dylib", + "runtimes/win-arm/native/e_sqlite3.dll", + "runtimes/win-arm64/native/e_sqlite3.dll", + "runtimes/win-x64/native/e_sqlite3.dll", + "runtimes/win-x86/native/e_sqlite3.dll", + "runtimes/win10-arm/nativeassets/uap10.0/e_sqlite3.dll", + "runtimes/win10-arm64/nativeassets/uap10.0/e_sqlite3.dll", + "runtimes/win10-x64/nativeassets/uap10.0/e_sqlite3.dll", + "runtimes/win10-x86/nativeassets/uap10.0/e_sqlite3.dll", + "sqlitepclraw.lib.e_sqlite3.2.1.6.nupkg.sha512", + "sqlitepclraw.lib.e_sqlite3.nuspec" + ] + }, + "SQLitePCLRaw.provider.e_sqlite3/2.1.6": { + "sha512": "PQ2Oq3yepLY4P7ll145P3xtx2bX8xF4PzaKPRpw9jZlKvfe4LE/saAV82inND9usn1XRpmxXk7Lal3MTI+6CNg==", + "type": "package", + "path": "sqlitepclraw.provider.e_sqlite3/2.1.6", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "lib/net6.0-windows7.0/SQLitePCLRaw.provider.e_sqlite3.dll", + "lib/net6.0/SQLitePCLRaw.provider.e_sqlite3.dll", + "lib/netstandard2.0/SQLitePCLRaw.provider.e_sqlite3.dll", + "sqlitepclraw.provider.e_sqlite3.2.1.6.nupkg.sha512", + "sqlitepclraw.provider.e_sqlite3.nuspec" + ] + }, "System.Configuration.ConfigurationManager/6.0.1": { "sha512": "jXw9MlUu/kRfEU0WyTptAVueupqIeE3/rl0EZDMlf8pcvJnitQ8HeVEp69rZdaStXwTV72boi/Bhw8lOeO+U2w==", "type": "package", @@ -3447,53 +3816,112 @@ "useSharedDesignerContext.txt" ] }, - "System.Text.Encodings.Web/6.0.0": { - "sha512": "Vg8eB5Tawm1IFqj4TVK1czJX89rhFxJo9ELqc/Eiq0eXy13RK00eubyU6TJE6y+GQXjyV5gSfiewDUZjQgSE0w==", + "System.Text.Encodings.Web/8.0.0": { + "sha512": "yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", "type": "package", - "path": "system.text.encodings.web/6.0.0", + "path": "system.text.encodings.web/8.0.0", "files": [ ".nupkg.metadata", ".signature.p7s", "Icon.png", "LICENSE.TXT", "THIRD-PARTY-NOTICES.TXT", + "buildTransitive/net461/System.Text.Encodings.Web.targets", + "buildTransitive/net462/_._", + "buildTransitive/net6.0/_._", "buildTransitive/netcoreapp2.0/System.Text.Encodings.Web.targets", - "buildTransitive/netcoreapp3.1/_._", - "lib/net461/System.Text.Encodings.Web.dll", - "lib/net461/System.Text.Encodings.Web.xml", + "lib/net462/System.Text.Encodings.Web.dll", + "lib/net462/System.Text.Encodings.Web.xml", "lib/net6.0/System.Text.Encodings.Web.dll", "lib/net6.0/System.Text.Encodings.Web.xml", - "lib/netcoreapp3.1/System.Text.Encodings.Web.dll", - "lib/netcoreapp3.1/System.Text.Encodings.Web.xml", + "lib/net7.0/System.Text.Encodings.Web.dll", + "lib/net7.0/System.Text.Encodings.Web.xml", + "lib/net8.0/System.Text.Encodings.Web.dll", + "lib/net8.0/System.Text.Encodings.Web.xml", "lib/netstandard2.0/System.Text.Encodings.Web.dll", "lib/netstandard2.0/System.Text.Encodings.Web.xml", "runtimes/browser/lib/net6.0/System.Text.Encodings.Web.dll", "runtimes/browser/lib/net6.0/System.Text.Encodings.Web.xml", - "system.text.encodings.web.6.0.0.nupkg.sha512", + "runtimes/browser/lib/net7.0/System.Text.Encodings.Web.dll", + "runtimes/browser/lib/net7.0/System.Text.Encodings.Web.xml", + "runtimes/browser/lib/net8.0/System.Text.Encodings.Web.dll", + "runtimes/browser/lib/net8.0/System.Text.Encodings.Web.xml", + "system.text.encodings.web.8.0.0.nupkg.sha512", "system.text.encodings.web.nuspec", "useSharedDesignerContext.txt" ] }, - "System.Text.Json/4.7.2": { - "sha512": "TcMd95wcrubm9nHvJEQs70rC0H/8omiSGGpU4FQ/ZA1URIqD4pjmFJh2Mfv1yH1eHgJDWTi2hMDXwTET+zOOyg==", + "System.Text.Json/8.0.4": { + "sha512": "bAkhgDJ88XTsqczoxEMliSrpijKZHhbJQldhAmObj/RbrN3sU5dcokuXmWJWsdQAhiMJ9bTayWsL1C9fbbCRhw==", "type": "package", - "path": "system.text.json/4.7.2", + "path": "system.text.json/8.0.4", "files": [ ".nupkg.metadata", ".signature.p7s", "Icon.png", "LICENSE.TXT", + "PACKAGE.md", "THIRD-PARTY-NOTICES.TXT", - "lib/net461/System.Text.Json.dll", - "lib/net461/System.Text.Json.xml", - "lib/netcoreapp3.0/System.Text.Json.dll", - "lib/netcoreapp3.0/System.Text.Json.xml", + "analyzers/dotnet/roslyn3.11/cs/System.Text.Json.SourceGeneration.dll", + "analyzers/dotnet/roslyn3.11/cs/cs/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn3.11/cs/de/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn3.11/cs/es/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn3.11/cs/fr/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn3.11/cs/it/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn3.11/cs/ja/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn3.11/cs/ko/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn3.11/cs/pl/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn3.11/cs/pt-BR/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn3.11/cs/ru/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn3.11/cs/tr/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn3.11/cs/zh-Hans/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn3.11/cs/zh-Hant/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.0/cs/System.Text.Json.SourceGeneration.dll", + "analyzers/dotnet/roslyn4.0/cs/cs/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.0/cs/de/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.0/cs/es/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.0/cs/fr/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.0/cs/it/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.0/cs/ja/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.0/cs/ko/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.0/cs/pl/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.0/cs/pt-BR/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.0/cs/ru/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.0/cs/tr/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.0/cs/zh-Hans/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.0/cs/zh-Hant/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.4/cs/System.Text.Json.SourceGeneration.dll", + "analyzers/dotnet/roslyn4.4/cs/cs/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.4/cs/de/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.4/cs/es/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.4/cs/fr/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.4/cs/it/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.4/cs/ja/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.4/cs/ko/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.4/cs/pl/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.4/cs/pt-BR/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.4/cs/ru/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.4/cs/tr/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.4/cs/zh-Hans/System.Text.Json.SourceGeneration.resources.dll", + "analyzers/dotnet/roslyn4.4/cs/zh-Hant/System.Text.Json.SourceGeneration.resources.dll", + "buildTransitive/net461/System.Text.Json.targets", + "buildTransitive/net462/System.Text.Json.targets", + "buildTransitive/net6.0/System.Text.Json.targets", + "buildTransitive/netcoreapp2.0/System.Text.Json.targets", + "buildTransitive/netstandard2.0/System.Text.Json.targets", + "lib/net462/System.Text.Json.dll", + "lib/net462/System.Text.Json.xml", + "lib/net6.0/System.Text.Json.dll", + "lib/net6.0/System.Text.Json.xml", + "lib/net7.0/System.Text.Json.dll", + "lib/net7.0/System.Text.Json.xml", + "lib/net8.0/System.Text.Json.dll", + "lib/net8.0/System.Text.Json.xml", "lib/netstandard2.0/System.Text.Json.dll", "lib/netstandard2.0/System.Text.Json.xml", - "system.text.json.4.7.2.nupkg.sha512", + "system.text.json.8.0.4.nupkg.sha512", "system.text.json.nuspec", - "useSharedDesignerContext.txt", - "version.txt" + "useSharedDesignerContext.txt" ] }, "System.Threading.Tasks.Extensions/4.5.4": { diff --git a/testing/obj/project.nuget.cache b/testing/obj/project.nuget.cache index a2c42ee..0783e11 100644 --- a/testing/obj/project.nuget.cache +++ b/testing/obj/project.nuget.cache @@ -1,6 +1,6 @@ { "version": 2, - "dgSpecHash": "uxIu82OXm5s=", + "dgSpecHash": "VMBTBnS19jM=", "success": true, "projectFilePath": "C:\\Users\\fedpo\\source\\repos\\Final_Das\\testing\\testing.csproj", "expectedPackageFiles": [ @@ -12,16 +12,20 @@ "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.csharp\\4.5.0\\microsoft.csharp.4.5.0.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.data.sqlclient\\5.1.5\\microsoft.data.sqlclient.5.1.5.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.data.sqlclient.sni.runtime\\5.1.1\\microsoft.data.sqlclient.sni.runtime.5.1.1.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.data.sqlite.core\\8.0.8\\microsoft.data.sqlite.core.8.0.8.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore\\8.0.8\\microsoft.entityframeworkcore.8.0.8.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore.abstractions\\8.0.8\\microsoft.entityframeworkcore.abstractions.8.0.8.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore.analyzers\\8.0.8\\microsoft.entityframeworkcore.analyzers.8.0.8.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore.relational\\8.0.8\\microsoft.entityframeworkcore.relational.8.0.8.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore.sqlite\\8.0.8\\microsoft.entityframeworkcore.sqlite.8.0.8.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore.sqlite.core\\8.0.8\\microsoft.entityframeworkcore.sqlite.core.8.0.8.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.entityframeworkcore.sqlserver\\8.0.8\\microsoft.entityframeworkcore.sqlserver.8.0.8.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.extensions.caching.abstractions\\8.0.0\\microsoft.extensions.caching.abstractions.8.0.0.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.extensions.caching.memory\\8.0.0\\microsoft.extensions.caching.memory.8.0.0.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.extensions.configuration.abstractions\\8.0.0\\microsoft.extensions.configuration.abstractions.8.0.0.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.extensions.dependencyinjection\\8.0.0\\microsoft.extensions.dependencyinjection.8.0.0.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.extensions.dependencyinjection.abstractions\\8.0.0\\microsoft.extensions.dependencyinjection.abstractions.8.0.0.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.extensions.dependencymodel\\8.0.1\\microsoft.extensions.dependencymodel.8.0.1.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.extensions.logging\\8.0.0\\microsoft.extensions.logging.8.0.0.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.extensions.logging.abstractions\\8.0.0\\microsoft.extensions.logging.abstractions.8.0.0.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\microsoft.extensions.options\\8.0.0\\microsoft.extensions.options.8.0.0.nupkg.sha512", @@ -45,6 +49,10 @@ "C:\\Users\\fedpo\\.nuget\\packages\\nunit\\4.1.0\\nunit.4.1.0.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\nunit.analyzers\\4.3.0\\nunit.analyzers.4.3.0.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\nunit3testadapter\\4.6.0\\nunit3testadapter.4.6.0.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\sqlitepclraw.bundle_e_sqlite3\\2.1.6\\sqlitepclraw.bundle_e_sqlite3.2.1.6.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\sqlitepclraw.core\\2.1.6\\sqlitepclraw.core.2.1.6.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\sqlitepclraw.lib.e_sqlite3\\2.1.6\\sqlitepclraw.lib.e_sqlite3.2.1.6.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\sqlitepclraw.provider.e_sqlite3\\2.1.6\\sqlitepclraw.provider.e_sqlite3.2.1.6.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\system.configuration.configurationmanager\\6.0.1\\system.configuration.configurationmanager.6.0.1.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\system.diagnostics.diagnosticsource\\6.0.1\\system.diagnostics.diagnosticsource.6.0.1.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\system.drawing.common\\6.0.0\\system.drawing.common.6.0.0.nupkg.sha512", @@ -65,8 +73,8 @@ "C:\\Users\\fedpo\\.nuget\\packages\\system.security.principal.windows\\5.0.0\\system.security.principal.windows.5.0.0.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\system.text.encoding\\4.3.0\\system.text.encoding.4.3.0.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\system.text.encoding.codepages\\6.0.0\\system.text.encoding.codepages.6.0.0.nupkg.sha512", - "C:\\Users\\fedpo\\.nuget\\packages\\system.text.encodings.web\\6.0.0\\system.text.encodings.web.6.0.0.nupkg.sha512", - "C:\\Users\\fedpo\\.nuget\\packages\\system.text.json\\4.7.2\\system.text.json.4.7.2.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\system.text.encodings.web\\8.0.0\\system.text.encodings.web.8.0.0.nupkg.sha512", + "C:\\Users\\fedpo\\.nuget\\packages\\system.text.json\\8.0.4\\system.text.json.8.0.4.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\system.threading.tasks.extensions\\4.5.4\\system.threading.tasks.extensions.4.5.4.nupkg.sha512", "C:\\Users\\fedpo\\.nuget\\packages\\system.windows.extensions\\6.0.0\\system.windows.extensions.6.0.0.nupkg.sha512" ], diff --git a/testing/obj/testing.csproj.nuget.dgspec.json b/testing/obj/testing.csproj.nuget.dgspec.json index a7b77f4..ae7b2d0 100644 --- a/testing/obj/testing.csproj.nuget.dgspec.json +++ b/testing/obj/testing.csproj.nuget.dgspec.json @@ -119,6 +119,10 @@ "target": "Package", "version": "[8.0.8, )" }, + "Microsoft.EntityFrameworkCore.Sqlite": { + "target": "Package", + "version": "[8.0.8, )" + }, "Microsoft.EntityFrameworkCore.Tools": { "include": "Runtime, Build, Native, ContentFiles, Analyzers, BuildTransitive", "suppressParent": "All", diff --git a/testing/obj/testing.csproj.nuget.g.targets b/testing/obj/testing.csproj.nuget.g.targets index 4c5ecf4..dbc4f70 100644 --- a/testing/obj/testing.csproj.nuget.g.targets +++ b/testing/obj/testing.csproj.nuget.g.targets @@ -1,6 +1,8 @@  + +