[Code first help] Should the POCOs be clean of data annotations if we use the modelbinder configurations

May 14, 2013 at 9:24 AM
Hi Guys,
            If we can set all the model binding properties in modelbinding configuration classes, should we set any data properties in the data annotations?
Can we set some properties in the data configuration and some in the model binding configuration classes?

May 14, 2013 at 10:34 AM
This is really an EF question and I recommend that you post this sort of question to Stack Overflow (or search there first). For what it is worth, my understanding is that you can't (or at least shouldn't) mix the use of the fluent api for code first database binding with the use of data annotations - do it all using the fluent api configuration.