c# - The type or namespace does not exists in the namespace .Net Core MVC -
i have of sudden stumpled upon weird error in .net core mvc project. tells me that: the type or namespace name 'tripmetadata' not exists in namespace 'mspfrontend.models' (are missing assembly reference?)
i have plenty views utilizing models folder without trouble. in _viewimports.cshtml
have:
@using mspfrontend.models
tripmetadata.cs
using system; using system.collections.generic; using system.linq; using system.threading.tasks; using system.collections.generic; using system.componentmodel.dataannotations; namespace mspfrontend.models { public partial class tripmetadata { public tripmetadata() { tripgpsdata = new hashset<tripgpsdata>(); tripstate = new hashset<tripstate>(); } [key] public int tripid { get; set; } [display(name = "start timestamp")] public long? starttimestamp { get; set; } [display(name = "end timestamp")] public long? endtimestamp { get; set; } public long? duration { get; set; } [display(name = "average speed")] public decimal? avgspeed { get; set; } public decimal? distance { get; set; } public virtual icollection<tripgpsdata> tripgpsdata { get; set; } public virtual icollection<tripstate> tripstate { get; set; } } }
Comments
Post a Comment