View Generation for Fluent Mapping/Code First
Posted: Mon 01 Oct 2012 14:41
Is there any way that the entity framework view generation can be done for code first/fluent mapping models?
I tried experimenting by having the view generated by the template in Entity Developer even though we use database independent fluent mapping (modified the conditional on the template). The result is a nice view, which EF doesn't like because of the hashing values.
I also tried template solutions and the EF Power Tools, both of these solutions suffer from a need to have a database to connect to and the resulting generated view is "database dependant" even though no code is actually different (i tried on an MSSQL and an Oracle database, the only differing values were the hashes).
If there isnt any way (hacky or otherwise) to do this today, is it even possible to implement it in a future version of Entity Developer or is it a design error from MS?
I tried experimenting by having the view generated by the template in Entity Developer even though we use database independent fluent mapping (modified the conditional on the template). The result is a nice view, which EF doesn't like because of the hashing values.
I also tried template solutions and the EF Power Tools, both of these solutions suffer from a need to have a database to connect to and the resulting generated view is "database dependant" even though no code is actually different (i tried on an MSSQL and an Oracle database, the only differing values were the hashes).
If there isnt any way (hacky or otherwise) to do this today, is it even possible to implement it in a future version of Entity Developer or is it a design error from MS?