0

Column name not reflecting on database

e.g.

[Column("some_name")]
public string name { get; set; }

expected result: column name should be "some_name"

actual result: column name is "name" instead of "some_name".

Eilon
  • 25,582
  • 3
  • 84
  • 102
Vijayant Katyal
  • 642
  • 2
  • 12
  • 22
  • Can you please confirm which version of EF you're using? The question is tagged EF6, but it is also tagged as being ASP.NET 5, which is normally used with EF7 (but *can* use EF6). – Eilon Jan 17 '15 at 18:56
  • 2
    Annotations have not been implemented yet. https://github.com/aspnet/EntityFramework/issues/1424 – Vijayant Katyal Jan 17 '15 at 19:06

1 Answers1

1

Data annotation support is not yet implemented on EF7. You can track the work here https://github.com/aspnet/EntityFramework/issues/107

Rowan Miller
  • 2,090
  • 15
  • 15