Which reference import for TableAttribute?

2

I can not get my app 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; }

    }
}
    
asked by anonymous 09.06.2014 / 21:10

1 answer

2
using System.ComponentModel.DataAnnotations.Schema;

Remember to adjust your Framework to version 4.5.

    
09.06.2014 / 21:12