Browse Source

DovominJob

confirmation-email
J 11 years ago
parent
commit
688a5a92b4
4 changed files with 204 additions and 0 deletions
  1. +29
    -0
      Sevomin.Models/Migrations/201403311237412_DovominJob.Designer.cs
  2. +42
    -0
      Sevomin.Models/Migrations/201403311237412_DovominJob.cs
  3. +126
    -0
      Sevomin.Models/Migrations/201403311237412_DovominJob.resx
  4. +7
    -0
      Sevomin.Models/Sevomin.Models.csproj

+ 29
- 0
Sevomin.Models/Migrations/201403311237412_DovominJob.Designer.cs View File

@ -0,0 +1,29 @@
// <auto-generated />
namespace Sevomin.Models.Migrations
{
using System.CodeDom.Compiler;
using System.Data.Entity.Migrations;
using System.Data.Entity.Migrations.Infrastructure;
using System.Resources;
[GeneratedCode("EntityFramework.Migrations", "6.1.0-30225")]
public sealed partial class DovominJob : IMigrationMetadata
{
private readonly ResourceManager Resources = new ResourceManager(typeof(DovominJob));
string IMigrationMetadata.Id
{
get { return "201403311237412_DovominJob"; }
}
string IMigrationMetadata.Source
{
get { return null; }
}
string IMigrationMetadata.Target
{
get { return Resources.GetString("Target"); }
}
}
}

+ 42
- 0
Sevomin.Models/Migrations/201403311237412_DovominJob.cs View File

@ -0,0 +1,42 @@
namespace Sevomin.Models.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class DovominJob : DbMigration
{
public override void Up()
{
CreateTable(
"dbo.DovominJobs",
c => new
{
Id = c.Long(nullable: false, identity: true),
DovominId = c.String(nullable: false, maxLength: 128),
JobId = c.Long(nullable: false),
ApplyDate = c.DateTime(nullable: false),
CoverLetter = c.String(nullable: false),
Affinity = c.Decimal(nullable: false, precision: 18, scale: 2),
MinimumRequirement = c.Boolean(nullable: false),
AvalinSeen = c.DateTime(),
AvalinComment = c.String(),
AvalinDelete = c.Boolean(nullable: false),
})
.PrimaryKey(t => t.Id)
.ForeignKey("dbo.Dovomin", t => t.DovominId)
.ForeignKey("dbo.Jobs", t => t.JobId, cascadeDelete: true)
.Index(t => new { t.DovominId, t.JobId }, unique: true, name: "IX_DovominJobUniqueIndex")
.Index(t => t.JobId);
}
public override void Down()
{
DropForeignKey("dbo.DovominJobs", "JobId", "dbo.Jobs");
DropForeignKey("dbo.DovominJobs", "DovominId", "dbo.Dovomin");
DropIndex("dbo.DovominJobs", new[] { "JobId" });
DropIndex("dbo.DovominJobs", "IX_DovominJobUniqueIndex");
DropTable("dbo.DovominJobs");
}
}
}

+ 126
- 0
Sevomin.Models/Migrations/201403311237412_DovominJob.resx
File diff suppressed because it is too large
View File


+ 7
- 0
Sevomin.Models/Sevomin.Models.csproj View File

@ -129,6 +129,10 @@
<Compile Include="Migrations\201403310716012_bugfix.Designer.cs">
<DependentUpon>201403310716012_bugfix.cs</DependentUpon>
</Compile>
<Compile Include="Migrations\201403311237412_DovominJob.cs" />
<Compile Include="Migrations\201403311237412_DovominJob.Designer.cs">
<DependentUpon>201403311237412_DovominJob.cs</DependentUpon>
</Compile>
<Compile Include="Migrations\Configuration.cs" />
<Compile Include="Parameter.cs" />
<Compile Include="ParameterValue.cs" />
@ -186,6 +190,9 @@
<EmbeddedResource Include="Migrations\201403310716012_bugfix.resx">
<DependentUpon>201403310716012_bugfix.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Migrations\201403311237412_DovominJob.resx">
<DependentUpon>201403311237412_DovominJob.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.


Loading…
Cancel
Save