I am using EF 4.1 and was look for a nice workaround for the lack of enum support. A backing property of int seems logical.
[Required]
public VenueT
Try this.
public class UserAccount
{
private string Username { get; set;}
}
public class UserAccountConfiguration :IEntityTypeConfiguration
{
public void Configure(EntityTypeBuilder builder)
{
builder.Property(c => c.Username);
}
}
and then in DbContext
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.ApplyConfiguration(new UserAccount.UserAccountConfiguration());
}