From 9167618436c14a669b7b8c14bc065e723b41d678 Mon Sep 17 00:00:00 2001 From: Josh Creek Date: Sun, 29 Aug 2021 23:11:31 +0100 Subject: [PATCH] fix(*): Rename File model to RepoFile to prevent clashes with the static system File object --- FileRepository/Models/{File.cs => RepoFile.cs} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename FileRepository/Models/{File.cs => RepoFile.cs} (90%) diff --git a/FileRepository/Models/File.cs b/FileRepository/Models/RepoFile.cs similarity index 90% rename from FileRepository/Models/File.cs rename to FileRepository/Models/RepoFile.cs index a9f2a29..fae6c67 100644 --- a/FileRepository/Models/File.cs +++ b/FileRepository/Models/RepoFile.cs @@ -6,7 +6,7 @@ namespace FileRepository.Models /// /// This model serves to represent the files being stored. /// - public class File + public class RepoFile { /// /// Gets or sets the id field for the file, this serves as the key field/unique identifier. @@ -35,9 +35,9 @@ namespace FileRepository.Models /// The filename of the file. /// The content of the file. /// Returns an initialised File object. - public File GenerateFile(string id, string fileName, Stream content) + public RepoFile GenerateFile(string id, string fileName, Stream content) { - File newFile = new File() + RepoFile newFile = new RepoFile() { Id = id, FileName = fileName,