CodeLiturgy.Dashboard/include/BlueWest.MapTo/test/TestConsoleApp/ViewModels/MyStructViewModel.cs

23 lines
457 B
C#
Raw Normal View History

2022-08-17 23:17:37 +03:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TestConsoleApp.Data.Models;
using MapTo;
namespace TestConsoleApp.ViewModels
{
[MapFrom(typeof(MyStruct))]
public partial struct MyStructViewModel
{
public int SomeInt { get; set; }
public MyStructViewModel(int someInt)
{
SomeInt = someInt;
}
}
}