Workshop - Update workshop IDs to be long

This commit is contained in:
Robert committed 2023-09-09 13:30:26 +02:00
1 parent a798980eec
commit 0fdb40bd35
33 files changed
+102 -103

No files matched your search

@@ -6,14 +6,14 @@ public class EntryEntity
{
public Guid Id { get; set; }
public Guid EntryId { get; set; }
public long EntryId { get; set; }
public int EntryType { get; set; }
public string Author { get; set; }
public string Name { get; set; } = string.Empty;
public string Summary { get; set; } = string.Empty;
public Guid ReleaseId { get; set; }
public long ReleaseId { get; set; }
public string ReleaseVersion { get; set; }
public DateTimeOffset InstalledAt { get; set; }
@@ -32,7 +32,7 @@ internal class EntryRepository : IEntryRepository
return _repository.FirstOrDefault<EntryEntity>(s => s.Id == id);
}
public EntryEntity GetByEntryId(Guid entryId)
public EntryEntity GetByEntryId(long entryId)
{
return _repository.FirstOrDefault<EntryEntity>(s => s.EntryId == entryId);
}
@@ -9,7 +9,7 @@ public interface IEntryRepository : IRepository
void Add(EntryEntity entryEntity);
void Remove(EntryEntity entryEntity);
EntryEntity Get(Guid id);
EntryEntity GetByEntryId(Guid entryId);
EntryEntity GetByEntryId(long entryId);
List<EntryEntity> GetAll();
void Save(EntryEntity entryEntity);
void Save(IEnumerable<EntryEntity> entryEntities);