Back to list
Views:   0
Replies:  0
Archived
,
Reply 1

This is what i did to get it to work but it seems wrong...

This in my ViewModel


private void OnServicePackageMeterSave(object parameter) 
         { 

             Context.SubmitChanges(); 
         } 

 Then this in my domain service

public override bool Submit(ChangeSet changeSet) 
        { 
            foreach(ChangeSetEntry x in changeSet.ChangeSetEntries) 
            { 
                ServicePackageMeterModel m = x.Entity as ServicePackageMeterModel; 
                if (m != null) 
                { 
                    SaveServicePackageMeters(m); 
                } 
            } 
            
            return true; 
        } 

 
William Doman, Oct 02, 2010
Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Licensing       EULA       Sitemap      
© Data & Object Factory, LLC.
Made with    in Austin, Texas