database + create forms project
This commit is contained in:
parent
b221ea9271
commit
a186d4c3cd
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -11,6 +11,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SportCompetitionsBusinessLo
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SportCompetitionsDatabaseImplement", "SportCompetitionsDatabaseImplement\SportCompetitionsDatabaseImplement.csproj", "{3F8F26D2-1371-43F0-BB65-E064E9958D73}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SportCompetitionsView", "SportCompetitionsView\SportCompetitionsView.csproj", "{62A2E74E-0DE0-4465-9B5E-260AFB9E5629}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
@ -33,6 +35,10 @@ Global
|
||||
{3F8F26D2-1371-43F0-BB65-E064E9958D73}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{3F8F26D2-1371-43F0-BB65-E064E9958D73}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{3F8F26D2-1371-43F0-BB65-E064E9958D73}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{62A2E74E-0DE0-4465-9B5E-260AFB9E5629}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{62A2E74E-0DE0-4465-9B5E-260AFB9E5629}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{62A2E74E-0DE0-4465-9B5E-260AFB9E5629}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{62A2E74E-0DE0-4465-9B5E-260AFB9E5629}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
@ -0,0 +1,50 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v7.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v7.0": {
|
||||
"SportCompetitionsBusinessLogic/1.0.0": {
|
||||
"dependencies": {
|
||||
"SportCompetitionsContracts": "1.0.0",
|
||||
"SportCompetitionsDataModels": "1.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"SportCompetitionsBusinessLogic.dll": {}
|
||||
}
|
||||
},
|
||||
"SportCompetitionsContracts/1.0.0": {
|
||||
"dependencies": {
|
||||
"SportCompetitionsDataModels": "1.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"SportCompetitionsContracts.dll": {}
|
||||
}
|
||||
},
|
||||
"SportCompetitionsDataModels/1.0.0": {
|
||||
"runtime": {
|
||||
"SportCompetitionsDataModels.dll": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"SportCompetitionsBusinessLogic/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"SportCompetitionsContracts/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"SportCompetitionsDataModels/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
||||
dee6decc0148d80a81c45393639ca5db563b8db8
|
@ -0,0 +1,17 @@
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsBusinessLogic\bin\Debug\net7.0\SportCompetitionsBusinessLogic.deps.json
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsBusinessLogic\bin\Debug\net7.0\SportCompetitionsBusinessLogic.dll
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsBusinessLogic\bin\Debug\net7.0\SportCompetitionsBusinessLogic.pdb
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsBusinessLogic\bin\Debug\net7.0\SportCompetitionsContracts.dll
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsBusinessLogic\bin\Debug\net7.0\SportCompetitionsDataModels.dll
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsBusinessLogic\bin\Debug\net7.0\SportCompetitionsContracts.pdb
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsBusinessLogic\bin\Debug\net7.0\SportCompetitionsDataModels.pdb
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsBusinessLogic\obj\Debug\net7.0\SportCompetitionsBusinessLogic.csproj.AssemblyReference.cache
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsBusinessLogic\obj\Debug\net7.0\SportCompetitionsBusinessLogic.GeneratedMSBuildEditorConfig.editorconfig
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsBusinessLogic\obj\Debug\net7.0\SportCompetitionsBusinessLogic.AssemblyInfoInputs.cache
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsBusinessLogic\obj\Debug\net7.0\SportCompetitionsBusinessLogic.AssemblyInfo.cs
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsBusinessLogic\obj\Debug\net7.0\SportCompetitionsBusinessLogic.csproj.CoreCompileInputs.cache
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsBusinessLogic\obj\Debug\net7.0\SportCompetitionsBusinessLogic.csproj.CopyComplete
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsBusinessLogic\obj\Debug\net7.0\SportCompetitionsBusinessLogic.dll
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsBusinessLogic\obj\Debug\net7.0\refint\SportCompetitionsBusinessLogic.dll
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsBusinessLogic\obj\Debug\net7.0\SportCompetitionsBusinessLogic.pdb
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsBusinessLogic\obj\Debug\net7.0\ref\SportCompetitionsBusinessLogic.dll
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,36 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v7.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v7.0": {
|
||||
"SportCompetitionsContracts/1.0.0": {
|
||||
"dependencies": {
|
||||
"SportCompetitionsDataModels": "1.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"SportCompetitionsContracts.dll": {}
|
||||
}
|
||||
},
|
||||
"SportCompetitionsDataModels/1.0.0": {
|
||||
"runtime": {
|
||||
"SportCompetitionsDataModels.dll": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"SportCompetitionsContracts/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"SportCompetitionsDataModels/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
||||
995306eab9233fbd497a9ad0fa6c74e9361c9110
|
@ -0,0 +1,15 @@
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsContracts\bin\Debug\net7.0\SportCompetitionsContracts.deps.json
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsContracts\bin\Debug\net7.0\SportCompetitionsContracts.dll
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsContracts\bin\Debug\net7.0\SportCompetitionsContracts.pdb
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsContracts\bin\Debug\net7.0\SportCompetitionsDataModels.dll
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsContracts\bin\Debug\net7.0\SportCompetitionsDataModels.pdb
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsContracts\obj\Debug\net7.0\SportCompetitionsContracts.csproj.AssemblyReference.cache
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsContracts\obj\Debug\net7.0\SportCompetitionsContracts.GeneratedMSBuildEditorConfig.editorconfig
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsContracts\obj\Debug\net7.0\SportCompetitionsContracts.AssemblyInfoInputs.cache
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsContracts\obj\Debug\net7.0\SportCompetitionsContracts.AssemblyInfo.cs
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsContracts\obj\Debug\net7.0\SportCompetitionsContracts.csproj.CoreCompileInputs.cache
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsContracts\obj\Debug\net7.0\SportCompetitionsContracts.csproj.CopyComplete
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsContracts\obj\Debug\net7.0\SportCompetitionsContracts.dll
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsContracts\obj\Debug\net7.0\refint\SportCompetitionsContracts.dll
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsContracts\obj\Debug\net7.0\SportCompetitionsContracts.pdb
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsContracts\obj\Debug\net7.0\ref\SportCompetitionsContracts.dll
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,23 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v7.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v7.0": {
|
||||
"SportCompetitionsDataModels/1.0.0": {
|
||||
"runtime": {
|
||||
"SportCompetitionsDataModels.dll": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"SportCompetitionsDataModels/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
||||
35990f7369f77331816642b516da7e91b1fdfcfd
|
@ -0,0 +1,11 @@
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsDataModels\bin\Debug\net7.0\SportCompetitionsDataModels.deps.json
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsDataModels\bin\Debug\net7.0\SportCompetitionsDataModels.dll
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsDataModels\bin\Debug\net7.0\SportCompetitionsDataModels.pdb
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsDataModels\obj\Debug\net7.0\SportCompetitionsDataModels.GeneratedMSBuildEditorConfig.editorconfig
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsDataModels\obj\Debug\net7.0\SportCompetitionsDataModels.AssemblyInfoInputs.cache
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsDataModels\obj\Debug\net7.0\SportCompetitionsDataModels.AssemblyInfo.cs
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsDataModels\obj\Debug\net7.0\SportCompetitionsDataModels.csproj.CoreCompileInputs.cache
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsDataModels\obj\Debug\net7.0\SportCompetitionsDataModels.dll
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsDataModels\obj\Debug\net7.0\refint\SportCompetitionsDataModels.dll
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsDataModels\obj\Debug\net7.0\SportCompetitionsDataModels.pdb
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsDataModels\obj\Debug\net7.0\ref\SportCompetitionsDataModels.dll
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
154
SportCompetitionsDatabaseImplement/Migrations/20240423155956_InitialCreate.Designer.cs
generated
Normal file
154
SportCompetitionsDatabaseImplement/Migrations/20240423155956_InitialCreate.Designer.cs
generated
Normal file
@ -0,0 +1,154 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
using SportCompetitionsDatabaseImplement;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace SportCompetitionsDatabaseImplement.Migrations
|
||||
{
|
||||
[DbContext(typeof(SportCompetitionsDatabase))]
|
||||
[Migration("20240423155956_InitialCreate")]
|
||||
partial class InitialCreate
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "7.0.11")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
||||
|
||||
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("SportCompetitionsDatabaseImplement.Models.Competition", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("CompetitionCity")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<DateTime>("CompetitionDateHolding")
|
||||
.HasColumnType("timestamp without time zone");
|
||||
|
||||
b.Property<string>("CompetitionName")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Competitions");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("SportCompetitionsDatabaseImplement.Models.Member", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<DateTime>("MemberBirthDate")
|
||||
.HasColumnType("timestamp without time zone");
|
||||
|
||||
b.Property<string>("MemberFCs")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("MemberGender")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("TeamId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Members");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("SportCompetitionsDatabaseImplement.Models.Record", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int>("MemberId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<DateTime>("RecordDate")
|
||||
.HasColumnType("timestamp without time zone");
|
||||
|
||||
b.Property<string>("RecordDecriptiption")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("RecordName")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("RecordValue")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Records");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("SportCompetitionsDatabaseImplement.Models.Result", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int>("CompetitionId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("ResultPosition")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("TeamId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Results");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("SportCompetitionsDatabaseImplement.Models.Team", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("TeamCountry")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("TeamName")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Teams");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,112 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace SportCompetitionsDatabaseImplement.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class InitialCreate : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Competitions",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
CompetitionName = table.Column<string>(type: "text", nullable: false),
|
||||
CompetitionDateHolding = table.Column<DateTime>(type: "timestamp without time zone", nullable: false),
|
||||
CompetitionCity = table.Column<string>(type: "text", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Competitions", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Members",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
MemberFCs = table.Column<string>(type: "text", nullable: false),
|
||||
MemberBirthDate = table.Column<DateTime>(type: "timestamp without time zone", nullable: false),
|
||||
MemberGender = table.Column<string>(type: "text", nullable: false),
|
||||
TeamId = table.Column<int>(type: "integer", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Members", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Records",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
RecordName = table.Column<string>(type: "text", nullable: false),
|
||||
RecordDecriptiption = table.Column<string>(type: "text", nullable: false),
|
||||
MemberId = table.Column<int>(type: "integer", nullable: false),
|
||||
RecordDate = table.Column<DateTime>(type: "timestamp without time zone", nullable: false),
|
||||
RecordValue = table.Column<int>(type: "integer", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Records", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Results",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
CompetitionId = table.Column<int>(type: "integer", nullable: false),
|
||||
TeamId = table.Column<int>(type: "integer", nullable: false),
|
||||
ResultPosition = table.Column<int>(type: "integer", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Results", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Teams",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
TeamName = table.Column<string>(type: "text", nullable: false),
|
||||
TeamCountry = table.Column<string>(type: "text", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Teams", x => x.Id);
|
||||
});
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "Competitions");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Members");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Records");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Results");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Teams");
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,151 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
using SportCompetitionsDatabaseImplement;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace SportCompetitionsDatabaseImplement.Migrations
|
||||
{
|
||||
[DbContext(typeof(SportCompetitionsDatabase))]
|
||||
partial class SportCompetitionsDatabaseModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "7.0.11")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
||||
|
||||
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("SportCompetitionsDatabaseImplement.Models.Competition", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("CompetitionCity")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<DateTime>("CompetitionDateHolding")
|
||||
.HasColumnType("timestamp without time zone");
|
||||
|
||||
b.Property<string>("CompetitionName")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Competitions");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("SportCompetitionsDatabaseImplement.Models.Member", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<DateTime>("MemberBirthDate")
|
||||
.HasColumnType("timestamp without time zone");
|
||||
|
||||
b.Property<string>("MemberFCs")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("MemberGender")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("TeamId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Members");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("SportCompetitionsDatabaseImplement.Models.Record", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int>("MemberId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<DateTime>("RecordDate")
|
||||
.HasColumnType("timestamp without time zone");
|
||||
|
||||
b.Property<string>("RecordDecriptiption")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("RecordName")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("RecordValue")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Records");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("SportCompetitionsDatabaseImplement.Models.Result", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int>("CompetitionId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("ResultPosition")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("TeamId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Results");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("SportCompetitionsDatabaseImplement.Models.Team", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("TeamCountry")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("TeamName")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Teams");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
@ -1,4 +1,5 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using SportCompetitionsDatabaseImplement.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@ -9,6 +10,22 @@ namespace SportCompetitionsDatabaseImplement
|
||||
{
|
||||
public class SportCompetitionsDatabase : DbContext
|
||||
{
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
{
|
||||
if (optionsBuilder.IsConfigured == false)
|
||||
{
|
||||
optionsBuilder.UseNpgsql(@"Host=localhost;Database=SportCompetitionsDatabase;Username=postgres;Password=postgres");
|
||||
}
|
||||
base.OnConfiguring(optionsBuilder);
|
||||
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);
|
||||
AppContext.SetSwitch("Npgsql.DisableDateTimeInfinityConversions", true);
|
||||
}
|
||||
|
||||
|
||||
public virtual DbSet<Competition> Competitions { get; set; }
|
||||
public virtual DbSet<Member> Members { get; set; }
|
||||
public virtual DbSet<Record> Records { get; set; }
|
||||
public virtual DbSet<Result> Results { get; set; }
|
||||
public virtual DbSet<Team> Teams { get; set; }
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,452 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v7.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v7.0": {
|
||||
"SportCompetitionsDatabaseImplement/1.0.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.EntityFrameworkCore": "7.0.11",
|
||||
"Microsoft.EntityFrameworkCore.Tools": "7.0.11",
|
||||
"Npgsql.EntityFrameworkCore.PostgreSQL": "7.0.11",
|
||||
"SportCompetitionsBusinessLogic": "1.0.0",
|
||||
"SportCompetitionsContracts": "1.0.0",
|
||||
"SportCompetitionsDataModels": "1.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"SportCompetitionsDatabaseImplement.dll": {}
|
||||
}
|
||||
},
|
||||
"Humanizer.Core/2.14.1": {
|
||||
"runtime": {
|
||||
"lib/net6.0/Humanizer.dll": {
|
||||
"assemblyVersion": "2.14.0.0",
|
||||
"fileVersion": "2.14.1.48190"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.EntityFrameworkCore/7.0.11": {
|
||||
"dependencies": {
|
||||
"Microsoft.EntityFrameworkCore.Abstractions": "7.0.11",
|
||||
"Microsoft.EntityFrameworkCore.Analyzers": "7.0.11",
|
||||
"Microsoft.Extensions.Caching.Memory": "7.0.0",
|
||||
"Microsoft.Extensions.DependencyInjection": "7.0.0",
|
||||
"Microsoft.Extensions.Logging": "7.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net6.0/Microsoft.EntityFrameworkCore.dll": {
|
||||
"assemblyVersion": "7.0.11.0",
|
||||
"fileVersion": "7.0.1123.40906"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.EntityFrameworkCore.Abstractions/7.0.11": {
|
||||
"runtime": {
|
||||
"lib/net6.0/Microsoft.EntityFrameworkCore.Abstractions.dll": {
|
||||
"assemblyVersion": "7.0.11.0",
|
||||
"fileVersion": "7.0.1123.40906"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.EntityFrameworkCore.Analyzers/7.0.11": {},
|
||||
"Microsoft.EntityFrameworkCore.Design/7.0.11": {
|
||||
"dependencies": {
|
||||
"Humanizer.Core": "2.14.1",
|
||||
"Microsoft.EntityFrameworkCore.Relational": "7.0.11",
|
||||
"Microsoft.Extensions.DependencyModel": "7.0.0",
|
||||
"Mono.TextTemplating": "2.2.1"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net6.0/Microsoft.EntityFrameworkCore.Design.dll": {
|
||||
"assemblyVersion": "7.0.11.0",
|
||||
"fileVersion": "7.0.1123.40906"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.EntityFrameworkCore.Relational/7.0.11": {
|
||||
"dependencies": {
|
||||
"Microsoft.EntityFrameworkCore": "7.0.11",
|
||||
"Microsoft.Extensions.Configuration.Abstractions": "7.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net6.0/Microsoft.EntityFrameworkCore.Relational.dll": {
|
||||
"assemblyVersion": "7.0.11.0",
|
||||
"fileVersion": "7.0.1123.40906"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.EntityFrameworkCore.Tools/7.0.11": {
|
||||
"dependencies": {
|
||||
"Microsoft.EntityFrameworkCore.Design": "7.0.11"
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.Caching.Abstractions/7.0.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.Primitives": "7.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net7.0/Microsoft.Extensions.Caching.Abstractions.dll": {
|
||||
"assemblyVersion": "7.0.0.0",
|
||||
"fileVersion": "7.0.22.51805"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.Caching.Memory/7.0.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.Caching.Abstractions": "7.0.0",
|
||||
"Microsoft.Extensions.DependencyInjection.Abstractions": "7.0.0",
|
||||
"Microsoft.Extensions.Logging.Abstractions": "7.0.0",
|
||||
"Microsoft.Extensions.Options": "7.0.0",
|
||||
"Microsoft.Extensions.Primitives": "7.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net7.0/Microsoft.Extensions.Caching.Memory.dll": {
|
||||
"assemblyVersion": "7.0.0.0",
|
||||
"fileVersion": "7.0.22.51805"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.Configuration.Abstractions/7.0.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.Primitives": "7.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net7.0/Microsoft.Extensions.Configuration.Abstractions.dll": {
|
||||
"assemblyVersion": "7.0.0.0",
|
||||
"fileVersion": "7.0.22.51805"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.DependencyInjection/7.0.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.DependencyInjection.Abstractions": "7.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net7.0/Microsoft.Extensions.DependencyInjection.dll": {
|
||||
"assemblyVersion": "7.0.0.0",
|
||||
"fileVersion": "7.0.22.51805"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.DependencyInjection.Abstractions/7.0.0": {
|
||||
"runtime": {
|
||||
"lib/net7.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {
|
||||
"assemblyVersion": "7.0.0.0",
|
||||
"fileVersion": "7.0.22.51805"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.DependencyModel/7.0.0": {
|
||||
"dependencies": {
|
||||
"System.Text.Encodings.Web": "7.0.0",
|
||||
"System.Text.Json": "7.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net7.0/Microsoft.Extensions.DependencyModel.dll": {
|
||||
"assemblyVersion": "7.0.0.0",
|
||||
"fileVersion": "7.0.22.51805"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.Logging/7.0.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.DependencyInjection": "7.0.0",
|
||||
"Microsoft.Extensions.DependencyInjection.Abstractions": "7.0.0",
|
||||
"Microsoft.Extensions.Logging.Abstractions": "7.0.0",
|
||||
"Microsoft.Extensions.Options": "7.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net7.0/Microsoft.Extensions.Logging.dll": {
|
||||
"assemblyVersion": "7.0.0.0",
|
||||
"fileVersion": "7.0.22.51805"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.Logging.Abstractions/7.0.0": {
|
||||
"runtime": {
|
||||
"lib/net7.0/Microsoft.Extensions.Logging.Abstractions.dll": {
|
||||
"assemblyVersion": "7.0.0.0",
|
||||
"fileVersion": "7.0.22.51805"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.Options/7.0.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.DependencyInjection.Abstractions": "7.0.0",
|
||||
"Microsoft.Extensions.Primitives": "7.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net7.0/Microsoft.Extensions.Options.dll": {
|
||||
"assemblyVersion": "7.0.0.0",
|
||||
"fileVersion": "7.0.22.51805"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.Extensions.Primitives/7.0.0": {
|
||||
"runtime": {
|
||||
"lib/net7.0/Microsoft.Extensions.Primitives.dll": {
|
||||
"assemblyVersion": "7.0.0.0",
|
||||
"fileVersion": "7.0.22.51805"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Mono.TextTemplating/2.2.1": {
|
||||
"dependencies": {
|
||||
"System.CodeDom": "4.4.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/netstandard2.0/Mono.TextTemplating.dll": {
|
||||
"assemblyVersion": "2.2.0.0",
|
||||
"fileVersion": "2.2.1.1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Npgsql/7.0.6": {
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.Logging.Abstractions": "7.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net7.0/Npgsql.dll": {
|
||||
"assemblyVersion": "7.0.6.0",
|
||||
"fileVersion": "7.0.6.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Npgsql.EntityFrameworkCore.PostgreSQL/7.0.11": {
|
||||
"dependencies": {
|
||||
"Microsoft.EntityFrameworkCore": "7.0.11",
|
||||
"Microsoft.EntityFrameworkCore.Abstractions": "7.0.11",
|
||||
"Microsoft.EntityFrameworkCore.Relational": "7.0.11",
|
||||
"Npgsql": "7.0.6"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net7.0/Npgsql.EntityFrameworkCore.PostgreSQL.dll": {
|
||||
"assemblyVersion": "7.0.11.0",
|
||||
"fileVersion": "7.0.11.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.CodeDom/4.4.0": {
|
||||
"runtime": {
|
||||
"lib/netstandard2.0/System.CodeDom.dll": {
|
||||
"assemblyVersion": "4.0.0.0",
|
||||
"fileVersion": "4.6.25519.3"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.Text.Encodings.Web/7.0.0": {},
|
||||
"System.Text.Json/7.0.0": {
|
||||
"dependencies": {
|
||||
"System.Text.Encodings.Web": "7.0.0"
|
||||
}
|
||||
},
|
||||
"SportCompetitionsBusinessLogic/1.0.0": {
|
||||
"dependencies": {
|
||||
"SportCompetitionsContracts": "1.0.0",
|
||||
"SportCompetitionsDataModels": "1.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"SportCompetitionsBusinessLogic.dll": {}
|
||||
}
|
||||
},
|
||||
"SportCompetitionsContracts/1.0.0": {
|
||||
"dependencies": {
|
||||
"SportCompetitionsDataModels": "1.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"SportCompetitionsContracts.dll": {}
|
||||
}
|
||||
},
|
||||
"SportCompetitionsDataModels/1.0.0": {
|
||||
"runtime": {
|
||||
"SportCompetitionsDataModels.dll": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"SportCompetitionsDatabaseImplement/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"Humanizer.Core/2.14.1": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-lQKvtaTDOXnoVJ20ibTuSIOf2i0uO0MPbDhd1jm238I+U/2ZnRENj0cktKZhtchBMtCUSRQ5v4xBCUbKNmyVMw==",
|
||||
"path": "humanizer.core/2.14.1",
|
||||
"hashPath": "humanizer.core.2.14.1.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.EntityFrameworkCore/7.0.11": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-r7YGITjQ7v1hYtUXIavjSx+T1itKVPUFAIBN7HaKNjbR8x+gep8w9H3NEchglJOh1woZR4b2MhbSo2YFRZwZDg==",
|
||||
"path": "microsoft.entityframeworkcore/7.0.11",
|
||||
"hashPath": "microsoft.entityframeworkcore.7.0.11.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.EntityFrameworkCore.Abstractions/7.0.11": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-IoOnhycZ0/VtLowf0HgB0cujxwksokzkS3/5108AHOcbntHUTqwxtCjG4E4FCly/45G+mxb+4PxBdFZhA49lwQ==",
|
||||
"path": "microsoft.entityframeworkcore.abstractions/7.0.11",
|
||||
"hashPath": "microsoft.entityframeworkcore.abstractions.7.0.11.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.EntityFrameworkCore.Analyzers/7.0.11": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-Qexum5safSSfijx6P1QSq5bVJPPTM/uf7lQmpL/shkiozEC/0FzqNaVUfFpbNN8zsO1jMFYbeDMF4cxJMlTT9w==",
|
||||
"path": "microsoft.entityframeworkcore.analyzers/7.0.11",
|
||||
"hashPath": "microsoft.entityframeworkcore.analyzers.7.0.11.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.EntityFrameworkCore.Design/7.0.11": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-DaykA+XkNNiznnJq8HWVl4jpBycL9/W8NkonoBz7eIrxfU9Q4zH4iPztlvOkJugYCNPS29frPnju3RY72FoPNQ==",
|
||||
"path": "microsoft.entityframeworkcore.design/7.0.11",
|
||||
"hashPath": "microsoft.entityframeworkcore.design.7.0.11.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.EntityFrameworkCore.Relational/7.0.11": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-yHEEyah1XARStV1SJOsdKj8ieoMCZ0MkNuQaLfWONMWmbqwuDohfGQZk/FuzdT4aO/lJrUYiXbBSFv0ACzphEw==",
|
||||
"path": "microsoft.entityframeworkcore.relational/7.0.11",
|
||||
"hashPath": "microsoft.entityframeworkcore.relational.7.0.11.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.EntityFrameworkCore.Tools/7.0.11": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-dhNLVQsMi6E4XEkVNmxbaNkLd06Q0ipwgiBz9k9rSjzaNJQVUA+/N6lsKRWXjFjTPgsaVpos+KN5Iimy6TQ2Yg==",
|
||||
"path": "microsoft.entityframeworkcore.tools/7.0.11",
|
||||
"hashPath": "microsoft.entityframeworkcore.tools.7.0.11.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.Caching.Abstractions/7.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-IeimUd0TNbhB4ded3AbgBLQv2SnsiVugDyGV1MvspQFVlA07nDC7Zul7kcwH5jWN3JiTcp/ySE83AIJo8yfKjg==",
|
||||
"path": "microsoft.extensions.caching.abstractions/7.0.0",
|
||||
"hashPath": "microsoft.extensions.caching.abstractions.7.0.0.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.Caching.Memory/7.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-xpidBs2KCE2gw1JrD0quHE72kvCaI3xFql5/Peb2GRtUuZX+dYPoK/NTdVMiM67Svym0M0Df9A3xyU0FbMQhHw==",
|
||||
"path": "microsoft.extensions.caching.memory/7.0.0",
|
||||
"hashPath": "microsoft.extensions.caching.memory.7.0.0.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.Configuration.Abstractions/7.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-f34u2eaqIjNO9YLHBz8rozVZ+TcFiFs0F3r7nUJd7FRkVSxk8u4OpoK226mi49MwexHOR2ibP9MFvRUaLilcQQ==",
|
||||
"path": "microsoft.extensions.configuration.abstractions/7.0.0",
|
||||
"hashPath": "microsoft.extensions.configuration.abstractions.7.0.0.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.DependencyInjection/7.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-elNeOmkeX3eDVG6pYVeV82p29hr+UKDaBhrZyWvWLw/EVZSYEkZlQdkp0V39k/Xehs2Qa0mvoCvkVj3eQxNQ1Q==",
|
||||
"path": "microsoft.extensions.dependencyinjection/7.0.0",
|
||||
"hashPath": "microsoft.extensions.dependencyinjection.7.0.0.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.DependencyInjection.Abstractions/7.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-h3j/QfmFN4S0w4C2A6X7arXij/M/OVw3uQHSOFxnND4DyAzO1F9eMX7Eti7lU/OkSthEE0WzRsfT/Dmx86jzCw==",
|
||||
"path": "microsoft.extensions.dependencyinjection.abstractions/7.0.0",
|
||||
"hashPath": "microsoft.extensions.dependencyinjection.abstractions.7.0.0.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.DependencyModel/7.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-oONNYd71J3LzkWc4fUHl3SvMfiQMYUCo/mDHDEu76hYYxdhdrPYv6fvGv9nnKVyhE9P0h20AU8RZB5OOWQcAXg==",
|
||||
"path": "microsoft.extensions.dependencymodel/7.0.0",
|
||||
"hashPath": "microsoft.extensions.dependencymodel.7.0.0.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.Logging/7.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-Nw2muoNrOG5U5qa2ZekXwudUn2BJcD41e65zwmDHb1fQegTX66UokLWZkJRpqSSHXDOWZ5V0iqhbxOEky91atA==",
|
||||
"path": "microsoft.extensions.logging/7.0.0",
|
||||
"hashPath": "microsoft.extensions.logging.7.0.0.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.Logging.Abstractions/7.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-kmn78+LPVMOWeITUjIlfxUPDsI0R6G0RkeAMBmQxAJ7vBJn4q2dTva7pWi65ceN5vPGjJ9q/Uae2WKgvfktJAw==",
|
||||
"path": "microsoft.extensions.logging.abstractions/7.0.0",
|
||||
"hashPath": "microsoft.extensions.logging.abstractions.7.0.0.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.Options/7.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-lP1yBnTTU42cKpMozuafbvNtQ7QcBjr/CcK3bYOGEMH55Fjt+iecXjT6chR7vbgCMqy3PG3aNQSZgo/EuY/9qQ==",
|
||||
"path": "microsoft.extensions.options/7.0.0",
|
||||
"hashPath": "microsoft.extensions.options.7.0.0.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.Extensions.Primitives/7.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-um1KU5kxcRp3CNuI8o/GrZtD4AIOXDk+RLsytjZ9QPok3ttLUelLKpilVPuaFT3TFjOhSibUAso0odbOaCDj3Q==",
|
||||
"path": "microsoft.extensions.primitives/7.0.0",
|
||||
"hashPath": "microsoft.extensions.primitives.7.0.0.nupkg.sha512"
|
||||
},
|
||||
"Mono.TextTemplating/2.2.1": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-KZYeKBET/2Z0gY1WlTAK7+RHTl7GSbtvTLDXEZZojUdAPqpQNDL6tHv7VUpqfX5VEOh+uRGKaZXkuD253nEOBQ==",
|
||||
"path": "mono.texttemplating/2.2.1",
|
||||
"hashPath": "mono.texttemplating.2.2.1.nupkg.sha512"
|
||||
},
|
||||
"Npgsql/7.0.6": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-TAqvwRnm3NJ0QvN7cvu6geJkbI0XPzGVRElVY5hF4gsgA+BnE12x6GM1TLhdeq+7ZKvvo3BD8jXKnXmr3tvdEw==",
|
||||
"path": "npgsql/7.0.6",
|
||||
"hashPath": "npgsql.7.0.6.nupkg.sha512"
|
||||
},
|
||||
"Npgsql.EntityFrameworkCore.PostgreSQL/7.0.11": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-cHEgEz0ldXc9wVANs8sJqC+3eilqefrkasCBgaVT0tyj8tb1p3/pwy2ngjboNkDG3M0z+xJsJ4jC5p8wySAM3w==",
|
||||
"path": "npgsql.entityframeworkcore.postgresql/7.0.11",
|
||||
"hashPath": "npgsql.entityframeworkcore.postgresql.7.0.11.nupkg.sha512"
|
||||
},
|
||||
"System.CodeDom/4.4.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-2sCCb7doXEwtYAbqzbF/8UAeDRMNmPaQbU2q50Psg1J9KzumyVVCgKQY8s53WIPTufNT0DpSe9QRvVjOzfDWBA==",
|
||||
"path": "system.codedom/4.4.0",
|
||||
"hashPath": "system.codedom.4.4.0.nupkg.sha512"
|
||||
},
|
||||
"System.Text.Encodings.Web/7.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-OP6umVGxc0Z0MvZQBVigj4/U31Pw72ITihDWP9WiWDm+q5aoe0GaJivsfYGq53o6dxH7DcXWiCTl7+0o2CGdmg==",
|
||||
"path": "system.text.encodings.web/7.0.0",
|
||||
"hashPath": "system.text.encodings.web.7.0.0.nupkg.sha512"
|
||||
},
|
||||
"System.Text.Json/7.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-DaGSsVqKsn/ia6RG8frjwmJonfos0srquhw09TlT8KRw5I43E+4gs+/bZj4K0vShJ5H9imCuXupb4RmS+dBy3w==",
|
||||
"path": "system.text.json/7.0.0",
|
||||
"hashPath": "system.text.json.7.0.0.nupkg.sha512"
|
||||
},
|
||||
"SportCompetitionsBusinessLogic/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"SportCompetitionsContracts/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"SportCompetitionsDataModels/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,12 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net7.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "7.0.0"
|
||||
},
|
||||
"configProperties": {
|
||||
"System.Reflection.NullabilityInfoContext.IsSupported": true
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
@ -0,0 +1 @@
|
||||
47b165a32d1f49cb0cbb35cfdd70c8678d128c43
|
@ -0,0 +1,21 @@
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsDatabaseImplement\bin\Debug\net7.0\SportCompetitionsDatabaseImplement.deps.json
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsDatabaseImplement\bin\Debug\net7.0\SportCompetitionsDatabaseImplement.runtimeconfig.json
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsDatabaseImplement\bin\Debug\net7.0\SportCompetitionsDatabaseImplement.dll
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsDatabaseImplement\bin\Debug\net7.0\SportCompetitionsDatabaseImplement.pdb
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsDatabaseImplement\bin\Debug\net7.0\SportCompetitionsBusinessLogic.dll
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsDatabaseImplement\bin\Debug\net7.0\SportCompetitionsContracts.dll
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsDatabaseImplement\bin\Debug\net7.0\SportCompetitionsDataModels.dll
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsDatabaseImplement\bin\Debug\net7.0\SportCompetitionsBusinessLogic.pdb
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsDatabaseImplement\bin\Debug\net7.0\SportCompetitionsContracts.pdb
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsDatabaseImplement\bin\Debug\net7.0\SportCompetitionsDataModels.pdb
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsDatabaseImplement\obj\Debug\net7.0\SportCompetitionsDatabaseImplement.csproj.AssemblyReference.cache
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsDatabaseImplement\obj\Debug\net7.0\SportCompetitionsDatabaseImplement.GeneratedMSBuildEditorConfig.editorconfig
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsDatabaseImplement\obj\Debug\net7.0\SportCompetitionsDatabaseImplement.AssemblyInfoInputs.cache
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsDatabaseImplement\obj\Debug\net7.0\SportCompetitionsDatabaseImplement.AssemblyInfo.cs
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsDatabaseImplement\obj\Debug\net7.0\SportCompetitionsDatabaseImplement.csproj.CoreCompileInputs.cache
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsDatabaseImplement\obj\Debug\net7.0\SportCompetitionsDatabaseImplement.csproj.CopyComplete
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsDatabaseImplement\obj\Debug\net7.0\SportCompetitionsDatabaseImplement.dll
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsDatabaseImplement\obj\Debug\net7.0\refint\SportCompetitionsDatabaseImplement.dll
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsDatabaseImplement\obj\Debug\net7.0\SportCompetitionsDatabaseImplement.pdb
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsDatabaseImplement\obj\Debug\net7.0\SportCompetitionsDatabaseImplement.genruntimeconfig.cache
|
||||
F:\SUBD\lab4\SportCompetitions\SportCompetitionsDatabaseImplement\obj\Debug\net7.0\ref\SportCompetitionsDatabaseImplement.dll
|
Binary file not shown.
@ -0,0 +1 @@
|
||||
77beb39bbb4dcc88c7f1fe9f9c66a68ef7ef7729
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
39
SportCompetitionsView/Form1.Designer.cs
generated
Normal file
39
SportCompetitionsView/Form1.Designer.cs
generated
Normal file
@ -0,0 +1,39 @@
|
||||
namespace SportCompetitionsView
|
||||
{
|
||||
partial class Form1
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(800, 450);
|
||||
this.Text = "Form1";
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
10
SportCompetitionsView/Form1.cs
Normal file
10
SportCompetitionsView/Form1.cs
Normal file
@ -0,0 +1,10 @@
|
||||
namespace SportCompetitionsView
|
||||
{
|
||||
public partial class Form1 : Form
|
||||
{
|
||||
public Form1()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
120
SportCompetitionsView/Form1.resx
Normal file
120
SportCompetitionsView/Form1.resx
Normal file
@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
46
SportCompetitionsView/Program.cs
Normal file
46
SportCompetitionsView/Program.cs
Normal file
@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using SportCompetitionsBusinessLogic.BusinessLogics;
|
||||
using SportCompetitionsContracts.BusinessLogicsContracts;
|
||||
using SportCompetitionsContracts.StoragesContracts;
|
||||
|
||||
namespace SportCompetitionsView
|
||||
{
|
||||
internal static class Program
|
||||
{
|
||||
private static ServiceProvider? _serviceProvider;
|
||||
public static ServiceProvider? ServiceProvider => _serviceProvider;
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
// To customize application configuration such as set high DPI settings or default font,
|
||||
// see https://aka.ms/applicationconfiguration.
|
||||
ApplicationConfiguration.Initialize();
|
||||
var services = new ServiceCollection();
|
||||
ConfigureServices(services);
|
||||
_serviceProvider = services.BuildServiceProvider();
|
||||
Application.Run(_serviceProvider.GetRequiredService<Form1>());
|
||||
}
|
||||
|
||||
private static void ConfigureServices(ServiceCollection services)
|
||||
{
|
||||
/*services.AddTransient<ICompetitionStorage, CompetitionStorage>();
|
||||
services.AddTransient<IMemberStorage, MemberStorage>();
|
||||
services.AddTransient<IRecordStorage, RecordStorage>();
|
||||
services.AddTransient<IResultStorage, ResultStorage>();
|
||||
services.AddTransient<ITeamStorage, TeamStorage>();*/
|
||||
|
||||
services.AddTransient<ICompetitionLogic, CompetitionLogic>();
|
||||
services.AddTransient<IMemberLogic, MemberLogic>();
|
||||
services.AddTransient<IRecordLogic, RecordLogic>();
|
||||
services.AddTransient<IResultLogic, ResultLogic>();
|
||||
services.AddTransient<ITeamLogic, TeamLogic>();
|
||||
|
||||
services.AddTransient<Form1>();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
28
SportCompetitionsView/SportCompetitionsView.csproj
Normal file
28
SportCompetitionsView/SportCompetitionsView.csproj
Normal file
@ -0,0 +1,28 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFramework>net7.0-windows</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<UseWindowsForms>true</UseWindowsForms>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.11" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="7.0.11">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Options" Version="7.0.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\SportCompetitionsBusinessLogic\SportCompetitionsBusinessLogic.csproj" />
|
||||
<ProjectReference Include="..\SportCompetitionsContracts\SportCompetitionsContracts.csproj" />
|
||||
<ProjectReference Include="..\SportCompetitionsDatabaseImplement\SportCompetitionsDatabaseImplement.csproj" />
|
||||
<ProjectReference Include="..\SportCompetitionsDataModels\SportCompetitionsDataModels.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
8
SportCompetitionsView/SportCompetitionsView.csproj.user
Normal file
8
SportCompetitionsView/SportCompetitionsView.csproj.user
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Compile Update="Form1.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
</Project>
|
BIN
SportCompetitionsView/bin/Debug/net7.0-windows/Humanizer.dll
Normal file
BIN
SportCompetitionsView/bin/Debug/net7.0-windows/Humanizer.dll
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
SportCompetitionsView/bin/Debug/net7.0-windows/Npgsql.dll
Normal file
BIN
SportCompetitionsView/bin/Debug/net7.0-windows/Npgsql.dll
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user