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
Noçao Constantino
NA
31
440
One to Many Relationship
Aug 16 2020 9:16 AM
Good afternoon, I am new in asp net. I am building some System EPI Management . I dont know how i could do what i want, I have a Product class with those atributes
public
class
Produto
{
[Key]
public
int
ProdutoID {
get
;
set
; }
public
string
Nome {
get
;
set
; }
[Display(Name =
"Descricao"
)]
public
string
Desc {
get
;
set
; }
public
int
FornecedorID {
get
;
set
; }
public
virtual
Fornecedor Fornecedor {
get
;
set
; }
public
int
CategoriaID {
get
;
set
; }
public
virtual
Categoria Categoria {
get
;
set
; }
public
string
Armazem {
get
;
set
; }
[Display(Name =
"Unidades Metricas"
)]
public
int
UnitMID {
get
;
set
; }
public
virtual
UnitM UnitM {
get
;
set
; }
}
and I have a Employee Class too, Iam using Code First. And i do have a Entrada Class is a ReceiveGoods class
public
class
Entrada
{
[Key]
public
int
EntradaID {
get
;
set
; }
public
string
MotivoEntrada {
get
;
set
; }
public
string
Nota {
get
;
set
; }
public
int
GetIDFuncionario {
get
; }
public
IEnumerable<Produto> Produto {
get
;
set
; }
}
In the class Entrada i want to select more than one pruduct. i dont know how to to. I tried Dropdownlist is keep showing me error. help me, the need is to add many products as possible.
Reply
Answers (
1
)
Asp.net partial view in a view not being recognized from within a view
Can a mvc razor partial view be reusable. Have it's own functionality?