Hi
As I read in EF2.0 I am able to set a field as required
using data annotation by writting [Required] before the property name
OR
modelBuilder.Entity<Order>().Property(t => t.OrderDate).IsRequired();
My questions are:
Do they have the same exact effect?
Which one is recomended by microsoft?.
thanks