Skip to content

Commit

Permalink
Addded Migration
Browse files Browse the repository at this point in the history
  • Loading branch information
rabdulatif committed Jun 13, 2019
1 parent a67a283 commit 916b138
Show file tree
Hide file tree
Showing 22 changed files with 962 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# This .gitignore file was automatically created by Microsoft(R) Visual Studio.
################################################################################

*.lock
.vs/
2 changes: 1 addition & 1 deletion LearningCentre/Controllers/StudentController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
namespace LearningCentre.Controllers
{
[Route("[controller]")]
public class StudentController : Controller
public class StudentController : ControllerBase
{
/// <summary>
///
Expand Down
27 changes: 27 additions & 0 deletions LearningCentre/Database/LearningCentre/Country.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,37 @@

namespace LearningCentre.Database
{
/// <summary>
///
/// </summary>
public partial class Country
{
/// <summary>
///
/// </summary>
public Country()
{
Student=new HashSet<Student>();
}

/// <summary>
///
/// </summary>
public int Id { get; set; }

/// <summary>
///
/// </summary>
public string Code { get; set; }

/// <summary>
///
/// </summary>
public string Name { get; set; }

/// <summary>
///
/// </summary>
public ICollection<Student> Student { get; set; }
}
}
File renamed without changes.
3 changes: 2 additions & 1 deletion LearningCentre/Database/LearningCentre/Student.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ public partial class Student
public string NativeLanguage { get; set; }
public string Citizenship { get; set; }
public long? PassportNumber { get; set; }
public int? Hometown { get; set; }
public int? CountryId { get; set; }
public string WorkPlace { get; set; }
public string PlaceOfStudy { get; set; }
public DateTime? DateOfRegistration { get; set; }
public int? UserProfileId { get; set; }

public Country Country { get; set; }
public UserProfile UserProfile { get; set; }
}
}
219 changes: 219 additions & 0 deletions LearningCentre/Migrations/20190613045015_LearningCentre.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 916b138

Please sign in to comment.