Files
netcore-winforms-demos/OutlookInspiredApp/DevExpress.OutlookInspiredApp/Common/ViewModel/ISingleObjectViewModel.cs
2018-12-21 10:31:41 +03:00

29 lines
927 B
C#

using System;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Linq.Expressions;
using DevExpress.Mvvm;
using DevExpress.Mvvm.POCO;
using DevExpress.Mvvm.DataAnnotations;
using DevExpress.DevAV.Common.Utils;
using DevExpress.Mvvm.DataModel;
namespace DevExpress.DevAV.Common.ViewModel {
/// <summary>
/// The base interface for view models representing a single entity.
/// </summary>
/// <typeparam name="TEntity">An entity type.</typeparam>
/// <typeparam name="TPrimaryKey">An entity primary key type.</typeparam>
public interface ISingleObjectViewModel<TEntity, TPrimaryKey> {
/// <summary>
/// The entity represented by a view model.
/// </summary>
TEntity Entity { get; }
/// <summary>
/// The entity primary key value.
/// </summary>
TPrimaryKey PrimaryKey { get; }
}
}