Browse Source

big fix

confirmation-email
J 11 years ago
parent
commit
b9ef041c78
6 changed files with 185 additions and 2 deletions
  1. +0
    -2
      Sevomin.Models/JobParameter.cs
  2. +29
    -0
      Sevomin.Models/Migrations/201403310716012_bugfix.Designer.cs
  3. +20
    -0
      Sevomin.Models/Migrations/201403310716012_bugfix.cs
  4. +126
    -0
      Sevomin.Models/Migrations/201403310716012_bugfix.resx
  5. +3
    -0
      Sevomin.Models/Parameter.cs
  6. +7
    -0
      Sevomin.Models/Sevomin.Models.csproj

+ 0
- 2
Sevomin.Models/JobParameter.cs View File

@ -28,8 +28,6 @@ namespace Sevomin.Models
public byte Moscow { get; set; } public byte Moscow { get; set; }
public string DisplayFormat { get; set; }
public virtual Parameter Parameter { get; set; } public virtual Parameter Parameter { get; set; }
public virtual Job Job { get; set; } public virtual Job Job { get; set; }


+ 29
- 0
Sevomin.Models/Migrations/201403310716012_bugfix.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 bugfix : IMigrationMetadata
{
private readonly ResourceManager Resources = new ResourceManager(typeof(bugfix));
string IMigrationMetadata.Id
{
get { return "201403310716012_bugfix"; }
}
string IMigrationMetadata.Source
{
get { return null; }
}
string IMigrationMetadata.Target
{
get { return Resources.GetString("Target"); }
}
}
}

+ 20
- 0
Sevomin.Models/Migrations/201403310716012_bugfix.cs View File

@ -0,0 +1,20 @@
namespace Sevomin.Models.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class bugfix : DbMigration
{
public override void Up()
{
AddColumn("dbo.Parameters", "DisplayFormat", c => c.String(maxLength: 50));
DropColumn("dbo.JobParameters", "DisplayFormat");
}
public override void Down()
{
AddColumn("dbo.JobParameters", "DisplayFormat", c => c.String());
DropColumn("dbo.Parameters", "DisplayFormat");
}
}
}

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


+ 3
- 0
Sevomin.Models/Parameter.cs View File

@ -24,6 +24,9 @@ namespace Sevomin.Models
[Required] [Required]
public byte DisplayMethod { get; set; } public byte DisplayMethod { get; set; }
[StringLength(50)]
public string DisplayFormat { get; set; }
[Required] [Required]
public string GroupName { get; set; } public string GroupName { get; set; }


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

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


Loading…
Cancel
Save