Which reference to import into Tableattribute?

Asked

Viewed 46 times

2

I’m not getting my application to find the table tag.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dominio
{
    [Table("Loja_Carrossel")]
    public class Carrossel
    {

        public int Id { get; set; }

        public string Nome { get; set; }

    }
}

1 answer

2


using System.ComponentModel.DataAnnotations.Schema;

Remember to adjust your Framework to version 4.5.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.