Skip to content

Commit

Permalink
removed default schema
Browse files Browse the repository at this point in the history
adjusted string to int for room ranges
RossClark01 committed Dec 11, 2024
1 parent 8d1d067 commit 44c9436
Showing 3 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion Gordon360/Models/CCT/Context/CCTContext.cs
Original file line number Diff line number Diff line change
@@ -178,7 +178,6 @@ public CCTContext(DbContextOptions<CCTContext> options)

protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.HasDefaultSchema("GORDON\\Ross.Clark");

modelBuilder.Entity<ACCOUNT>(entity =>
{
8 changes: 2 additions & 6 deletions Gordon360/Models/CCT/Housing/RA_Assigned_Ranges_View.cs
Original file line number Diff line number Diff line change
@@ -29,13 +29,9 @@ public partial class RA_Assigned_Ranges_View
[Unicode(false)]
public string Hall_Name { get; set; }

[StringLength(10)]
[Unicode(false)]
public string Room_Start { get; set; }
public int Room_Start { get; set; }

[StringLength(10)]
[Unicode(false)]
public string Room_End { get; set; }
public int Room_End { get; set; }

[StringLength(10)]
[Unicode(false)]
Original file line number Diff line number Diff line change
@@ -9,8 +9,8 @@ public class RA_Assigned_RangesViewModel
public string Fname { get; set; }

Check warning on line 9 in Gordon360/Models/ViewModels/Housing/RA_Assigned_RangesViewModel.cs

GitHub Actions / build

Non-nullable property 'Fname' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
public string Lname { get; set; }

Check warning on line 10 in Gordon360/Models/ViewModels/Housing/RA_Assigned_RangesViewModel.cs

GitHub Actions / build

Non-nullable property 'Lname' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
public string Hall_Name { get; set; }

Check warning on line 11 in Gordon360/Models/ViewModels/Housing/RA_Assigned_RangesViewModel.cs

GitHub Actions / build

Non-nullable property 'Hall_Name' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
public string Room_Start { get; set; }
public string Room_End { get; set; }
public int Room_Start { get; set; }
public int Room_End { get; set; }
public int Range_ID { get; set; }
public string Hall_ID { get; set;}

Check warning on line 15 in Gordon360/Models/ViewModels/Housing/RA_Assigned_RangesViewModel.cs

GitHub Actions / build

Non-nullable property 'Hall_ID' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.

0 comments on commit 44c9436

Please sign in to comment.