Browse Source

-?

confirmation-email
uJ 11 years ago
parent
commit
2afc5954f9
5 changed files with 67 additions and 2 deletions
  1. +4
    -1
      Sevomin.Models/Avalin.cs
  2. +37
    -0
      Sevomin.Models/Job.cs
  3. +23
    -0
      Sevomin.Models/JobParameter.cs
  4. +1
    -1
      Sevomin.Models/Parameter.cs
  5. +2
    -0
      Sevomin.Models/Sevomin.Models.csproj

+ 4
- 1
Sevomin.Models/Avalin.cs View File

@ -1,4 +1,5 @@
using System.ComponentModel.DataAnnotations;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Sevomin.Models.Helpers;
@ -22,6 +23,8 @@ namespace Sevomin.Models
[EmailValidation(ErrorMessage="ای میل معتبر نیست")]
public string EMail { get; set; }
public virtual ICollection<Job> Jobs { get; set; }
public Avalin()
{


+ 37
- 0
Sevomin.Models/Job.cs View File

@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Sevomin.Models
{
public class Job
{
[Key]
public long Id { get; set; }
[Required]
[Index]
[StringLength(128)]
public string AvvalinId { get; set; }
public virtual Avalin Avalin { get; set; }
public DateTime ExpireDate { get; set; }
public string Description { get; set; }
public byte ResumeType { get; set; }
public string ContactPersonName { get; set; }
public string ContactPersonPhone { get; set; }
[EmailAddress]
public string ContactPersonEMail { get; set; }
public bool ShowCompanyName { get; set; }
public bool ShowCompanyLogo { get; set; }
public bool IsFullTime { get; set; }
}
}

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

@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Sevomin.Models
{
public class JobParameter
{
[Key]
public long Id { get; set; }
public long ParameterId { get; set; }
public virtual Parameter Parameter { get; set; }
public long JobId { get; set; }
public virtual Job Job {get;set;}
}
}

+ 1
- 1
Sevomin.Models/Parameter.cs View File

@ -13,7 +13,7 @@ namespace Sevomin.Models
public class Parameter
{
[Key]
public int Id { get; set; }
public long Id { get; set; }
[Required]
public string Name { get; set; }


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

@ -65,6 +65,8 @@
<Compile Include="Dovomin.cs" />
<Compile Include="Helpers\EmailValidationAttribute.cs" />
<Compile Include="Helpers\SevominUserValidator.cs" />
<Compile Include="Job.cs" />
<Compile Include="JobParameter.cs" />
<Compile Include="LoginViewModel.cs" />
<Compile Include="Migrations\201403261205298_InitialCreate.cs" />
<Compile Include="Migrations\201403261205298_InitialCreate.Designer.cs">


Loading…
Cancel
Save