Skip to content

Commit

Permalink
Update Actions Taken table to include isPublic flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Centerville1 committed Dec 1, 2024
1 parent d387963 commit 718a9d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Gordon360/Models/CCT/Context/DbContextExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
using Microsoft.Data.SqlClient;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage;
Expand Down Expand Up @@ -34,12 +33,6 @@ public static async Task<List<T>> SqlQueryAsync<T>(this DbContext db, string sql
return default;
}
}
public static async Task<int> GetNextValueForSequence(this DbContext _context, Sequence sequence)
{
SqlParameter result = new SqlParameter("@result", System.Data.SqlDbType.Int) { Direction = System.Data.ParameterDirection.Output };
await _context.Database.ExecuteSqlRawAsync($"SELECT @result = (NEXT VALUE FOR [{CCTSequenceEnum.GetDescription(sequence)}])", result);
return (int)result.Value;
}
}

public class OutputParameter<TValue>
Expand Down
2 changes: 2 additions & 0 deletions Gordon360/Models/CCT/LostAndFound/ActionsTaken.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ public partial class ActionsTaken
[Unicode(false)]
public string submitterID { get; set; }

public bool isPublic { get; set; }

[ForeignKey("missingID")]
[InverseProperty("ActionsTaken")]
public virtual MissingReports missing { get; set; }
Expand Down

0 comments on commit 718a9d1

Please sign in to comment.