TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Marius Vasile
594
1.9k
145.7k
ASP.NET Core Razor - cascade dropdown from 4 tables
Nov 18 2020 4:10 AM
The problem is I have 4 tables, Table 1, Table 2, Table 3 and Table 4. Table 1 has one-to-many relations with Table-2, Table 2 one-to-many to Table 3 and so on. all are similar on content, tables content below
public
class
HazardsClass
{
[Key]
public
int
IdHC {
get
;
set
; }
public
string
HazClass {
get
;
set
; }
public
ICollection<HazardsDetail> HazardsDetails {
get
;
set
; }
}
public
class
HazardsDetail
{
[Key]
public
int
IdH {
get
;
set
; }
public
string
HazDetail {
get
;
set
; }
public
int
IdHC {
get
;
set
; }
[ForeignKey(
"IdHC"
)]
public
HazardsClass HazardsClass {
get
;
set
; }
public
ICollection<HazardsPMClass> HazardsPMClasses {
get
;
set
; }
}
public
class
HazardsPMClass
{
[Key]
public
int
IdPMC {
get
;
set
; }
public
string
HazPMClass {
get
;
set
; }
public
int
IdH {
get
;
set
; }
[ForeignKey(
"IdH"
)]
public
HazardsDetail HazardsDetail {
get
;
set
; }
public
ICollection<HazardsPMDetail> HazardsPMDetails {
get
;
set
; }
}
public
class
HazardsPMDetail
{
[Key]
public
int
IdPM {
get
;
set
; }
public
string
HazPMDetail {
get
;
set
; }
public
int
IdPMC {
get
;
set
; }
[ForeignKey(
"IdPMC"
)]
public
HazardsPMClass HazardsPMClass {
get
;
set
; }
}
My problem is to view the information in dropdown lists, ex. First I choose a HazClass then from the list I choose a HazDetails and so on.
How do I do that?
Reply
Answers (
6
)
Crystal report not printing after merging 2 reports
how to read Web APi csv file