Hi,
I had a quick question regarding the creation of new Entities. Currently when LLBLGen generates my entities are being created with a default constructor with no parameters.
public MyEntity():base()
{
}
If I want to be able to customise my default constructor so that I can initialise some value what is the best way for this to be done?
For example:
public MyEntity():base()
{
Id = new Guid();
CreatedBy = CurrentUser();
Created = DateTime.Now()
}
Is it possible to stop the default constructor being automatically generated so that I can add my own Constructor between the custom user code tags???
or
What is the best way to ensure that the default values are always correctly set upon the instantiation of a new object
thanks,
Wiggy