FLUENT APIS
Either use annotations or use FLUENT APIS to configure database mappings.. Not everything is possible using annotations. So better to use FLUENT APIS.
modelbuilder.specify<entity>.property in the entity and then use intellesense to use required functionality
For Ex; precision of a decimal field cannot be specified using annotations but can be done using FLUENT APIS. Otherwise we need to create a custom data annotation using FLUENT APis and use it in the entity class.
Comments
Post a Comment