PhoneToolMX/PhoneToolMX.Models/ViewModels/IViewModel.cs

18 lines
414 B
C#
Raw Normal View History

2023-10-18 04:55:10 +00:00
using PhoneToolMX.Data;
using PhoneToolMX.Models;
namespace PhoneToolMX.Models.ViewModels
{
public interface IViewModel
{
public int? Id { get; set; }
2023-10-21 20:46:56 +00:00
2023-10-18 04:55:10 +00:00
public IOwnedModel ToEntity(PTMXContext ctx);
public IOwnedModel ToEntity(PTMXContext ctx, IOwnedModel current);
public IViewModel FromEntity(IOwnedModel entity);
2023-10-21 20:46:56 +00:00
public string NotifyOnChange();
2023-10-18 04:55:10 +00:00
}
}