mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Annotate GPU fields.
This commit is contained in:
@@ -31,6 +31,8 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
namespace Cicm.Database.Models
|
namespace Cicm.Database.Models
|
||||||
{
|
{
|
||||||
@@ -42,19 +44,25 @@ namespace Cicm.Database.Models
|
|||||||
ResolutionsByGpu = new HashSet<ResolutionsByGpu>();
|
ResolutionsByGpu = new HashSet<ResolutionsByGpu>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
public int? CompanyId { get; set; }
|
public int? CompanyId { get; set; }
|
||||||
public string ModelCode { get; set; }
|
[DisplayName("Model code")]
|
||||||
public DateTime? Introduced { get; set; }
|
public string ModelCode { get; set; }
|
||||||
public string Package { get; set; }
|
public DateTime? Introduced { get; set; }
|
||||||
public string Process { get; set; }
|
public string Package { get; set; }
|
||||||
public float? ProcessNm { get; set; }
|
public string Process { get; set; }
|
||||||
public float? DieSize { get; set; }
|
[DisplayName("Process (nm)")]
|
||||||
public long? Transistors { get; set; }
|
public float? ProcessNm { get; set; }
|
||||||
|
[DisplayName("Die size (mm²)")]
|
||||||
|
public float? DieSize { get; set; }
|
||||||
|
public long? Transistors { get; set; }
|
||||||
|
|
||||||
public virtual Company Company { get; set; }
|
public virtual Company Company { get; set; }
|
||||||
public virtual ICollection<GpusByMachine> GpusByMachine { get; set; }
|
public virtual ICollection<GpusByMachine> GpusByMachine { get; set; }
|
||||||
public virtual ICollection<ResolutionsByGpu> ResolutionsByGpu { get; set; }
|
public virtual ICollection<ResolutionsByGpu> ResolutionsByGpu { get; set; }
|
||||||
|
|
||||||
|
[NotMapped]
|
||||||
|
public string IntroducedView => Introduced?.ToShortDateString() ?? "Unknown";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
@Html.DisplayNameFor(model => model.Introduced)
|
@Html.DisplayNameFor(model => model.Introduced)
|
||||||
</dt>
|
</dt>
|
||||||
<dd>
|
<dd>
|
||||||
@Html.DisplayFor(model => model.Introduced)
|
@Html.DisplayFor(model => model.IntroducedView)
|
||||||
</dd>
|
</dd>
|
||||||
<dt>
|
<dt>
|
||||||
@Html.DisplayNameFor(model => model.Package)
|
@Html.DisplayNameFor(model => model.Package)
|
||||||
|
|||||||
@@ -41,6 +41,12 @@
|
|||||||
<h4>GPU</h4>
|
<h4>GPU</h4>
|
||||||
<hr />
|
<hr />
|
||||||
<dl class="dl-horizontal">
|
<dl class="dl-horizontal">
|
||||||
|
<dt>
|
||||||
|
@Html.DisplayNameFor(model => model.Company)
|
||||||
|
</dt>
|
||||||
|
<dd>
|
||||||
|
@Html.DisplayFor(model => model.Company.Name)
|
||||||
|
</dd>
|
||||||
<dt>
|
<dt>
|
||||||
@Html.DisplayNameFor(model => model.Name)
|
@Html.DisplayNameFor(model => model.Name)
|
||||||
</dt>
|
</dt>
|
||||||
@@ -57,7 +63,7 @@
|
|||||||
@Html.DisplayNameFor(model => model.Introduced)
|
@Html.DisplayNameFor(model => model.Introduced)
|
||||||
</dt>
|
</dt>
|
||||||
<dd>
|
<dd>
|
||||||
@Html.DisplayFor(model => model.Introduced)
|
@Html.DisplayFor(model => model.IntroducedView)
|
||||||
</dd>
|
</dd>
|
||||||
<dt>
|
<dt>
|
||||||
@Html.DisplayNameFor(model => model.Package)
|
@Html.DisplayNameFor(model => model.Package)
|
||||||
@@ -89,15 +95,16 @@
|
|||||||
<dd>
|
<dd>
|
||||||
@Html.DisplayFor(model => model.Transistors)
|
@Html.DisplayFor(model => model.Transistors)
|
||||||
</dd>
|
</dd>
|
||||||
<dt>
|
|
||||||
@Html.DisplayNameFor(model => model.Company)
|
|
||||||
</dt>
|
|
||||||
<dd>
|
|
||||||
@Html.DisplayFor(model => model.Company.Name)
|
|
||||||
</dd>
|
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<a asp-action="Edit" asp-route-id="@Model.Id" class="btn btn-primary">Edit</a>
|
<a asp-action="Edit"
|
||||||
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
|
asp-route-id="@Model.Id"
|
||||||
|
class="btn btn-primary">
|
||||||
|
Edit
|
||||||
|
</a>
|
||||||
|
<a asp-action="Index"
|
||||||
|
class="btn btn-secondary">
|
||||||
|
Back to List
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@@ -76,7 +76,7 @@
|
|||||||
@Html.DisplayFor(modelItem => item.ModelCode)
|
@Html.DisplayFor(modelItem => item.ModelCode)
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@Html.DisplayFor(modelItem => item.Introduced)
|
@Html.DisplayFor(modelItem => item.IntroducedView)
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a asp-action="Details"
|
<a asp-action="Details"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netcoreapp2.2</TargetFramework>
|
<TargetFramework>netcoreapp2.2</TargetFramework>
|
||||||
<Version>3.0.99.431</Version>
|
<Version>3.0.99.432</Version>
|
||||||
<Company>Canary Islands Computer Museum</Company>
|
<Company>Canary Islands Computer Museum</Company>
|
||||||
<Copyright>Copyright © 2003-2018 Natalia Portillo</Copyright>
|
<Copyright>Copyright © 2003-2018 Natalia Portillo</Copyright>
|
||||||
<Product>Canary Islands Computer Museum Website</Product>
|
<Product>Canary Islands Computer Museum Website</Product>
|
||||||
|
|||||||
Reference in New Issue
Block a user