Прототипизация - create data object on the basis of another.
Methods for prototypical DataObject
For prototypical DataObject there is a method
/// <summary> /// Prototypicality /// </summary> /// <param name="withDetails">detalaj or without</param> public virtual void Prototyping(bool withDetails)
There is also an overload of this method without any parameters (in this case just made the call to the method
If prototypization the following actions occur:
- resets the primary key object (new generated);
- status is changed to
- download status object is set to
- a method is called InitDataCopy.
If the passed parameter has a value
true, prototypical will be performed for all detailov.
- Get a primary key object, which he had before prototypically, through property
- Cleaning properties
PrototypeKeyhappens when you call a method
ClearPrototyping(if the call was made with no parameters or the parameter value was
true, the corresponding property will be cleared and datalow).
- Call method
ClearPrototyping(true)also happens when saving an object via the SQLDataService.
- To know whether prototipazione through the property
- When you perform decide object the data service will carry out the proofreading properties prototipazione object, using as primary key
PrototypeKey(but when you run UpdateObject in the database will create a new object).