Esempio n. 1
0
 private void Child_Fetch(ProjectTracker.Dal.RoleDto data)
 {
     using (BypassPropertyChecks)
     {
         Id        = data.Id;
         Name      = data.Name;
         TimeStamp = data.LastChanged;
     }
 }
Esempio n. 2
0
 private void Child_Insert()
 {
     using (var ctx = ProjectTracker.Dal.DalFactory.GetManager())
     {
         var dal = ctx.GetProvider <ProjectTracker.Dal.IRoleDal>();
         using (BypassPropertyChecks)
         {
             var item = new ProjectTracker.Dal.RoleDto
             {
                 Name = this.Name
             };
             dal.Insert(item);
             Id        = item.Id;
             TimeStamp = item.LastChanged;
         }
     }
 }