I'm a C# newbie. Saw this piece of code in an open source
public class Staff : BusinessObjectBase
{
/// <summary>
/// Column: StaffID(Identity)(Primary Key), Allow DBNull=False
/// </summary>
[DataMap("StaffID", IsIdentity=true, IsReadOnly=true, IsKey=true)]
public System.Nullable<System.Int32> StaffID { get; set; }
/// <summary>
/// Column: TeamID, Allow DBNull=True
/// </summary>
[DataMap("TeamID", AllowDBNull=true)]
public System.Nullable<System.Int32> TeamID { get; set; }
The lines start with open square brackets, what are they doing? reference to parent object's attributes? If so, why are they neccessry? Is there a name of this style of coding? Thank you!