mirror of
https://gitlab.com/Hukuta47/cartrix.git
synced 2026-12-06 13:00:55 +00:00
Сделал список OID адресов, добавил миграцию бд при запуске программы
This commit is contained in:
1 parent
48e625819a
commit
bd426d2647
35 files changed
+927
-46
No files matched your search
@@ -17,6 +17,33 @@ namespace CartriX.Api.Migrations
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder.HasAnnotation("ProductVersion", "10.0.8");
|
||||
|
||||
modelBuilder.Entity("CartriX.Api.Entities.AddressOID", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<string>("OIDAddress")
|
||||
.IsRequired()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("AddressOIDs");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
OIDAddress = "1.3.6.1.2.1.43.10.2.1.4.1.1"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
OIDAddress = "1.3.6.1.4.1.40093.6.4.1"
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("CartriX.Api.Entities.Cartridge", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
|
||||
Reference in new issue
Block a user