Updating project to correct the following errors:
1. Using directive should appear within a namespace declaration 2. Use trailing comma in multi-line initializers
This commit is contained in:
@@ -2,57 +2,56 @@
|
||||
// Copyright (c) PlaceholderCompany. All rights reserved.
|
||||
// </copyright>
|
||||
|
||||
namespace Jellyfin.Database.Implementations.Entities
|
||||
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Jellyfin.Database.Implementations.Entities
|
||||
/// <summary>
|
||||
/// An entity representing an image.
|
||||
/// </summary>
|
||||
public class ImageInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// An entity representing an image.
|
||||
/// Initializes a new instance of the <see cref="ImageInfo"/> class.
|
||||
/// </summary>
|
||||
public class ImageInfo
|
||||
/// <param name="path">The path.</param>
|
||||
public ImageInfo(string path)
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ImageInfo"/> class.
|
||||
/// </summary>
|
||||
/// <param name="path">The path.</param>
|
||||
public ImageInfo(string path)
|
||||
{
|
||||
Path = path;
|
||||
LastModified = DateTime.UtcNow;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the id.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Identity, Indexed, Required.
|
||||
/// </remarks>
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int Id { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the user id.
|
||||
/// </summary>
|
||||
public Guid? UserId { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the path of the image.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
[MaxLength(512)]
|
||||
[StringLength(512)]
|
||||
public string Path { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the date last modified.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public DateTime LastModified { get; set; }
|
||||
Path = path;
|
||||
LastModified = DateTime.UtcNow;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the id.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Identity, Indexed, Required.
|
||||
/// </remarks>
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int Id { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the user id.
|
||||
/// </summary>
|
||||
public Guid? UserId { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the path of the image.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
[MaxLength(512)]
|
||||
[StringLength(512)]
|
||||
public string Path { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the date last modified.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Required.
|
||||
/// </remarks>
|
||||
public DateTime LastModified { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user