Beispiel #1
0
 protected override void OnSavingOverride()
 {
     base.OnSavingOverride();
     if (Session.IsNewObject(this))
     {
         if (SelfId >= 0)
         {
             SelfId = DevExpress.VideoRent.Helpers.IDGenerator.GenerateId(Session, GeneratedIdType, SelfId);
         }
         CreatedBy = VideoRentCurrentUser.GetCurrentUser(Session);
         CreatedAt = DevExpress.VideoRent.Helpers.VideoRentDateTime.Now;
     }
 }
Beispiel #2
0
 public override void AfterConstruction()
 {
     base.AfterConstruction();
     CreatedBy = VideoRentCurrentUser.GetCurrentUser(Session);
     CreatedAt = DevExpress.VideoRent.Helpers.VideoRentDateTime.Now;
 }