Example #1
0
 protected override void RefreshEntityId(object entity)
 {
     if (WorkingMode == EntityDetailWorkingMode.Add)
     {
         NoteId = DynamicDataServiceContext.GetObjectId(EntityName, entity);
     }
 }
Example #2
0
 protected override Guid GetId(object entity)
 {
     if (entity == null)
     {
         return(Guid.Empty);
     }
     return(DynamicDataServiceContext.GetObjectId(EntityName, entity));
 }
Example #3
0
 protected virtual void RefreshEntityId(object entity)
 {
     ConvertEntity(entity);
     if (WorkingMode == EntityDetailWorkingMode.Add)
     {
         EntityId = DynamicDataServiceContext.GetObjectId(EntityName, entity);
     }
 }