Beispiel #1
0
        static void UnitOfWorkObjectsSaved(object sender, ObjectsManipulationEventArgs e)
        {
            var objects = string.Empty;

            if (e != null && e.Objects != null)
            {
                objects = e.Objects.OfType <TestDE>().Aggregate(string.Empty, (str, next) => { if (!string.IsNullOrWhiteSpace(str))
                                                                                               {
                                                                                                   str += ", ";
                                                                                               }
                                                                                               return(str + next.ToString()); });
            }

            System.Diagnostics.Debug.WriteLine(string.Format("UnitOfWorkObjectsSaved({0})", objects));
        }
Beispiel #2
0
 static void UnitOfWorkObjectsLoaded(object sender, ObjectsManipulationEventArgs e)
 {
     System.Diagnostics.Debug.WriteLine("UnitOfWorkObjectsLoaded()");
 }