mirror of
https://github.com/jcreek/Creek.FileRepository.git
synced 2026-07-12 18:33:43 +00:00
fix(*): Rename File model to RepoFile to prevent clashes with the static system File object
This commit is contained in:
@@ -6,7 +6,7 @@ namespace FileRepository.Models
|
||||
/// <summary>
|
||||
/// This model serves to represent the files being stored.
|
||||
/// </summary>
|
||||
public class File
|
||||
public class RepoFile
|
||||
{
|
||||
/// <summary>
|
||||
/// 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="content">The content of the file.</param>
|
||||
/// <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,
|
||||
FileName = fileName,
|
||||
Reference in New Issue
Block a user