fix(*): Rename File model to RepoFile to prevent clashes with the static system File object

This commit is contained in:
Josh Creek
2021-08-29 23:11:31 +01:00
parent 22a71271e4
commit 9167618436
@@ -6,7 +6,7 @@ namespace FileRepository.Models
/// <summary> /// <summary>
/// This model serves to represent the files being stored. /// This model serves to represent the files being stored.
/// </summary> /// </summary>
public class File public class RepoFile
{ {
/// <summary> /// <summary>
/// Gets or sets the id field for the file, this serves as the key field/unique identifier. /// Gets or sets the id field for the file, this serves as the key field/unique identifier.
@@ -35,9 +35,9 @@ namespace FileRepository.Models
/// <param name="fileName">The filename of the file.</param> /// <param name="fileName">The filename of the file.</param>
/// <param name="content">The content of the file.</param> /// <param name="content">The content of the file.</param>
/// <returns>Returns an initialised File object.</returns> /// <returns>Returns an initialised File object.</returns>
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, Id = id,
FileName = fileName, FileName = fileName,