Objective: in the type attribute DateTime default must bear the current date.

To the current date stamped automatically, you must:

1.Write on the diagram the initial value as follows

2.To regenerate the objects.

3.Verify that the custom attribute is of type DateTime in the source code of this class is defined as System.DateTime.Now. For example, the attribute ДатаЗаполнения class Документ:

private System.DateTime fДатаЗаполнения = System.DateTime.Now;

Note: According to C# initializers are equivalent to the class constructor by default, so each time you design a new Документа and any of its successor will bear the current time.