add models
This commit is contained in:
parent
a0fa4d6d8e
commit
148407e624
BIN
.vs/Demo_Validation/DesignTimeBuild/.dtbcache.v2
Normal file
BIN
.vs/Demo_Validation/DesignTimeBuild/.dtbcache.v2
Normal file
Binary file not shown.
BIN
.vs/Demo_Validation/v17/.futdcache.v2
Normal file
BIN
.vs/Demo_Validation/v17/.futdcache.v2
Normal file
Binary file not shown.
Binary file not shown.
@ -1,16 +1,7 @@
|
|||||||
{
|
{
|
||||||
"Version": 1,
|
"Version": 1,
|
||||||
"WorkspaceRootPath": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\demo-validation\\avalonia_code\\\u041C\u043E\u0439 \u043F\u0440\u043E\u0435\u043A\u0442\\Demo_Validation\\",
|
"WorkspaceRootPath": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\demo-validation\\avalonia_code\\\u041C\u043E\u0439 \u043F\u0440\u043E\u0435\u043A\u0442\\Demo_Validation\\",
|
||||||
"Documents": [
|
"Documents": [],
|
||||||
{
|
|
||||||
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\demo-validation\\avalonia_code\\\u041C\u043E\u0439 \u043F\u0440\u043E\u0435\u043A\u0442\\Demo_Validation\\App.axaml||{6D5344A2-2FCD-49DE-A09D-6A14FD1B1224}",
|
|
||||||
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:App.axaml||{6D5344A2-2FCD-49DE-A09D-6A14FD1B1224}"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\demo-validation\\avalonia_code\\\u041C\u043E\u0439 \u043F\u0440\u043E\u0435\u043A\u0442\\Demo_Validation\\App.axaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
|
||||||
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:App.axaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"DocumentGroupContainers": [
|
"DocumentGroupContainers": [
|
||||||
{
|
{
|
||||||
"Orientation": 0,
|
"Orientation": 0,
|
||||||
@ -18,36 +9,11 @@
|
|||||||
"DocumentGroups": [
|
"DocumentGroups": [
|
||||||
{
|
{
|
||||||
"DockedWidth": 200,
|
"DockedWidth": 200,
|
||||||
"SelectedChildIndex": 2,
|
"SelectedChildIndex": -1,
|
||||||
"Children": [
|
"Children": [
|
||||||
{
|
{
|
||||||
"$type": "Bookmark",
|
"$type": "Bookmark",
|
||||||
"Name": "ST:0:0:{1c4feeaa-4718-4aa9-859d-94ce25d182ba}"
|
"Name": "ST:0:0:{1c4feeaa-4718-4aa9-859d-94ce25d182ba}"
|
||||||
},
|
|
||||||
{
|
|
||||||
"$type": "Document",
|
|
||||||
"DocumentIndex": 1,
|
|
||||||
"Title": "App.axaml.cs",
|
|
||||||
"DocumentMoniker": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\demo-validation\\avalonia_code\\\u041C\u043E\u0439 \u043F\u0440\u043E\u0435\u043A\u0442\\Demo_Validation\\App.axaml.cs",
|
|
||||||
"RelativeDocumentMoniker": "App.axaml.cs",
|
|
||||||
"ToolTip": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\demo-validation\\avalonia_code\\\u041C\u043E\u0439 \u043F\u0440\u043E\u0435\u043A\u0442\\Demo_Validation\\App.axaml.cs",
|
|
||||||
"RelativeToolTip": "App.axaml.cs",
|
|
||||||
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",
|
|
||||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
|
||||||
"WhenOpened": "2025-01-26T17:49:16.732Z",
|
|
||||||
"EditorCaption": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"$type": "Document",
|
|
||||||
"DocumentIndex": 0,
|
|
||||||
"Title": "App.axaml",
|
|
||||||
"DocumentMoniker": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\demo-validation\\avalonia_code\\\u041C\u043E\u0439 \u043F\u0440\u043E\u0435\u043A\u0442\\Demo_Validation\\App.axaml",
|
|
||||||
"RelativeDocumentMoniker": "App.axaml",
|
|
||||||
"ToolTip": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\demo-validation\\avalonia_code\\\u041C\u043E\u0439 \u043F\u0440\u043E\u0435\u043A\u0442\\Demo_Validation\\App.axaml",
|
|
||||||
"RelativeToolTip": "App.axaml",
|
|
||||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003549|",
|
|
||||||
"WhenOpened": "2025-01-26T17:48:31.438Z",
|
|
||||||
"EditorCaption": ""
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
BIN
.vs/ProjectEvaluation/demo_validation.metadata.v9.bin
Normal file
BIN
.vs/ProjectEvaluation/demo_validation.metadata.v9.bin
Normal file
Binary file not shown.
BIN
.vs/ProjectEvaluation/demo_validation.projects.v9.bin
Normal file
BIN
.vs/ProjectEvaluation/demo_validation.projects.v9.bin
Normal file
Binary file not shown.
BIN
.vs/ProjectEvaluation/demo_validation.strings.v9.bin
Normal file
BIN
.vs/ProjectEvaluation/demo_validation.strings.v9.bin
Normal file
Binary file not shown.
@ -18,5 +18,11 @@
|
|||||||
<IncludeAssets Condition="'$(Configuration)' != 'Debug'">None</IncludeAssets>
|
<IncludeAssets Condition="'$(Configuration)' != 'Debug'">None</IncludeAssets>
|
||||||
<PrivateAssets Condition="'$(Configuration)' != 'Debug'">All</PrivateAssets>
|
<PrivateAssets Condition="'$(Configuration)' != 'Debug'">All</PrivateAssets>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
|
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.10" />
|
||||||
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.10">
|
||||||
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
|
</PackageReference>
|
||||||
|
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.10" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
22
Demo_Validation.sln
Normal file
22
Demo_Validation.sln
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 17
|
||||||
|
VisualStudioVersion = 17.12.35707.178 d17.12
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Demo_Validation", "Demo_Validation.csproj", "{54EAC230-FD0D-4B23-9B23-CEB95E565C8A}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{54EAC230-FD0D-4B23-9B23-CEB95E565C8A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{54EAC230-FD0D-4B23-9B23-CEB95E565C8A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{54EAC230-FD0D-4B23-9B23-CEB95E565C8A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{54EAC230-FD0D-4B23-9B23-CEB95E565C8A}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
17
Models/ActivitiesAndEvent.cs
Normal file
17
Models/ActivitiesAndEvent.cs
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace Demo_Validation.Models;
|
||||||
|
|
||||||
|
public partial class ActivitiesAndEvent
|
||||||
|
{
|
||||||
|
public int ActivitiesAndEventsId { get; set; }
|
||||||
|
|
||||||
|
public int ActivitieId { get; set; }
|
||||||
|
|
||||||
|
public int EventId { get; set; }
|
||||||
|
|
||||||
|
public virtual Activity Activitie { get; set; } = null!;
|
||||||
|
|
||||||
|
public virtual Event Event { get; set; } = null!;
|
||||||
|
}
|
23
Models/Activity.cs
Normal file
23
Models/Activity.cs
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace Demo_Validation.Models;
|
||||||
|
|
||||||
|
public partial class Activity
|
||||||
|
{
|
||||||
|
public int ActivityId { get; set; }
|
||||||
|
|
||||||
|
public string ActivityName { get; set; } = null!;
|
||||||
|
|
||||||
|
public int? ActivityDay { get; set; }
|
||||||
|
|
||||||
|
public TimeOnly? ActivityTime { get; set; }
|
||||||
|
|
||||||
|
public int ModeratorId { get; set; }
|
||||||
|
|
||||||
|
public virtual ICollection<ActivitiesAndEvent> ActivitiesAndEvents { get; set; } = new List<ActivitiesAndEvent>();
|
||||||
|
|
||||||
|
public virtual ICollection<Juri> Juris { get; set; } = new List<Juri>();
|
||||||
|
|
||||||
|
public virtual User Moderator { get; set; } = null!;
|
||||||
|
}
|
13
Models/City.cs
Normal file
13
Models/City.cs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace Demo_Validation.Models;
|
||||||
|
|
||||||
|
public partial class City
|
||||||
|
{
|
||||||
|
public int CityId { get; set; }
|
||||||
|
|
||||||
|
public string CityName { get; set; } = null!;
|
||||||
|
|
||||||
|
public virtual ICollection<Event> Events { get; set; } = new List<Event>();
|
||||||
|
}
|
19
Models/Country.cs
Normal file
19
Models/Country.cs
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace Demo_Validation.Models;
|
||||||
|
|
||||||
|
public partial class Country
|
||||||
|
{
|
||||||
|
public int CountryId { get; set; }
|
||||||
|
|
||||||
|
public string CountryName { get; set; } = null!;
|
||||||
|
|
||||||
|
public string? Code { get; set; }
|
||||||
|
|
||||||
|
public int? Code2 { get; set; }
|
||||||
|
|
||||||
|
public string CountryNameEn { get; set; } = null!;
|
||||||
|
|
||||||
|
public virtual ICollection<User> Users { get; set; } = new List<User>();
|
||||||
|
}
|
25
Models/Event.cs
Normal file
25
Models/Event.cs
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace Demo_Validation.Models;
|
||||||
|
|
||||||
|
public partial class Event
|
||||||
|
{
|
||||||
|
public int EvantId { get; set; }
|
||||||
|
|
||||||
|
public string NameEvant { get; set; } = null!;
|
||||||
|
|
||||||
|
public DateOnly DateEvant { get; set; }
|
||||||
|
|
||||||
|
public int? CityId { get; set; }
|
||||||
|
|
||||||
|
public int? Days { get; set; }
|
||||||
|
|
||||||
|
public int? WinnerId { get; set; }
|
||||||
|
|
||||||
|
public virtual ICollection<ActivitiesAndEvent> ActivitiesAndEvents { get; set; } = new List<ActivitiesAndEvent>();
|
||||||
|
|
||||||
|
public virtual City? City { get; set; }
|
||||||
|
|
||||||
|
public virtual User? Winner { get; set; }
|
||||||
|
}
|
17
Models/Juri.cs
Normal file
17
Models/Juri.cs
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace Demo_Validation.Models;
|
||||||
|
|
||||||
|
public partial class Juri
|
||||||
|
{
|
||||||
|
public int? ActivityId { get; set; }
|
||||||
|
|
||||||
|
public int? JurisId { get; set; }
|
||||||
|
|
||||||
|
public int ActivityAndJuriId { get; set; }
|
||||||
|
|
||||||
|
public virtual Activity? Activity { get; set; }
|
||||||
|
|
||||||
|
public virtual User? Juris { get; set; }
|
||||||
|
}
|
13
Models/Role.cs
Normal file
13
Models/Role.cs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace Demo_Validation.Models;
|
||||||
|
|
||||||
|
public partial class Role
|
||||||
|
{
|
||||||
|
public int RoleId { get; set; }
|
||||||
|
|
||||||
|
public string RoleName { get; set; } = null!;
|
||||||
|
|
||||||
|
public virtual ICollection<User> Users { get; set; } = new List<User>();
|
||||||
|
}
|
39
Models/User.cs
Normal file
39
Models/User.cs
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace Demo_Validation.Models;
|
||||||
|
|
||||||
|
public partial class User
|
||||||
|
{
|
||||||
|
public int UserId { get; set; }
|
||||||
|
|
||||||
|
public string UserName { get; set; } = null!;
|
||||||
|
|
||||||
|
public string UserEmail { get; set; } = null!;
|
||||||
|
|
||||||
|
public string UserPhone { get; set; } = null!;
|
||||||
|
|
||||||
|
public DateOnly UserDateBirth { get; set; }
|
||||||
|
|
||||||
|
public int UserCountryId { get; set; }
|
||||||
|
|
||||||
|
public string UserPassword { get; set; } = null!;
|
||||||
|
|
||||||
|
public string? UserPhoto { get; set; }
|
||||||
|
|
||||||
|
public string UserGander { get; set; } = null!;
|
||||||
|
|
||||||
|
public int UserRoleId { get; set; }
|
||||||
|
|
||||||
|
public string? Direction { get; set; }
|
||||||
|
|
||||||
|
public virtual ICollection<Activity> Activities { get; set; } = new List<Activity>();
|
||||||
|
|
||||||
|
public virtual ICollection<Event> Events { get; set; } = new List<Event>();
|
||||||
|
|
||||||
|
public virtual ICollection<Juri> Juris { get; set; } = new List<Juri>();
|
||||||
|
|
||||||
|
public virtual Country UserCountry { get; set; } = null!;
|
||||||
|
|
||||||
|
public virtual Role UserRole { get; set; } = null!;
|
||||||
|
}
|
237
Models/User11Context.cs
Normal file
237
Models/User11Context.cs
Normal file
@ -0,0 +1,237 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
|
namespace Demo_Validation.Models;
|
||||||
|
|
||||||
|
public partial class User11Context : DbContext
|
||||||
|
{
|
||||||
|
public User11Context()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public User11Context(DbContextOptions<User11Context> options)
|
||||||
|
: base(options)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public virtual DbSet<ActivitiesAndEvent> ActivitiesAndEvents { get; set; }
|
||||||
|
|
||||||
|
public virtual DbSet<Activity> Activities { get; set; }
|
||||||
|
|
||||||
|
public virtual DbSet<City> Cities { get; set; }
|
||||||
|
|
||||||
|
public virtual DbSet<Country> Countries { get; set; }
|
||||||
|
|
||||||
|
public virtual DbSet<Event> Events { get; set; }
|
||||||
|
|
||||||
|
public virtual DbSet<Juri> Juris { get; set; }
|
||||||
|
|
||||||
|
public virtual DbSet<Role> Roles { get; set; }
|
||||||
|
|
||||||
|
public virtual DbSet<User> Users { get; set; }
|
||||||
|
|
||||||
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||||
|
#warning To protect potentially sensitive information in your connection string, you should move it out of source code. You can avoid scaffolding the connection string by using the Name= syntax to read it from configuration - see https://go.microsoft.com/fwlink/?linkid=2131148. For more guidance on storing connection strings, see https://go.microsoft.com/fwlink/?LinkId=723263.
|
||||||
|
=> optionsBuilder.UseNpgsql("Host=45.67.56.214;Port=5421;Database=user11;Username=user11;Password=JSZHJyg1");
|
||||||
|
|
||||||
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||||
|
{
|
||||||
|
modelBuilder.Entity<ActivitiesAndEvent>(entity =>
|
||||||
|
{
|
||||||
|
entity.HasKey(e => e.ActivitiesAndEventsId).HasName("activities_and_events_pk");
|
||||||
|
|
||||||
|
entity.ToTable("activities_and_events");
|
||||||
|
|
||||||
|
entity.Property(e => e.ActivitiesAndEventsId)
|
||||||
|
.UseIdentityAlwaysColumn()
|
||||||
|
.HasColumnName("activities_and_events_id");
|
||||||
|
entity.Property(e => e.ActivitieId).HasColumnName("activitie_id");
|
||||||
|
entity.Property(e => e.EventId).HasColumnName("event_id");
|
||||||
|
|
||||||
|
entity.HasOne(d => d.Activitie).WithMany(p => p.ActivitiesAndEvents)
|
||||||
|
.HasForeignKey(d => d.ActivitieId)
|
||||||
|
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||||
|
.HasConstraintName("activities_and_events_activities_fk_1");
|
||||||
|
|
||||||
|
entity.HasOne(d => d.Event).WithMany(p => p.ActivitiesAndEvents)
|
||||||
|
.HasForeignKey(d => d.EventId)
|
||||||
|
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||||
|
.HasConstraintName("activities_and_events_events_fk");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity<Activity>(entity =>
|
||||||
|
{
|
||||||
|
entity.HasKey(e => e.ActivityId).HasName("activities_pk");
|
||||||
|
|
||||||
|
entity.ToTable("activities");
|
||||||
|
|
||||||
|
entity.Property(e => e.ActivityId)
|
||||||
|
.UseIdentityAlwaysColumn()
|
||||||
|
.HasColumnName("activity_id");
|
||||||
|
entity.Property(e => e.ActivityDay).HasColumnName("activity_day");
|
||||||
|
entity.Property(e => e.ActivityName)
|
||||||
|
.HasColumnType("character varying")
|
||||||
|
.HasColumnName("activity_name");
|
||||||
|
entity.Property(e => e.ActivityTime).HasColumnName("activity_time");
|
||||||
|
entity.Property(e => e.ModeratorId).HasColumnName("moderator_id");
|
||||||
|
|
||||||
|
entity.HasOne(d => d.Moderator).WithMany(p => p.Activities)
|
||||||
|
.HasForeignKey(d => d.ModeratorId)
|
||||||
|
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||||
|
.HasConstraintName("activities_users_fk");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity<City>(entity =>
|
||||||
|
{
|
||||||
|
entity.HasKey(e => e.CityId).HasName("city_pk");
|
||||||
|
|
||||||
|
entity.ToTable("city");
|
||||||
|
|
||||||
|
entity.Property(e => e.CityId)
|
||||||
|
.ValueGeneratedNever()
|
||||||
|
.HasColumnName("city_id");
|
||||||
|
entity.Property(e => e.CityName)
|
||||||
|
.HasColumnType("character varying")
|
||||||
|
.HasColumnName("city_name");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity<Country>(entity =>
|
||||||
|
{
|
||||||
|
entity.HasKey(e => e.CountryId).HasName("country_pk");
|
||||||
|
|
||||||
|
entity.ToTable("country");
|
||||||
|
|
||||||
|
entity.Property(e => e.CountryId)
|
||||||
|
.UseIdentityAlwaysColumn()
|
||||||
|
.HasColumnName("country_id");
|
||||||
|
entity.Property(e => e.Code)
|
||||||
|
.HasColumnType("character varying")
|
||||||
|
.HasColumnName("code");
|
||||||
|
entity.Property(e => e.Code2).HasColumnName("code_2");
|
||||||
|
entity.Property(e => e.CountryName)
|
||||||
|
.HasColumnType("character varying")
|
||||||
|
.HasColumnName("country_name");
|
||||||
|
entity.Property(e => e.CountryNameEn)
|
||||||
|
.HasColumnType("character varying")
|
||||||
|
.HasColumnName("country_name(en)");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity<Event>(entity =>
|
||||||
|
{
|
||||||
|
entity.HasKey(e => e.EvantId).HasName("events_pk");
|
||||||
|
|
||||||
|
entity.ToTable("events");
|
||||||
|
|
||||||
|
entity.Property(e => e.EvantId)
|
||||||
|
.UseIdentityAlwaysColumn()
|
||||||
|
.HasColumnName("evant_id");
|
||||||
|
entity.Property(e => e.CityId).HasColumnName("city_id");
|
||||||
|
entity.Property(e => e.DateEvant).HasColumnName("date_evant");
|
||||||
|
entity.Property(e => e.Days).HasColumnName("days");
|
||||||
|
entity.Property(e => e.NameEvant)
|
||||||
|
.HasColumnType("character varying")
|
||||||
|
.HasColumnName("name_evant");
|
||||||
|
entity.Property(e => e.WinnerId).HasColumnName("winner_id");
|
||||||
|
|
||||||
|
entity.HasOne(d => d.City).WithMany(p => p.Events)
|
||||||
|
.HasForeignKey(d => d.CityId)
|
||||||
|
.HasConstraintName("events_city_fk");
|
||||||
|
|
||||||
|
entity.HasOne(d => d.Winner).WithMany(p => p.Events)
|
||||||
|
.HasForeignKey(d => d.WinnerId)
|
||||||
|
.HasConstraintName("events_users_fk");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity<Juri>(entity =>
|
||||||
|
{
|
||||||
|
entity.HasKey(e => e.ActivityAndJuriId).HasName("juris_pk");
|
||||||
|
|
||||||
|
entity.ToTable("juris");
|
||||||
|
|
||||||
|
entity.Property(e => e.ActivityAndJuriId)
|
||||||
|
.UseIdentityAlwaysColumn()
|
||||||
|
.HasColumnName("activity_and_juri_id");
|
||||||
|
entity.Property(e => e.ActivityId).HasColumnName("activity_id");
|
||||||
|
entity.Property(e => e.JurisId).HasColumnName("juris_id");
|
||||||
|
|
||||||
|
entity.HasOne(d => d.Activity).WithMany(p => p.Juris)
|
||||||
|
.HasForeignKey(d => d.ActivityId)
|
||||||
|
.HasConstraintName("juris_activities_fk");
|
||||||
|
|
||||||
|
entity.HasOne(d => d.Juris).WithMany(p => p.Juris)
|
||||||
|
.HasForeignKey(d => d.JurisId)
|
||||||
|
.HasConstraintName("juris_users_fk");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity<Role>(entity =>
|
||||||
|
{
|
||||||
|
entity.HasKey(e => e.RoleId).HasName("roles_pk");
|
||||||
|
|
||||||
|
entity.ToTable("roles");
|
||||||
|
|
||||||
|
entity.Property(e => e.RoleId)
|
||||||
|
.UseIdentityAlwaysColumn()
|
||||||
|
.HasColumnName("role_id");
|
||||||
|
entity.Property(e => e.RoleName)
|
||||||
|
.HasColumnType("character varying")
|
||||||
|
.HasColumnName("role_name");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity<User>(entity =>
|
||||||
|
{
|
||||||
|
entity.HasKey(e => e.UserId).HasName("users_pk");
|
||||||
|
|
||||||
|
entity.ToTable("users");
|
||||||
|
|
||||||
|
entity.Property(e => e.UserId)
|
||||||
|
.UseIdentityAlwaysColumn()
|
||||||
|
.HasColumnName("user_id");
|
||||||
|
entity.Property(e => e.Direction)
|
||||||
|
.HasColumnType("character varying")
|
||||||
|
.HasColumnName("direction");
|
||||||
|
entity.Property(e => e.UserCountryId).HasColumnName("user_country_id");
|
||||||
|
entity.Property(e => e.UserDateBirth).HasColumnName("user_date_birth");
|
||||||
|
entity.Property(e => e.UserEmail)
|
||||||
|
.HasColumnType("character varying")
|
||||||
|
.HasColumnName("user_email");
|
||||||
|
entity.Property(e => e.UserGander)
|
||||||
|
.HasColumnType("character varying")
|
||||||
|
.HasColumnName("user_gander");
|
||||||
|
entity.Property(e => e.UserName)
|
||||||
|
.HasColumnType("character varying")
|
||||||
|
.HasColumnName("user_name");
|
||||||
|
entity.Property(e => e.UserPassword)
|
||||||
|
.HasColumnType("character varying")
|
||||||
|
.HasColumnName("user_password");
|
||||||
|
entity.Property(e => e.UserPhone)
|
||||||
|
.HasColumnType("character varying")
|
||||||
|
.HasColumnName("user_phone");
|
||||||
|
entity.Property(e => e.UserPhoto)
|
||||||
|
.HasColumnType("character varying")
|
||||||
|
.HasColumnName("user_photo");
|
||||||
|
entity.Property(e => e.UserRoleId).HasColumnName("user_role_id");
|
||||||
|
|
||||||
|
entity.HasOne(d => d.UserCountry).WithMany(p => p.Users)
|
||||||
|
.HasForeignKey(d => d.UserCountryId)
|
||||||
|
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||||
|
.HasConstraintName("users_country_fk");
|
||||||
|
|
||||||
|
entity.HasOne(d => d.UserRole).WithMany(p => p.Users)
|
||||||
|
.HasForeignKey(d => d.UserRoleId)
|
||||||
|
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||||
|
.HasConstraintName("users_roles_fk");
|
||||||
|
});
|
||||||
|
modelBuilder.HasSequence("activities_activity_id_seq").HasMax(2147483647L);
|
||||||
|
modelBuilder.HasSequence("activities_and_events_activities_and_events_id_seq").HasMax(2147483647L);
|
||||||
|
modelBuilder.HasSequence("country_country_seq").HasMax(2147483647L);
|
||||||
|
modelBuilder.HasSequence("events_evant_id_seq").HasMax(2147483647L);
|
||||||
|
modelBuilder.HasSequence("juris_activity_and_juri_id_seq").HasMax(2147483647L);
|
||||||
|
modelBuilder.HasSequence("roles_role_id_seq").HasMax(2147483647L);
|
||||||
|
modelBuilder.HasSequence("users_user_id_seq").HasMax(2147483647L);
|
||||||
|
|
||||||
|
OnModelCreatingPartial(modelBuilder);
|
||||||
|
}
|
||||||
|
|
||||||
|
partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
|
||||||
|
}
|
BIN
bin/Debug/net9.0/Avalonia.Base.dll
Normal file
BIN
bin/Debug/net9.0/Avalonia.Base.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Avalonia.Controls.ColorPicker.dll
Normal file
BIN
bin/Debug/net9.0/Avalonia.Controls.ColorPicker.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Avalonia.Controls.DataGrid.dll
Normal file
BIN
bin/Debug/net9.0/Avalonia.Controls.DataGrid.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Avalonia.Controls.dll
Normal file
BIN
bin/Debug/net9.0/Avalonia.Controls.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Avalonia.DesignerSupport.dll
Normal file
BIN
bin/Debug/net9.0/Avalonia.DesignerSupport.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Avalonia.Desktop.dll
Normal file
BIN
bin/Debug/net9.0/Avalonia.Desktop.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Avalonia.Diagnostics.dll
Normal file
BIN
bin/Debug/net9.0/Avalonia.Diagnostics.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Avalonia.Dialogs.dll
Normal file
BIN
bin/Debug/net9.0/Avalonia.Dialogs.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Avalonia.Fonts.Inter.dll
Normal file
BIN
bin/Debug/net9.0/Avalonia.Fonts.Inter.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Avalonia.FreeDesktop.dll
Normal file
BIN
bin/Debug/net9.0/Avalonia.FreeDesktop.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Avalonia.Markup.Xaml.dll
Normal file
BIN
bin/Debug/net9.0/Avalonia.Markup.Xaml.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Avalonia.Markup.dll
Normal file
BIN
bin/Debug/net9.0/Avalonia.Markup.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Avalonia.Metal.dll
Normal file
BIN
bin/Debug/net9.0/Avalonia.Metal.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Avalonia.MicroCom.dll
Normal file
BIN
bin/Debug/net9.0/Avalonia.MicroCom.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Avalonia.Native.dll
Normal file
BIN
bin/Debug/net9.0/Avalonia.Native.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Avalonia.OpenGL.dll
Normal file
BIN
bin/Debug/net9.0/Avalonia.OpenGL.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Avalonia.Remote.Protocol.dll
Normal file
BIN
bin/Debug/net9.0/Avalonia.Remote.Protocol.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Avalonia.Skia.dll
Normal file
BIN
bin/Debug/net9.0/Avalonia.Skia.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Avalonia.Themes.Fluent.dll
Normal file
BIN
bin/Debug/net9.0/Avalonia.Themes.Fluent.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Avalonia.Themes.Simple.dll
Normal file
BIN
bin/Debug/net9.0/Avalonia.Themes.Simple.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Avalonia.Vulkan.dll
Normal file
BIN
bin/Debug/net9.0/Avalonia.Vulkan.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Avalonia.Win32.dll
Normal file
BIN
bin/Debug/net9.0/Avalonia.Win32.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Avalonia.X11.dll
Normal file
BIN
bin/Debug/net9.0/Avalonia.X11.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Avalonia.dll
Normal file
BIN
bin/Debug/net9.0/Avalonia.dll
Normal file
Binary file not shown.
1406
bin/Debug/net9.0/Demo_Validation.deps.json
Normal file
1406
bin/Debug/net9.0/Demo_Validation.deps.json
Normal file
File diff suppressed because it is too large
Load Diff
BIN
bin/Debug/net9.0/Demo_Validation.dll
Normal file
BIN
bin/Debug/net9.0/Demo_Validation.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Demo_Validation.exe
Normal file
BIN
bin/Debug/net9.0/Demo_Validation.exe
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Demo_Validation.pdb
Normal file
BIN
bin/Debug/net9.0/Demo_Validation.pdb
Normal file
Binary file not shown.
14
bin/Debug/net9.0/Demo_Validation.runtimeconfig.json
Normal file
14
bin/Debug/net9.0/Demo_Validation.runtimeconfig.json
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"runtimeOptions": {
|
||||||
|
"tfm": "net9.0",
|
||||||
|
"framework": {
|
||||||
|
"name": "Microsoft.NETCore.App",
|
||||||
|
"version": "9.0.0"
|
||||||
|
},
|
||||||
|
"configProperties": {
|
||||||
|
"System.Reflection.NullabilityInfoContext.IsSupported": true,
|
||||||
|
"System.Runtime.InteropServices.BuiltInComInterop.IsSupported": true,
|
||||||
|
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
BIN
bin/Debug/net9.0/HarfBuzzSharp.dll
Normal file
BIN
bin/Debug/net9.0/HarfBuzzSharp.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Humanizer.dll
Normal file
BIN
bin/Debug/net9.0/Humanizer.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/MicroCom.Runtime.dll
Normal file
BIN
bin/Debug/net9.0/MicroCom.Runtime.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Microsoft.Bcl.AsyncInterfaces.dll
Normal file
BIN
bin/Debug/net9.0/Microsoft.Bcl.AsyncInterfaces.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Microsoft.CodeAnalysis.CSharp.Workspaces.dll
Normal file
BIN
bin/Debug/net9.0/Microsoft.CodeAnalysis.CSharp.Workspaces.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Microsoft.CodeAnalysis.CSharp.dll
Normal file
BIN
bin/Debug/net9.0/Microsoft.CodeAnalysis.CSharp.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Microsoft.CodeAnalysis.Workspaces.dll
Normal file
BIN
bin/Debug/net9.0/Microsoft.CodeAnalysis.Workspaces.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Microsoft.CodeAnalysis.dll
Normal file
BIN
bin/Debug/net9.0/Microsoft.CodeAnalysis.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Microsoft.EntityFrameworkCore.Abstractions.dll
Normal file
BIN
bin/Debug/net9.0/Microsoft.EntityFrameworkCore.Abstractions.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Microsoft.EntityFrameworkCore.Design.dll
Normal file
BIN
bin/Debug/net9.0/Microsoft.EntityFrameworkCore.Design.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Microsoft.EntityFrameworkCore.Relational.dll
Normal file
BIN
bin/Debug/net9.0/Microsoft.EntityFrameworkCore.Relational.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Microsoft.EntityFrameworkCore.dll
Normal file
BIN
bin/Debug/net9.0/Microsoft.EntityFrameworkCore.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Microsoft.Extensions.Caching.Abstractions.dll
Normal file
BIN
bin/Debug/net9.0/Microsoft.Extensions.Caching.Abstractions.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Microsoft.Extensions.Caching.Memory.dll
Normal file
BIN
bin/Debug/net9.0/Microsoft.Extensions.Caching.Memory.dll
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
bin/Debug/net9.0/Microsoft.Extensions.DependencyInjection.dll
Normal file
BIN
bin/Debug/net9.0/Microsoft.Extensions.DependencyInjection.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Microsoft.Extensions.DependencyModel.dll
Normal file
BIN
bin/Debug/net9.0/Microsoft.Extensions.DependencyModel.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Microsoft.Extensions.Logging.Abstractions.dll
Normal file
BIN
bin/Debug/net9.0/Microsoft.Extensions.Logging.Abstractions.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Microsoft.Extensions.Logging.dll
Normal file
BIN
bin/Debug/net9.0/Microsoft.Extensions.Logging.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Microsoft.Extensions.Options.dll
Normal file
BIN
bin/Debug/net9.0/Microsoft.Extensions.Options.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Microsoft.Extensions.Primitives.dll
Normal file
BIN
bin/Debug/net9.0/Microsoft.Extensions.Primitives.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Mono.TextTemplating.dll
Normal file
BIN
bin/Debug/net9.0/Mono.TextTemplating.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Npgsql.EntityFrameworkCore.PostgreSQL.dll
Normal file
BIN
bin/Debug/net9.0/Npgsql.EntityFrameworkCore.PostgreSQL.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Npgsql.dll
Normal file
BIN
bin/Debug/net9.0/Npgsql.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/SkiaSharp.dll
Normal file
BIN
bin/Debug/net9.0/SkiaSharp.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/System.CodeDom.dll
Normal file
BIN
bin/Debug/net9.0/System.CodeDom.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/System.Composition.AttributedModel.dll
Normal file
BIN
bin/Debug/net9.0/System.Composition.AttributedModel.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/System.Composition.Convention.dll
Normal file
BIN
bin/Debug/net9.0/System.Composition.Convention.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/System.Composition.Hosting.dll
Normal file
BIN
bin/Debug/net9.0/System.Composition.Hosting.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/System.Composition.Runtime.dll
Normal file
BIN
bin/Debug/net9.0/System.Composition.Runtime.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/System.Composition.TypedParts.dll
Normal file
BIN
bin/Debug/net9.0/System.Composition.TypedParts.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/Tmds.DBus.Protocol.dll
Normal file
BIN
bin/Debug/net9.0/Tmds.DBus.Protocol.dll
Normal file
Binary file not shown.
Binary file not shown.
BIN
bin/Debug/net9.0/cs/Microsoft.CodeAnalysis.CSharp.resources.dll
Normal file
BIN
bin/Debug/net9.0/cs/Microsoft.CodeAnalysis.CSharp.resources.dll
Normal file
Binary file not shown.
Binary file not shown.
BIN
bin/Debug/net9.0/cs/Microsoft.CodeAnalysis.resources.dll
Normal file
BIN
bin/Debug/net9.0/cs/Microsoft.CodeAnalysis.resources.dll
Normal file
Binary file not shown.
Binary file not shown.
BIN
bin/Debug/net9.0/de/Microsoft.CodeAnalysis.CSharp.resources.dll
Normal file
BIN
bin/Debug/net9.0/de/Microsoft.CodeAnalysis.CSharp.resources.dll
Normal file
Binary file not shown.
Binary file not shown.
BIN
bin/Debug/net9.0/de/Microsoft.CodeAnalysis.resources.dll
Normal file
BIN
bin/Debug/net9.0/de/Microsoft.CodeAnalysis.resources.dll
Normal file
Binary file not shown.
Binary file not shown.
BIN
bin/Debug/net9.0/es/Microsoft.CodeAnalysis.CSharp.resources.dll
Normal file
BIN
bin/Debug/net9.0/es/Microsoft.CodeAnalysis.CSharp.resources.dll
Normal file
Binary file not shown.
Binary file not shown.
BIN
bin/Debug/net9.0/es/Microsoft.CodeAnalysis.resources.dll
Normal file
BIN
bin/Debug/net9.0/es/Microsoft.CodeAnalysis.resources.dll
Normal file
Binary file not shown.
Binary file not shown.
BIN
bin/Debug/net9.0/fr/Microsoft.CodeAnalysis.CSharp.resources.dll
Normal file
BIN
bin/Debug/net9.0/fr/Microsoft.CodeAnalysis.CSharp.resources.dll
Normal file
Binary file not shown.
Binary file not shown.
BIN
bin/Debug/net9.0/fr/Microsoft.CodeAnalysis.resources.dll
Normal file
BIN
bin/Debug/net9.0/fr/Microsoft.CodeAnalysis.resources.dll
Normal file
Binary file not shown.
Binary file not shown.
BIN
bin/Debug/net9.0/it/Microsoft.CodeAnalysis.CSharp.resources.dll
Normal file
BIN
bin/Debug/net9.0/it/Microsoft.CodeAnalysis.CSharp.resources.dll
Normal file
Binary file not shown.
Binary file not shown.
BIN
bin/Debug/net9.0/it/Microsoft.CodeAnalysis.resources.dll
Normal file
BIN
bin/Debug/net9.0/it/Microsoft.CodeAnalysis.resources.dll
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user