mirror of
https://github.com/DevExpress/netcore-winforms-demos.git
synced 2025-12-22 17:39:24 +00:00
29 lines
927 B
C#
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; }
|
|
}
|
|
} |