|
I need to clarify about Data Annotation,Fluent API and Fluent Validation.
These are my questions:
-
When I work with EF code first which technologies should I use as best practices and when ?
-
Fluent API and Fluent Validation are same or for different purposes ?
- When I am using
modelBuilder.Entity() .Property(s => s.Name) .IsRequired();
with Fluent API is that reflect to my MVC view's supplier Name validation (like Data Annotation [Required] ) ?
4. If I am using ViewModel for my views then How can I use
Fluent Validation for do ViewModel validation ?
Please clarify above doubts which I am having .
|