mirror of
https://github.com/jcreek/Creek.FileRepository.git
synced 2026-07-13 02:43: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>
|
/// <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,
|
||||||
Reference in New Issue
Block a user