Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
555 changes: 14 additions & 541 deletions Source/Csla.Blazor/ViewModel.cs

Large diffs are not rendered by default.

15 changes: 4 additions & 11 deletions Source/Csla.Xaml.Shared/ViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,18 @@
// </copyright>
// <summary>Base class used to create ViewModel objects,</summary>
//-----------------------------------------------------------------------
#if ANDROID
namespace Csla.Axml
#elif IOS
namespace Csla.Iosui
#else

using System.Diagnostics.CodeAnalysis;

namespace Csla.Xaml
#endif
{
/// <summary>
/// Base class used to create ViewModel objects,
/// with pre-existing verbs for use by
/// InvokeMethod or Invoke.
/// </summary>
/// <typeparam name="T">Type of the Model object.</typeparam>
public class ViewModel<T> : ViewModelBase<T>
public class ViewModel<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] T> : ViewModelBase<T>
{
/// <summary>
/// Saves the Model, first committing changes if ManagedObjectLifetime is true.
Expand Down Expand Up @@ -48,11 +45,7 @@ public virtual void Cancel(object sender, ExecuteEventArgs e)
/// </summary>
public virtual void AddNew(object sender, ExecuteEventArgs e)
{
#if ANDROID || IOS
BeginAddNew();
#else
DoAddNew();
#endif
}

/// <summary>
Expand Down
Loading
Loading