mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Code reformat.
This commit is contained in:
Submodule DiscImageChef.CommonTypes updated: 2e73c622cf...16f61defb8
Submodule DiscImageChef.Console updated: 9ba23c5700...2c212157cf
Submodule DiscImageChef.Decoders updated: a5c650440d...d864bfab6c
Submodule DiscImageChef.Dto updated: 292c6bbea6...63b83b4f8b
Submodule DiscImageChef.Helpers updated: 6937468728...a7d7c673a1
@@ -16,8 +16,8 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||
|
||||
// GET: Admin/DeviceStats
|
||||
public async Task<IActionResult> Index() =>
|
||||
View(await _context.DeviceStats.OrderBy(d => d.Manufacturer).ThenBy(d => d.Model).
|
||||
ThenBy(d => d.Bus).ToListAsync());
|
||||
View(await _context.DeviceStats.OrderBy(d => d.Manufacturer).ThenBy(d => d.Model).ThenBy(d => d.Bus).
|
||||
ToListAsync());
|
||||
|
||||
// GET: Admin/DeviceStats/Edit/5
|
||||
public async Task<IActionResult> Edit(int? id)
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using DiscImageChef.CommonTypes.Metadata;
|
||||
using DiscImageChef.Server.Models;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using DiscImageChef.CommonTypes.Metadata;
|
||||
using DiscImageChef.Server.Models;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using DiscImageChef.CommonTypes.Metadata;
|
||||
using DiscImageChef.Server.Models;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using DiscImageChef.CommonTypes.Metadata;
|
||||
using DiscImageChef.Server.Models;
|
||||
|
||||
@@ -232,8 +232,8 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||
|
||||
if(fieldInfo.FieldType.IsArray)
|
||||
{
|
||||
Array la = lv as Array;
|
||||
Array ra = rv as Array;
|
||||
var la = lv as Array;
|
||||
var ra = rv as Array;
|
||||
|
||||
switch(la)
|
||||
{
|
||||
|
||||
@@ -61,11 +61,11 @@ namespace DiscImageChef.Server.Models
|
||||
AddedWhen = ModifiedWhen = DateTime.UtcNow;
|
||||
}
|
||||
|
||||
public int Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
[DisplayName("Added date")]
|
||||
public DateTime AddedWhen { get; set; }
|
||||
public DateTime AddedWhen { get; set; }
|
||||
[DisplayName("Modification date")]
|
||||
public DateTime ModifiedWhen { get; set; }
|
||||
public virtual ICollection<Device> Devices { get; set; }
|
||||
public DateTime ModifiedWhen { get; set; }
|
||||
public virtual ICollection<Device> Devices { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -73,11 +73,9 @@ namespace DiscImageChef.Server.Models
|
||||
}
|
||||
}
|
||||
|
||||
[NotMapped]
|
||||
[DisplayName("Physical type")]
|
||||
[NotMapped, DisplayName("Physical type")]
|
||||
public string PhysicalType => MediaType.type;
|
||||
[NotMapped]
|
||||
[DisplayName("Logical type")]
|
||||
[NotMapped, DisplayName("Logical type")]
|
||||
public string LogicalType => MediaType.subType;
|
||||
}
|
||||
}
|
||||
@@ -53,9 +53,9 @@ namespace DiscImageChef.Server.Models
|
||||
public int Id { get; set; }
|
||||
|
||||
[DisplayName("Manufacturer ID"), DisplayFormat(DataFormatString = "0x{0:X4}")]
|
||||
public ushort VendorId { get; set; }
|
||||
public ushort VendorId { get; set; }
|
||||
[DisplayName("Manufacturer")]
|
||||
public string Vendor { get; set; }
|
||||
public string Vendor { get; set; }
|
||||
public DateTime AddedWhen { get; set; }
|
||||
public DateTime ModifiedWhen { get; set; }
|
||||
|
||||
|
||||
@@ -20,9 +20,10 @@ namespace DiscImageChef.Server
|
||||
// This method gets called by the runtime. Use this method to add services to the container.
|
||||
public void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
services.AddDbContext<DicServerContext>(options =>
|
||||
options.UseMySql(Configuration.
|
||||
GetConnectionString("DefaultConnection")).UseLazyLoadingProxies());
|
||||
services.AddDbContext<DicServerContext>(options => options.
|
||||
UseMySql(Configuration.
|
||||
GetConnectionString("DefaultConnection")).
|
||||
UseLazyLoadingProxies());
|
||||
|
||||
services.AddDefaultIdentity<IdentityUser>(options =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user