-3

i've been developing in c# for 4 month and I still dont know what does the [] means in entity framework.

Here an example

[Column("mycolumn")]
public int Column {get;set;}

What is it functionality?

Its there another situation that i have to use it or just with entity framework?

Ligth
  • 330
  • 1
  • 9

1 Answers1

0

Square brackets [ & ] mean a few different things in C#, but in this case they are saying that "Column" is an Attribute. An attribute is basically design time information that you add to classes or properties for various reasons. You can also make your own ;)

jcharlesworthuk
  • 1,079
  • 8
  • 16