Exemple #1
0
 public void Write(Context context, Column column)
 {
     this
     .Where(o => !o.Guid.IsNullOrEmpty())
     .ForEach(attachment =>
     {
         if (attachment.Added == true)
         {
             if (BinaryUtilities.BinaryStorageProvider(column, (decimal)attachment.Size) == "LocalFolder")
             {
                 attachment.WriteToLocal(context: context);
             }
             DataSources.File.DeleteTemp(attachment.Guid);
         }
         else if (attachment.Deleted == true && !attachment.Overwritten.HasValue)
         {
             attachment.DeleteFromLocal(context: context);
         }
     });
 }