Save

parent bfed7faa
using Domain;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Infrastructure
{
public class DocumentEntityTypeConfiguration : IEntityTypeConfiguration<Document>
{
public void Configure(EntityTypeBuilder<Document> builder)
{
builder.ToTable("Document");
builder.HasKey(x => x.DocumentKey);
builder.Property(x => x.DocumentKey).HasColumnName("DocumentKey");
builder.Property(x => x.DocumentName).HasColumnName("DocumentName");
}
}
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Proxies" Version="5.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="5.0.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Model\Domain.csproj" />
</ItemGroup>
</Project>
using Domain;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Infrastructure
{
public class MyShipEntityTypeConfiguration : IEntityTypeConfiguration<MyShip> {
public void Configure(EntityTypeBuilder<MyShip> builder)
{
builder.ToTable("FishParticular");
builder.HasKey(x => x.ShipRegisterNoKey);
builder.HasMany(s => s.ShipCertificate).WithOne(x => x.MyShip).HasForeignKey(s => s.shipRegisterNoKey);
builder.Property(x => x.ShipRegisterNoKey).HasColumnName("ShipRegisterNoKey");
builder.Property(x => x.ShipRegisterNo).HasColumnName("ShipRegisterNo");
builder.Property(x => x.Tha_Name).HasColumnName("Tha_Name");
builder.Property(x => x.Eng_Name).HasColumnName("Eng_Name");
builder.Property(x => x.Use_type_key).HasColumnName("Use_type_key");
builder.Property(x => x.Use_type_Name).HasColumnName("Use_type_Name");
builder.Property(x => x.Use_bound_Name).HasColumnName("Use_bound_Name");
builder.Property(x => x.TonGross).HasColumnName("TonGross");
builder.Property(x => x.TonNet).HasColumnName("TonNet");
builder.Property(x => x.Loa).HasColumnName("Loa");
builder.Property(x => x.Beam).HasColumnName("Beam");
builder.Property(x => x.Depth).HasColumnName("Depth");
builder.Property(x => x.Registerdate).HasColumnName("Registerdate");
builder.Property(x => x.RegisterProviceCode).HasColumnName("RegisterProviceCode");
builder.Property(x => x.Permit_ValidDate).HasColumnName("Permit_ValidDate");
builder.Property(x => x.Permit_ExpireDate).HasColumnName("Permit_ExpireDate");
builder.Property(x => x.PicShip1).HasColumnName("PicShip1");
builder.Property(x => x.PicShip2).HasColumnName("PicShip2");
builder.Property(x => x.PicShip3).HasColumnName("PicShip3");
builder.Property(x => x.visittype).HasColumnName("visittype");
builder.Property(x => x.shipstatus).HasColumnName("shipstatus");
builder.Property(x => x.totalseaman).HasColumnName("totalseaman");
builder.Property(x => x.totallabour).HasColumnName("totallabour");
builder.Property(x => x.totalcrewonboard).HasColumnName("totalcrewonboard");
builder.Property(x => x.procurementtype).HasColumnName("procurementtype");
builder.Property(x => x.approvestatus).HasColumnName("approvestatus");
builder.Property(x => x.CreateDateTime).HasColumnName("CreateDateTime");
builder.Property(x => x.CreateBy).HasColumnName("CreateBy");
builder.Property(x => x.ModifyDateTime).HasColumnName("ModifyDateTime");
builder.Property(x => x.ModifyBy).HasColumnName("ModifyBy");
builder.Property(x => x.CallSign).HasColumnName("CallSign");
}
}
}
using Domain;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Infrastructure
{
public class ShipCertificateEntityTypeConfiguration : IEntityTypeConfiguration<ShipCertificate>
{
public void Configure(EntityTypeBuilder<ShipCertificate> builder)
{
builder.ToTable("ShipCertificate");
builder.HasKey(x => x.shipcertificatekey);
builder.HasOne(s => s.Document).WithMany(g => g.ShipCertificate).HasForeignKey(s => s.documentkey);
builder.HasOne(x => x.MyShip).WithMany(g => g.ShipCertificate).HasForeignKey(x => x.shipRegisterNoKey);
builder.Property(x => x.shipcertificatekey).HasColumnName("shipcertificatekey");
builder.Property(x => x.shipRegisterNoKey).HasColumnName("shipRegisterNoKey");
builder.Property(x => x.documentkey).HasColumnName("documentkey");
builder.Property(x => x.certificateno).HasColumnName("certificateno");
}
}
}
using Domain;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Text;
namespace Infrastructure
{
public class ShipFishVisitEntityTypeConfiguration : IEntityTypeConfiguration<ShipFishVisit>
{
public void Configure(EntityTypeBuilder<ShipFishVisit> builder)
{
builder.ToTable("ShipFishVisit");
builder.HasKey(x => x.ShipVisitKey);
builder.HasOne(s => s.MyShip).WithMany(x => x.ShipFishVisits).HasForeignKey(s => s.ShipRegisterNoKey);
builder.Property(x => x.ShipVisitKey).HasColumnName("ShipVisitKey");
builder.Property(x => x.ShipRegisterNoKey).HasColumnName("ShipRegisterNoKey");
builder.Property(x => x.Processingindicator).HasColumnName("Processingindicator");
}
}
}
using Domain;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
namespace Infrastructure
{
public class SimpleContext : DbContext {
public DbSet<MyShip> MyShips { get; set; }
public DbSet<ShipCertificate> ShipCertificate { get; set; }
public DbSet<Document> Document { get; set; }
public DbSet<ShipFishVisit> ShipFishVisits { get; set; }
public SimpleContext(DbContextOptions options) : base(options)
{
}
protected override void OnConfiguring(DbContextOptionsBuilder optionBuilder)
{
object p = optionBuilder.UseLazyLoadingProxies();
base.OnConfiguring(optionBuilder);
}
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.ApplyConfigurationsFromAssembly(Assembly.GetExecutingAssembly());
}
}
}
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = "")]
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Infrastructure")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Infrastructure")]
[assembly: System.Reflection.AssemblyTitleAttribute("Infrastructure")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.
C:\Users\user\source\repos\Workhard\Infrastructure\bin\Debug\netcoreapp3.1\Domain.dll
C:\Users\user\source\repos\Workhard\Infrastructure\obj\Debug\netcoreapp3.1\Infrastructure.csprojAssemblyReference.cache
C:\Users\user\source\repos\Workhard\Infrastructure\obj\Debug\netcoreapp3.1\Infrastructure.AssemblyInfoInputs.cache
C:\Users\user\source\repos\Workhard\Infrastructure\obj\Debug\netcoreapp3.1\Infrastructure.AssemblyInfo.cs
C:\Users\user\source\repos\Workhard\Infrastructure\bin\Debug\netcoreapp3.1\Infrastructure.deps.json
C:\Users\user\source\repos\Workhard\Infrastructure\bin\Debug\netcoreapp3.1\Infrastructure.dll
C:\Users\user\source\repos\Workhard\Infrastructure\bin\Debug\netcoreapp3.1\Infrastructure.pdb
C:\Users\user\source\repos\Workhard\Infrastructure\bin\Debug\netcoreapp3.1\Domain.pdb
C:\Users\user\source\repos\Workhard\Infrastructure\obj\Debug\netcoreapp3.1\Infrastructure.csproj.CoreCompileInputs.cache
C:\Users\user\source\repos\Workhard\Infrastructure\obj\Debug\netcoreapp3.1\Infrastructure.csproj.CopyComplete
C:\Users\user\source\repos\Workhard\Infrastructure\obj\Debug\netcoreapp3.1\Infrastructure.dll
C:\Users\user\source\repos\Workhard\Infrastructure\obj\Debug\netcoreapp3.1\Infrastructure.pdb
{
"format": 1,
"restore": {
"C:\\Users\\user\\source\\repos\\Workhard\\Infrastructure\\Infrastructure.csproj": {}
},
"projects": {
"C:\\Users\\user\\source\\repos\\Workhard\\Infrastructure\\Infrastructure.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\user\\source\\repos\\Workhard\\Infrastructure\\Infrastructure.csproj",
"projectName": "Infrastructure",
"projectPath": "C:\\Users\\user\\source\\repos\\Workhard\\Infrastructure\\Infrastructure.csproj",
"packagesPath": "C:\\Users\\user\\.nuget\\packages\\",
"outputPath": "C:\\Users\\user\\source\\repos\\Workhard\\Infrastructure\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\user\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"netcoreapp3.1"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"projectReferences": {
"C:\\Users\\user\\source\\repos\\Workhard\\Model\\Domain.csproj": {
"projectPath": "C:\\Users\\user\\source\\repos\\Workhard\\Model\\Domain.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"dependencies": {
"Microsoft.EntityFrameworkCore": {
"target": "Package",
"version": "[5.0.1, )"
},
"Microsoft.EntityFrameworkCore.Proxies": {
"target": "Package",
"version": "[5.0.1, )"
},
"Microsoft.EntityFrameworkCore.Relational": {
"target": "Package",
"version": "[5.0.1, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.100\\RuntimeIdentifierGraph.json"
}
}
},
"C:\\Users\\user\\source\\repos\\Workhard\\Model\\Domain.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\user\\source\\repos\\Workhard\\Model\\Domain.csproj",
"projectName": "Domain",
"projectPath": "C:\\Users\\user\\source\\repos\\Workhard\\Model\\Domain.csproj",
"packagesPath": "C:\\Users\\user\\.nuget\\packages\\",
"outputPath": "C:\\Users\\user\\source\\repos\\Workhard\\Model\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\user\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"netcoreapp3.1"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.100\\RuntimeIdentifierGraph.json"
}
}
}
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\user\.nuget\packages\</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.8.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="$([MSBuild]::EnsureTrailingSlash($(NuGetPackageFolders)))" />
</ItemGroup>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
</Project>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Domain
{
public class Document
{
public int DocumentKey { get; set; }
public string DocumentName { get; set; }
public Document()
{
}
public virtual ICollection<ShipCertificate> ShipCertificate { get; set; }
}
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
</Project>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Domain
{
public class MyShip
{
public int ShipRegisterNoKey { get; set; }
public string ShipRegisterNo { get; set; }
public string Tha_Name { get; set; }
public string Eng_Name { get; set; }
public int Use_type_key { get; set; }
public string Use_type_Name { get; set; }
public string Use_bound_Name { get; set; }
public decimal TonGross { get; set; }
public decimal TonNet { get; set; }
public decimal Loa { get; set; }
public decimal Beam { get; set; }
public decimal Depth { get; set; }
public DateTime Registerdate { get; set; }
public int RegisterProviceCode { get; set; }
public DateTime Permit_ValidDate { get; set; }
public DateTime Permit_ExpireDate { get; set; }
public string PicShip1 { get; set; }
public string PicShip2 { get; set; }
public string PicShip3 { get; set; }
public string visittype { get; set; }
public string shipstatus { get; set; }
public int totalseaman { get; set; }
public int totallabour { get; set; }
public int totalcrewonboard { get; set; }
public int procurementtype { get; set; }
public string approvestatus { get; set; }
public DateTime CreateDateTime { get; set; }
public int CreateBy { get; set; }
public DateTime ModifyDateTime { get; set; }
public int ModifyBy { get; set; }
public string CallSign { get; set; }
public virtual ICollection<ShipCertificate> ShipCertificate { get; set; }
public virtual ICollection<ShipFishVisit> ShipFishVisits { get; set; }
public MyShip()
{
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Domain
{
public class ShipCertificate
{
public int shipcertificatekey { get; set; }
public int? shipRegisterNoKey { get; set; }
public int? documentkey { get; set; }
public string certificateno { get; set; }
public ShipCertificate()
{
}
public virtual MyShip MyShip { get; set; }
public virtual Document Document { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.Text;
namespace Domain
{
public class ShipFishVisit
{
public int ShipVisitKey { get; set; }
public int ShipRegisterNoKey { get; set; }
public int Processingindicator { get; set; }
public ShipFishVisit()
{
}
public virtual MyShip MyShip { get; set; }
}
}
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v3.1",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v3.1": {
"Domain/1.0.0": {
"runtime": {
"Domain.dll": {}
}
}
}
},
"libraries": {
"Domain/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}
\ No newline at end of file
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = "")]
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Domain")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Domain")]
[assembly: System.Reflection.AssemblyTitleAttribute("Domain")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.
C:\Users\user\source\repos\Workhard\Model\bin\Debug\netcoreapp3.1\Domain.deps.json
C:\Users\user\source\repos\Workhard\Model\bin\Debug\netcoreapp3.1\Domain.dll
C:\Users\user\source\repos\Workhard\Model\bin\Debug\netcoreapp3.1\Domain.pdb
C:\Users\user\source\repos\Workhard\Model\obj\Debug\netcoreapp3.1\Domain.csprojAssemblyReference.cache
C:\Users\user\source\repos\Workhard\Model\obj\Debug\netcoreapp3.1\Domain.AssemblyInfoInputs.cache
C:\Users\user\source\repos\Workhard\Model\obj\Debug\netcoreapp3.1\Domain.AssemblyInfo.cs
C:\Users\user\source\repos\Workhard\Model\obj\Debug\netcoreapp3.1\Domain.csproj.CoreCompileInputs.cache
C:\Users\user\source\repos\Workhard\Model\obj\Debug\netcoreapp3.1\Domain.dll
C:\Users\user\source\repos\Workhard\Model\obj\Debug\netcoreapp3.1\Domain.pdb
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Model")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Model")]
[assembly: System.Reflection.AssemblyTitleAttribute("Model")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.
{
"format": 1,
"restore": {
"C:\\Users\\user\\source\\repos\\Workhard\\Model\\Domain.csproj": {}
},
"projects": {
"C:\\Users\\user\\source\\repos\\Workhard\\Model\\Domain.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\user\\source\\repos\\Workhard\\Model\\Domain.csproj",
"projectName": "Domain",
"projectPath": "C:\\Users\\user\\source\\repos\\Workhard\\Model\\Domain.csproj",
"packagesPath": "C:\\Users\\user\\.nuget\\packages\\",
"outputPath": "C:\\Users\\user\\source\\repos\\Workhard\\Model\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\user\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"netcoreapp3.1"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.100\\RuntimeIdentifierGraph.json"
}
}
}
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\user\.nuget\packages\</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.8.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="$([MSBuild]::EnsureTrailingSlash($(NuGetPackageFolders)))" />
</ItemGroup>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
</Project>
\ No newline at end of file
{
"format": 1,
"restore": {
"C:\\Users\\user\\source\\repos\\Workhard\\Model\\Model.csproj": {}
},
"projects": {
"C:\\Users\\user\\source\\repos\\Workhard\\Model\\Model.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\user\\source\\repos\\Workhard\\Model\\Model.csproj",
"projectName": "Model",
"projectPath": "C:\\Users\\user\\source\\repos\\Workhard\\Model\\Model.csproj",
"packagesPath": "C:\\Users\\user\\.nuget\\packages\\",
"outputPath": "C:\\Users\\user\\source\\repos\\Workhard\\Model\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\user\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"netcoreapp3.1"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.100\\RuntimeIdentifierGraph.json"
}
}
}
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\user\.nuget\packages\</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.8.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="$([MSBuild]::EnsureTrailingSlash($(NuGetPackageFolders)))" />
</ItemGroup>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
</Project>
\ No newline at end of file
{
"version": 3,
"targets": {
".NETCoreApp,Version=v3.1": {}
},
"libraries": {},
"projectFileDependencyGroups": {
".NETCoreApp,Version=v3.1": []
},
"packageFolders": {
"C:\\Users\\user\\.nuget\\packages\\": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\user\\source\\repos\\Workhard\\Model\\Domain.csproj",
"projectName": "Domain",
"projectPath": "C:\\Users\\user\\source\\repos\\Workhard\\Model\\Domain.csproj",
"packagesPath": "C:\\Users\\user\\.nuget\\packages\\",
"outputPath": "C:\\Users\\user\\source\\repos\\Workhard\\Model\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\user\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"netcoreapp3.1"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.100\\RuntimeIdentifierGraph.json"
}
}
}
}
\ No newline at end of file
{
"version": 2,
"dgSpecHash": "5dU5zY8v7T0weAhd5i9vFYgjoYdBbA+CorXbVk+zEBeXYOGwEFdUvkowWVaYcHtckmoST/Gc56qz1SLQcZhJbQ==",
"success": true,
"projectFilePath": "C:\\Users\\user\\source\\repos\\Workhard\\Model\\Domain.csproj",
"expectedPackageFiles": [],
"logs": []
}
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Proxies" Version="5.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="5.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="5.0.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Infrastructure\Infrastructure.csproj" />
<ProjectReference Include="..\Model\Domain.csproj" />
</ItemGroup>
</Project>
using System;
using System.Collections.Generic;
using System.Text;
namespace Appication
{
public class CreateShip
{
public int ShipRegisterNoKey { get; set; }
public string ShipRegisterNo { get; set; }
public string Tha_Name { get; set; }
public string Eng_Name { get; set; }
public int Use_type_key { get; set; }
public string Use_type_Name { get; set; }
public string Use_bound_Name { get; set; }
public decimal TonGross { get; set; }
public decimal TonNet { get; set; }
public decimal Loa { get; set; }
public decimal Beam { get; set; }
public decimal Depth { get; set; }
public DateTime Registerdate { get; set; }
public int RegisterProviceCode { get; set; }
public DateTime Permit_ValidDate { get; set; }
public DateTime Permit_ExpireDate { get; set; }
public string PicShip1 { get; set; }
public string PicShip2 { get; set; }
public string PicShip3 { get; set; }
public string visittype { get; set; }
public string shipstatus { get; set; }
public int totalseaman { get; set; }
public int totallabour { get; set; }
public int totalcrewonboard { get; set; }
public int procurementtype { get; set; }
public string approvestatus { get; set; }
public DateTime CreateDateTime { get; set; }
public int CreateBy { get; set; }
public DateTime ModifyDateTime { get; set; }
public int ModifyBy { get; set; }
public string CallSign { get; set; }
}
}
using Domain;
using Infrastructure;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Appication
{
}
using Domain;
using Infrastructure;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Appication
{
public class EsbShipService : IShipService
{
private SimpleContext context ;
public EsbShipService(SimpleContext context)
{
this.context = context;
}
public void DeleteShip(int id)
{
MyShip emp = context.MyShips.Find(id);
context.MyShips.Remove(emp);
context.SaveChanges();
}
public List<ShipResponModel> GetAllShip()
{
var emp = context.MyShips.Take(20).ToList();
List<ShipResponModel> results = new List<ShipResponModel>();
foreach (var e in emp)
{
results.Add(new ShipResponModel()
{
ShipRegisterNoKey = e.ShipRegisterNoKey,
Tha_Name = e.Tha_Name,
Eng_Name = e.Eng_Name,
TonGross = e.TonGross,
ShipRegisterNo = e.ShipRegisterNo,
Use_type_key = e.Use_type_key,
Use_type_Name = e.Use_type_Name,
Use_bound_Name = e.Use_bound_Name,
Registerdate = e.Registerdate
});
}
return results;
}
public ShipResponModel GetShipByShipCode(string ShipRegisterNo)
{
var emp = context.MyShips.Where(e => e.Tha_Name == ShipRegisterNo).Single();
return new ShipResponModel()
{
ShipRegisterNoKey = emp.ShipRegisterNoKey,
Tha_Name = emp.Tha_Name,
Eng_Name = emp.Eng_Name,
TonGross = emp.TonGross,
ShipRegisterNo = emp.ShipRegisterNo,
Use_type_key = emp.Use_type_key,
Use_type_Name = emp.Use_type_Name,
Use_bound_Name = emp.Use_bound_Name,
Registerdate = emp.Registerdate
};
}
public List<ShipResponModel> GetShowDoc()
{
List<MyShip> emps = context.MyShips
.Include(x => x.ShipCertificate)
.ThenInclude(x => x.Document)
.Include(x => x.ShipFishVisits)
.Take(20)
.ToList();
List<ShipResponModel> result = new List<ShipResponModel>();
foreach (var ship in emps)
{
var e = new ShipResponModel()
{
ShipRegisterNoKey = ship.ShipRegisterNoKey,
Tha_Name = ship.Tha_Name,
Eng_Name = ship.Eng_Name,
TonGross = ship.TonGross,
ShipRegisterNo = ship.ShipRegisterNo,
Use_type_key = ship.Use_type_key,
Use_type_Name = ship.Use_type_Name,
Use_bound_Name = ship.Use_bound_Name,
Registerdate = ship.Registerdate,
Document = ship.ShipCertificate.Select(x => new ShipDocument() { documentname = x.Document.DocumentName, documentnumber = x.certificateno }).Take(3).ToList(),
totalvisit = ship.ShipFishVisits.Count()
};
result.Add(e);
}
return result;
}
public void InsertShip(CreateShip x)
{
MyShip emp = new MyShip();
emp.ShipRegisterNo = x.ShipRegisterNo;
emp.Tha_Name = x.Tha_Name;
emp.Eng_Name = x.Eng_Name;
emp.Use_type_key = x.Use_type_key;
emp.Use_type_Name = x.Use_type_Name;
emp.Use_bound_Name = x.Use_bound_Name;
emp.TonGross = x.TonGross;
emp.TonNet = x.TonNet;
emp.Loa = x.Loa;
emp.Beam = x.Beam;
emp.Depth = x.Depth;
emp.Registerdate = x.Registerdate;
emp.RegisterProviceCode = x.RegisterProviceCode;
emp.Permit_ValidDate = x.Permit_ValidDate;
emp.Permit_ExpireDate = x.Permit_ExpireDate;
emp.PicShip1 = x.PicShip1;
emp.PicShip2 = x.PicShip2;
emp.PicShip3 = x.PicShip3;
emp.visittype = x.visittype;
emp.shipstatus = x.shipstatus;
emp.totalseaman = x.totalseaman;
emp.totallabour = x.totallabour;
emp.totalcrewonboard = x.totalcrewonboard;
emp.procurementtype = x.procurementtype;
emp.approvestatus = x.approvestatus;
emp.CreateDateTime = x.CreateDateTime;
emp.CreateBy = x.CreateBy;
emp.ModifyDateTime = x.ModifyDateTime;
emp.ModifyBy = x.ModifyBy;
emp.CallSign = x.CallSign;
context.MyShips.Add(emp);
context.SaveChanges();
}
public void UpShip(UpdateShipModel x)
{
MyShip emp = context.MyShips.Find(x.ShipRegisterNoKey);
emp.ShipRegisterNo = x.ShipRegisterNo;
emp.Tha_Name = x.Tha_Name;
emp.Eng_Name = x.Eng_Name;
emp.Use_type_key = x.Use_type_key;
emp.Use_type_Name = x.Use_type_Name;
emp.Use_bound_Name = x.Use_bound_Name;
emp.TonGross = x.TonGross;
emp.TonNet = x.TonNet;
emp.Loa = x.Loa;
emp.Beam = x.Beam;
emp.Depth = x.Depth;
emp.Registerdate = x.Registerdate;
emp.RegisterProviceCode = x.RegisterProviceCode;
emp.Permit_ValidDate = x.Permit_ValidDate;
emp.Permit_ExpireDate = x.Permit_ExpireDate;
emp.PicShip1 = x.PicShip1;
emp.PicShip2 = x.PicShip2;
emp.PicShip3 = x.PicShip3;
emp.visittype = x.visittype;
emp.shipstatus = x.shipstatus;
emp.totalseaman = x.totalseaman;
emp.totallabour = x.totallabour;
emp.totalcrewonboard = x.totalcrewonboard;
emp.procurementtype = x.procurementtype;
emp.approvestatus = x.approvestatus;
emp.CreateDateTime = x.CreateDateTime;
emp.CreateBy = x.CreateBy;
emp.ModifyDateTime = x.ModifyDateTime;
emp.ModifyBy = x.ModifyBy;
context.SaveChanges();
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Appication
{
public interface IShipService
{
List<ShipResponModel> GetAllShip();
ShipResponModel GetShipByShipCode(string ShipRegisterNo);
List<ShipResponModel> GetShowDoc();
void InsertShip(CreateShip x);
void UpShip(UpdateShipModel x);
void DeleteShip(int id);
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Appication
{
public class ShipResponModel
{
public int ShipRegisterNoKey { get; set; }
public string Tha_Name { get; set; }
public string Eng_Name { get; set; }
public decimal TonGross { get; set; }
public string ShipRegisterNo { get; set; }
public int Use_type_key { get; set; }
public string Use_type_Name { get; set; }
public string Use_bound_Name { get; set; }
public DateTime Registerdate { get; set; }
public List<ShipDocument> Document { get; set; }
public int totalvisit { get; set; }
public ShipResponModel()
{
}
}
public class ShipDocument
{
public string documentname { get; set; }
public string documentnumber { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.Text;
namespace Appication
{
public class ShipResponModel1
{
public int ShipVisitKey { get; set; }
public int ShipRegisterNoKey { get; set; }
public string Tha_Name { get; set; }
public int Processingindicator { get; set; }
public ShipResponModel1()
{
}
}
}
using System;
using System.Collections.Generic;
using System.Text;
namespace Appication
{
public class UpdateShipModel
{
public int ShipRegisterNoKey { get; set; }
public string ShipRegisterNo { get; set; }
public string Tha_Name { get; set; }
public string Eng_Name { get; set; }
public int Use_type_key { get; set; }
public string Use_type_Name { get; set; }
public string Use_bound_Name { get; set; }
public decimal TonGross { get; set; }
public decimal TonNet { get; set; }
public decimal Loa { get; set; }
public decimal Beam { get; set; }
public decimal Depth { get; set; }
public DateTime Registerdate { get; set; }
public int RegisterProviceCode { get; set; }
public DateTime Permit_ValidDate { get; set; }
public DateTime Permit_ExpireDate { get; set; }
public string PicShip1 { get; set; }
public string PicShip2 { get; set; }
public string PicShip3 { get; set; }
public string visittype { get; set; }
public string shipstatus { get; set; }
public int totalseaman { get; set; }
public int totallabour { get; set; }
public int totalcrewonboard { get; set; }
public int procurementtype { get; set; }
public string approvestatus { get; set; }
public DateTime CreateDateTime { get; set; }
public int CreateBy { get; set; }
public DateTime ModifyDateTime { get; set; }
public int ModifyBy { get; set; }
}
}
{
"format": 1,
"restore": {
"C:\\Users\\user\\source\\repos\\Workhard\\Service\\Appication.csproj": {}
},
"projects": {
"C:\\Users\\user\\source\\repos\\Workhard\\Infrastructure\\Infrastructure.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\user\\source\\repos\\Workhard\\Infrastructure\\Infrastructure.csproj",
"projectName": "Infrastructure",
"projectPath": "C:\\Users\\user\\source\\repos\\Workhard\\Infrastructure\\Infrastructure.csproj",
"packagesPath": "C:\\Users\\user\\.nuget\\packages\\",
"outputPath": "C:\\Users\\user\\source\\repos\\Workhard\\Infrastructure\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\user\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"netcoreapp3.1"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"projectReferences": {
"C:\\Users\\user\\source\\repos\\Workhard\\Model\\Domain.csproj": {
"projectPath": "C:\\Users\\user\\source\\repos\\Workhard\\Model\\Domain.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"dependencies": {
"Microsoft.EntityFrameworkCore": {
"target": "Package",
"version": "[5.0.1, )"
},
"Microsoft.EntityFrameworkCore.Proxies": {
"target": "Package",
"version": "[5.0.1, )"
},
"Microsoft.EntityFrameworkCore.Relational": {
"target": "Package",
"version": "[5.0.1, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.100\\RuntimeIdentifierGraph.json"
}
}
},
"C:\\Users\\user\\source\\repos\\Workhard\\Model\\Domain.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\user\\source\\repos\\Workhard\\Model\\Domain.csproj",
"projectName": "Domain",
"projectPath": "C:\\Users\\user\\source\\repos\\Workhard\\Model\\Domain.csproj",
"packagesPath": "C:\\Users\\user\\.nuget\\packages\\",
"outputPath": "C:\\Users\\user\\source\\repos\\Workhard\\Model\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\user\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"netcoreapp3.1"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.100\\RuntimeIdentifierGraph.json"
}
}
},
"C:\\Users\\user\\source\\repos\\Workhard\\Service\\Appication.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\user\\source\\repos\\Workhard\\Service\\Appication.csproj",
"projectName": "Appication",
"projectPath": "C:\\Users\\user\\source\\repos\\Workhard\\Service\\Appication.csproj",
"packagesPath": "C:\\Users\\user\\.nuget\\packages\\",
"outputPath": "C:\\Users\\user\\source\\repos\\Workhard\\Service\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\user\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"netcoreapp3.1"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"projectReferences": {
"C:\\Users\\user\\source\\repos\\Workhard\\Infrastructure\\Infrastructure.csproj": {
"projectPath": "C:\\Users\\user\\source\\repos\\Workhard\\Infrastructure\\Infrastructure.csproj"
},
"C:\\Users\\user\\source\\repos\\Workhard\\Model\\Domain.csproj": {
"projectPath": "C:\\Users\\user\\source\\repos\\Workhard\\Model\\Domain.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"dependencies": {
"Microsoft.EntityFrameworkCore": {
"target": "Package",
"version": "[5.0.1, )"
},
"Microsoft.EntityFrameworkCore.Proxies": {
"target": "Package",
"version": "[5.0.1, )"
},
"Microsoft.EntityFrameworkCore.Relational": {
"target": "Package",
"version": "[5.0.1, )"
},
"Microsoft.EntityFrameworkCore.SqlServer": {
"target": "Package",
"version": "[5.0.1, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.100\\RuntimeIdentifierGraph.json"
}
}
}
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\user\.nuget\packages\</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.8.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="$([MSBuild]::EnsureTrailingSlash($(NuGetPackageFolders)))" />
</ItemGroup>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<PkgNewtonsoft_Json Condition=" '$(PkgNewtonsoft_Json)' == '' ">C:\Users\user\.nuget\packages\newtonsoft.json\10.0.1</PkgNewtonsoft_Json>
</PropertyGroup>
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
</Project>
\ No newline at end of file
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = "")]
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Appication")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Appication")]
[assembly: System.Reflection.AssemblyTitleAttribute("Appication")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.
C:\Users\user\source\repos\Workhard\Service\bin\Debug\netcoreapp3.1\Appication.deps.json
C:\Users\user\source\repos\Workhard\Service\bin\Debug\netcoreapp3.1\Appication.dll
C:\Users\user\source\repos\Workhard\Service\bin\Debug\netcoreapp3.1\Appication.pdb
C:\Users\user\source\repos\Workhard\Service\bin\Debug\netcoreapp3.1\Domain.dll
C:\Users\user\source\repos\Workhard\Service\bin\Debug\netcoreapp3.1\Infrastructure.dll
C:\Users\user\source\repos\Workhard\Service\bin\Debug\netcoreapp3.1\Infrastructure.pdb
C:\Users\user\source\repos\Workhard\Service\bin\Debug\netcoreapp3.1\Domain.pdb
C:\Users\user\source\repos\Workhard\Service\obj\Debug\netcoreapp3.1\Appication.csprojAssemblyReference.cache
C:\Users\user\source\repos\Workhard\Service\obj\Debug\netcoreapp3.1\Appication.AssemblyInfoInputs.cache
C:\Users\user\source\repos\Workhard\Service\obj\Debug\netcoreapp3.1\Appication.AssemblyInfo.cs
C:\Users\user\source\repos\Workhard\Service\obj\Debug\netcoreapp3.1\Appication.csproj.CoreCompileInputs.cache
C:\Users\user\source\repos\Workhard\Service\obj\Debug\netcoreapp3.1\Appication.csproj.CopyComplete
C:\Users\user\source\repos\Workhard\Service\obj\Debug\netcoreapp3.1\Appication.dll
C:\Users\user\source\repos\Workhard\Service\obj\Debug\netcoreapp3.1\Appication.pdb
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Service")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Service")]
[assembly: System.Reflection.AssemblyTitleAttribute("Service")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.
C:\Users\user\source\repos\Workhard\Service\bin\Debug\netcoreapp3.1\Service.deps.json
C:\Users\user\source\repos\Workhard\Service\bin\Debug\netcoreapp3.1\Service.dll
C:\Users\user\source\repos\Workhard\Service\bin\Debug\netcoreapp3.1\Service.pdb
C:\Users\user\source\repos\Workhard\Service\obj\Debug\netcoreapp3.1\Service.csprojAssemblyReference.cache
C:\Users\user\source\repos\Workhard\Service\obj\Debug\netcoreapp3.1\Service.AssemblyInfoInputs.cache
C:\Users\user\source\repos\Workhard\Service\obj\Debug\netcoreapp3.1\Service.AssemblyInfo.cs
C:\Users\user\source\repos\Workhard\Service\obj\Debug\netcoreapp3.1\Service.csproj.CoreCompileInputs.cache
C:\Users\user\source\repos\Workhard\Service\obj\Debug\netcoreapp3.1\Service.dll
C:\Users\user\source\repos\Workhard\Service\obj\Debug\netcoreapp3.1\Service.pdb
{
"format": 1,
"restore": {
"C:\\Users\\user\\source\\repos\\Workhard\\Service\\Service.csproj": {}
},
"projects": {
"C:\\Users\\user\\source\\repos\\Workhard\\Service\\Service.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\user\\source\\repos\\Workhard\\Service\\Service.csproj",
"projectName": "Service",
"projectPath": "C:\\Users\\user\\source\\repos\\Workhard\\Service\\Service.csproj",
"packagesPath": "C:\\Users\\user\\.nuget\\packages\\",
"outputPath": "C:\\Users\\user\\source\\repos\\Workhard\\Service\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\user\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"netcoreapp3.1"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"dependencies": {
"Microsoft.EntityFrameworkCore": {
"target": "Package",
"version": "[5.0.1, )"
},
"Microsoft.EntityFrameworkCore.Proxies": {
"target": "Package",
"version": "[5.0.1, )"
},
"Microsoft.EntityFrameworkCore.Relational": {
"target": "Package",
"version": "[5.0.1, )"
},
"Microsoft.EntityFrameworkCore.SqlServer": {
"target": "Package",
"version": "[5.0.1, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.100\\RuntimeIdentifierGraph.json"
}
}
}
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\user\.nuget\packages\</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.8.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="$([MSBuild]::EnsureTrailingSlash($(NuGetPackageFolders)))" />
</ItemGroup>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<PkgNewtonsoft_Json Condition=" '$(PkgNewtonsoft_Json)' == '' ">C:\Users\user\.nuget\packages\newtonsoft.json\10.0.1</PkgNewtonsoft_Json>
</PropertyGroup>
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
</Project>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment