Пример #1
0
 /// <summary>
 /// Inicializa a instancia.
 /// </summary>
 /// <param name="dataModel"></param>
 private void InitializeInternal(TModel dataModel)
 {
     if (dataModel == null || dataModel.CreatedProfileId == 0)
     {
         TraceableEntityHelper.InitializeTraceableDataModel(DataModel);
     }
 }
Пример #2
0
 /// <summary>
 /// Copia os dados básicos.
 /// </summary>
 /// <param name="to"></param>
 public override void CopyBasicData(IEntity <TModel> to)
 {
     base.CopyBasicData(to);
     if (to is TraceableEntity <TModel> )
     {
         TraceableEntityHelper.InitializeTraceableEntity((TraceableEntity <TModel>)to);
     }
 }