Step 4 update negoziazioni
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<UserSecretsId>60fcdaab-6c1e-4bec-9d88-f7727ef1c12c</UserSecretsId>
|
||||
<ApplicationIcon>wwwroot\favicon.ico</ApplicationIcon>
|
||||
<Version>1.0.2111.2610</Version>
|
||||
<Version>1.0.2111.2611</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -52,8 +52,8 @@ namespace SHERPA.BBM.DatabaseModels
|
||||
//[ForeignKey("CustomerId")]
|
||||
//public virtual CustomersModel Customer { get; set; }
|
||||
|
||||
//[ForeignKey("BasketId")]
|
||||
//public virtual BasketsModel Basket { get; set; }
|
||||
[ForeignKey("BasketId")]
|
||||
public virtual BasketsModel Basket { get; set; }
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
// <auto-generated />
|
||||
namespace SHERPA.BBM.Migrations
|
||||
{
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Data.Entity.Migrations;
|
||||
using System.Data.Entity.Migrations.Infrastructure;
|
||||
using System.Resources;
|
||||
|
||||
[GeneratedCode("EntityFramework.Migrations", "6.4.4")]
|
||||
public sealed partial class UpdNegotiations04 : IMigrationMetadata
|
||||
{
|
||||
private readonly ResourceManager Resources = new ResourceManager(typeof(UpdNegotiations04));
|
||||
|
||||
string IMigrationMetadata.Id
|
||||
{
|
||||
get { return "202111261033473_UpdNegotiations04"; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Source
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Target
|
||||
{
|
||||
get { return Resources.GetString("Target"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
namespace SHERPA.BBM.Migrations
|
||||
{
|
||||
using System;
|
||||
using System.Data.Entity.Migrations;
|
||||
|
||||
public partial class UpdNegotiations04 : DbMigration
|
||||
{
|
||||
public override void Up()
|
||||
{
|
||||
CreateIndex("dbo.Negotiations", "BasketId");
|
||||
AddForeignKey("dbo.Negotiations", "BasketId", "dbo.Baskets", "BasketId", cascadeDelete: false);
|
||||
}
|
||||
|
||||
public override void Down()
|
||||
{
|
||||
DropForeignKey("dbo.Negotiations", "BasketId", "dbo.Baskets");
|
||||
DropIndex("dbo.Negotiations", new[] { "BasketId" });
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -142,6 +142,10 @@
|
||||
<Compile Include="Migrations\202111260951311_UpdNegotiations03.designer.cs">
|
||||
<DependentUpon>202111260951311_UpdNegotiations03.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Migrations\202111261033473_UpdNegotiations04.cs" />
|
||||
<Compile Include="Migrations\202111261033473_UpdNegotiations04.designer.cs">
|
||||
<DependentUpon>202111261033473_UpdNegotiations04.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Precision.cs" />
|
||||
<Compile Include="Enums.cs" />
|
||||
<Compile Include="Migrations\Configuration.cs" />
|
||||
@@ -188,6 +192,9 @@
|
||||
<EmbeddedResource Include="Migrations\202111260951311_UpdNegotiations03.resx">
|
||||
<DependentUpon>202111260951311_UpdNegotiations03.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Migrations\202111261033473_UpdNegotiations04.resx">
|
||||
<DependentUpon>202111261033473_UpdNegotiations04.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||
|
||||
Reference in New Issue
Block a user