Implement data validation in entity framework code first
问题 I am using entity framework 6, .Net framework 4 and code first. I am able to get the validation errors by using GetValidationResult method. But I was not able to show the validation message like the one given in the below image. How to achieve this? My Code: <Label Content="Name" /> <Grid Grid.Row="0" Grid.Column="2"> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> </Grid.ColumnDefinitions> <TextBox x:Name="txtName" Width="200" Margin="8,0,0,0" MaxLength="150" Text="{Binding Path