MVVM Toolkit ObservableProperty Key
Quentin Samuelson
1
Reputation point
I am looking at the new Code Generation in MVVM Toolkit.
I am attempting to create a database using Code First and EntityFrameworkCore.
If I use the Observable Validator I can generate a column as:
[ObservableProperty]
[Key]
[Required]
string m_CPY_ID;
But it does not recognise the KEY attribute.
I then have to generate any KEY attributes as :
private string m_CPY_ID;
[Key]
[Required]
public string CPY_ID
{
get => m_CPY_ID;
set => SetProperty(ref m_CPY_ID, value);
}
Is it possible to have the ObservableProperty and autogenerate the code and have a KEY value?
Regards