public override ImageOptimizationLogEntry CreateImageOptimizationLogEntry()
        {
            Guid id   = Guid.NewGuid();
            var  item = new ImageOptimizationLogEntry(id, this.ApplicationName);

            return(this.Context.ImageOptimizationLogEntrys.Add(item));
        }
        public override void DeleteImageOptimizationLogEntry(ImageOptimizationLogEntry entity)
        {
            var context = this.Context;

            if (context.Entry(entity).State == EntityState.Detached)
            {
                context.ImageOptimizationLogEntrys.Attach(entity);
            }

            context.ImageOptimizationLogEntrys.Remove(entity);
        }
Пример #3
0
 /// <summary>
 /// Deletes the ImageOptimizationLogEntry.
 /// </summary>
 /// <param name="entity">The ImageOptimizationLogEntry entity.</param>
 public abstract void DeleteImageOptimizationLogEntry(ImageOptimizationLogEntry entity);
 /// <summary>
 /// Deletes the ImageOptimizationLogEntry.
 /// </summary>
 /// <param name="entity">The ImageOptimizationLogEntry entity.</param>
 public void DeleteImageOptimizationLogEntry(ImageOptimizationLogEntry entity)
 {
     this.Provider.DeleteImageOptimizationLogEntry(entity);
 }
 /// <summary>
 /// Updates the ImageOptimizationLogEntry.
 /// </summary>
 /// <param name="entity">The ImageOptimizationLogEntry entity.</param>
 public void UpdateImageOptimizationLogEntry(ImageOptimizationLogEntry entity)
 {
     this.Provider.UpdateImageOptimizationLogEntry(entity);
 }